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
3dd
pi_data
IMG_3946
arduino2pd
shop
masterclass1_32
jerrycan_diy-

Host / Partner

Partners