Skip to content

Overview Pirate Bridge#

The Bridge component translates the serial communication with the Arduino and provides an API for the clients.

Getting Started

Requirements#

  • Managing the connection with the Pirate Hook on the connected Arduino
  • Serving an API for
    • Sending the project data
    • Receiving and forwarding control commands
  • Serving the client website

Requirements

Implementation#

The Bridge is a nodejs application which reads the serial port on the Raspberry PI and broadcasts the information to all connected clients. (more about this interface here: client facing API).

When polled the Bridge will supply the Arduino with the values the clients sent to it.

It also serves the client website, the Pirate Flag.

Implementation

Validation#

In this section the requirements are compared with the current state of the project and future steps outlined.

Validation