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)




shop
fabricon
small_switch
bpgirl_icons
niamh1
red1
941131_10151431128242972_1614735195_n
join

Host / Partner

Partners