Using multiple serial output from Arduino into Processing to create a boat drawing game.
For this project I built a boat steering wheel that is mounted to a potentiometer, and connected it to Arduino’s analog input. Using this wheel, the user can control the boat rotation. To drop paint into the water the user uses a pedal that acts as a variable resistor and connected to another analog input of the Arduino. The microcontroller collects the data from these sensors and writes the values to the serial port.
On the other side (the computer), a Processing sketch is setup to listen to the serial data and display the game.
Arduino sketch: Arduino_Boat_Draw
Processing sketch: Processing_Boat_Draw