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)




3d_dave
jerrycan_diy-
A95E0A80A75B47F3A8010649BD31E2A7-0000314425-0002932000-00450L-38F48F0FEC7447CE8851E96B8464F8FB
waveshield
relay
making0
pd
IMG_20130730_134351

Host / Partner

Partners