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)




dataviz0
941131_10151431128242972_1614735195_n
arduino2pd
7497720346_e6cb09f0a7_b
A95E0A80A75B47F3A8010649BD31E2A7-0000314425-0002932000-00450L-38F48F0FEC7447CE8851E96B8464F8FB
small_switch
red1

Host / Partner

Partners