Recitation 11——Yixuan Liu(Recitation Instructor: Younghyun Chung, Eric Parren)

For this recitation, I chose to attend the serial communication session. Because my project is about communication from the Arduino to the Processing, I want to learn more about this process. 

We first learned the communication from Arduino to Processing. I think the most important and basic step in the process is to write the exact number of Serial.print  into the code. 

Serial.print(state1);
Serial.print(“,”);
Serial.print(state2);
Serial.print(“,”);
Serial.print(state3);
Serial.print(“,”);
Serial.print(state4);
Serial.print(“,”);
Serial.print(state5);
Serial.print(“,”);
Serial.print(state6);
Serial.print(“,”);
Serial.print(state7);
Serial.print(“,”);
Serial.print(state8);
Serial.print(“,”);
Serial.print(state9);
Serial.println( );

This is important to send value from Arduino to Processing. This is really important when comes to build the communication process in a project.

 

We had several little exercises to practice the code sample.  They were all very helpful in terms of providing basic examples which helps us to challenge harder codes. 

The second thing that I learn from the recitation and think is very important is the process of setting value in the Arduino which is able to be read in the processing.  By doing this, we can actually convert the read in Arduino to the variable that can be read by Processing. This is very essential for a project to have this part to connect two projects which is exactly what we need to do for the final project. 

 

I benefited from my biggest two takeaways and then started working on my project. I use a capacitive sensor to send the value to Processing. After receiving all the data, the  Processing is able to act accordingly. 

This is a brief clip from my project using serial communication. 

Leave a Reply