Recitation 10: Serial Communication, By Megan See

In this recitation, I used a map function in serial communication between processing and Arduino. I had it recording the value of my sensor, as seen in the image below in the console of processing. The sensor is connected to Arduino but collects the number from the sensor for how hard it was pressed, and then if it reaches a specific amount of pressure, it sends turns a light on as well as turns to the next “page” in processing, controlling the screen.

This is the same code I used for my final project since I was in the states for the last recitation, but after looking at workshop slides and documents, I changed the declaration of the sensors in Arduino to have it use the map function.

Leave a Reply