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.
- Plug the board in with a USB data cable.
- Open the Arduino IDE.
- Choose your board and port under Tools > Board and Tools > Port.
- Open File > Examples > Firmata > StandardFirmata.
- Click Upload and wait for “Done uploading”.
Don’t see Firmata in Examples?
Section titled “Don’t see Firmata in Examples?”Install it from Tools > Manage Libraries: search for Firmata and install the library by Firmata Developers.
Other boards
Section titled “Other boards”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.