Lab 8: Serial Communication

For this lab, we worked on making the Processing IDE and Arduino IDE “shake hands” through serial communication.

The first part of it was to create an environment in which the Arduino could read and and write data from two potentiometers (or other analog sensors of some kind).

Next, we set up our Processing code to write to the Arduino, and draw pictures of some kind based on the data it was receiving from the Arduino based on the potentiometers.


  • Solderless breadboard
  • Jumper wire
  • LED
  • Knob potentiometers (2x)
  • 220 Ω resistor
  • Arduino Uno
  • Processing and Arduino applications

Arduino Code:

Processing Code:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s