Arduino to Processing

Introduction to Arduino to Processing
During today’s session we covered how to send data from Arduino and receive them in Processing. There are many ways of doing this. But because we wanted something very simple (some switches and potentiometers) we used the simple Serial.print (from Arduino) and processing.serial (in Processing).


Introduction to Arduino to Processing: Case 1 (1 Pot)
From Arduino we print the value of the pot using: Serial.println(); (Click on icons on the left to download the .ino and .pde files)
From Processing we receive this value and use it to control an ellipse(): fill color (Click on icons on the left to download the .ino and .pde files)


Introduction to Arduino to Processing: Case 2 (1 Switch)
From Arduino we print the state of the switch using: Serial.println(); (Click on icons on the left to download the .ino and .pde files)
From Processing we receive this value and use it to control an ellipse(): fill color (Click on icons on the left to download the .ino and .pde files)


Introduction to Arduino to Processing: Case 3 (1 Pot + 1 Switch)
From Arduino we print the value of the pot and the value of the switch by using: Serial.println(); (Click on icons on the left to download the .ino and .pde files)
From Processing we receive this value and use it to control an ellipse(): fill color (Click on icons on the left to download the .ino and .pde files)




making0
rfid_rhacklab150
ADXL345
faceOSC
radius2
IMG_20121015_145237
thumb
3dd

Host / Partner

Partners