Physical Computing Week5 Lab
Serial Port Communication
I tested two thing about Serial port communication. One is to send data from Arduino to PC(Mac). The other is opposite, sending data from PC(Mac) to Arduino.
In the first case, I tried two sensors. At the first, I used potentiometer, then I used MPU-6050 Accelerometer. Both case had a switch which connected with digital 2. So the data form I sent was the following.
124,321,0
213,345,1
After 2 tests, I challenged that sent data from Processing to Arduino. This was pretty simple. I just sent 0 or 1. This case is more difficult that previous tests because Processing is always running to send data, so that I can’t open Serial Monitor to check data from Processing. According to the lecturer, Jeff, there isn’t easy way to check data. What he suggested were followings.
Potentiometor with P5js from hackyGQ on Vimeo.
Tripule Axis Sensor from hackyGQ on Vimeo.

Sending Data from Processing to Arduino from hackyGQ on Vimeo.