For this lab (see instructions here), I used my toy from previous assignments, since it still had the force sensitive sensor in it.  I followed the instructions and saw the sensor values reflected in the purple graph.  I then tweaked the Processing code to create a vertically-oriented “third-eye” to go conceptually with the placement of the sensor in the toy.  I created an ellipse within the “serialEvent” function that was filled with random R, G, B colors within a yellow-orange-green range (to match the toy) and then set the width of the ellipse to the “inByte” value from the sensor, and the height to “height-inByte.”  Watch the results in this video:

Pcomp Week 6 Lab: Serial Output from N Z on Vimeo.

« »