Receive data from Arduino in Isadora
Isadora settings
Communications:> Serial port setup
Port 1
Device: select -> usbmodem
Communications>
Enable serial ports
Use serial in watcher actoropen the actor by double klikking it and fill in this code : value:int=eolin actor put eom char on 10
NB! If you have this on, close the serial monitor in Arduino,
If the serial monitor is on, Isadora cannot connect to the Arduino.
This also works the other way around. If you want to adjust your code in Arduino and you want to test the code, you must turn off the serial monitor in Isadora.
Open serial monitor in isadora:
windows > show monitor
Here you can see that the data is coming in from the Arduino. On the far right you can see that the value changes from 0 to 1 when you press the button. The serial monitor is for monitoring purposes only. You can turn it off when you see that the connection works.
In the Serial in watcher actor you see that the value changes from 0 to 1. You can use that output for your patch.
Example with a3 LDR light sensorsensors + code
A sensor usually outputs a range of data so not just 1 or 0. In that case I use the Serial in watcher - BinaryText
Double click on the actor and fill in when i open the actor: value1 : integervalue1:integer=3 =digits "," value2:integer=3 digits "," value3:integer=3 digits
Use serial in watcher text actor
open the actor by double klikking it and fill in this code : value:int=eol
in actor put eom char on 10
you could folow this tutorial for connecting the LDR sensor
I used this arduino code voorfor 3 LDR light sensor:sensors:
/*
void setup(
void loop(
// We'll have a few threshholds, qualitatively determined if
delay(500);}





