week 6

This week we worked on serial communication between the Arduino and p5. To start we listed the ports and checked the Arduino serial port.

Screen Shot 2015-10-10 at 10.11.00 PM

this is a p5 sketch that gets the input from the potentiometer that is connected to the Arduino, and the values of the graph changes on the sketch:

photo (6)

when the mouse is dragged on the p5 sketch, the LED light changes:

here, when the keys are pressed the LED light changes:

This is the serial input to p5.js through the Arduino Lab