Skip to content

1 – Upload Firmata to the board

Serial Input Bridge talks to the board with Firmata, a standard protocol that ships with the Arduino IDE. You upload it once; after that you never need to touch Arduino code again. Unity asks the board which pins it has and what each can do.

  1. Plug the board in with a USB data cable.
  2. Open the Arduino IDE.
  3. Choose your board and port under Tools > Board and Tools > Port.
  4. Open File > Examples > Firmata > StandardFirmata.
  5. Click Upload and wait for “Done uploading”.

Install it from Tools > Manage Libraries: search for Firmata and install the library by Firmata Developers.

Any board that runs StandardFirmata works: Uno, Nano, Mega, Leonardo, Micro and many compatible boards. Analog inputs are read relative to the profile’s maximum value (1023 on 10-bit boards like the Uno), so values in Unity always run from 0 to 1.

Install, set up and test Serial Input Bridge →