[ANSWERED] Connecting an Arduino Uno with Isadora
-
Hello Izzy community,
I have an interfacing problem with an Arduino board which I have been attempting to troubleshoot with the advice provided from previous forum posts and the wider internet, but still I can't solve it.
Basically I am attempting to get a potentiometer to interact with Isadora via the Serial In Watcher actor. I have tried both the Txt and Binary versions of this actor.
I have taken the code from the Arduino website: https://sensorkit.arduino.cc/s... and pasted this into the IDE app (Ver 2.0.0 rc2) on my Mac.
I have a 2020 Mac Mini M1 running Mac OS 12.1 and Isadora 3.1.1 (arm). please see signature below.
I believe I have set Isadora correctly and from it's monitor window I can see the value of the potentiometer change from 0 to 100 as I sweep it round.
This is where things are baffling me, I was hoping to see the Serial In Watcher's "msg rec" parameter flicker to indicate that the actor is picking up the information that is visible from the monitor window, but I'm not.
Could it be to do with the Serial In Watcher's "eom char" value? The default is "13", many forum posts suggest "10". I have tried this and I get no joy. I have changed this value from "1" through to "20" and still it's not working.
I have attached a .pdf with screenshots of the current setup. Any assistance from the forum will be greatly appreciated, hopefully someone can see what I'm doing wrong!
-
Dear Paz,
comment the Line 13 in the arduino code (//)
so you only send the value
--
in the serial actor
value: int=eol
shall work
--
best clemens
-
@m_theater thank you for your valuable information. The Serial In Watcher is now beginning to accept serial data. However, even though the potentiometer is being constantly turned the "value" box of the Serial In Watcher is only randomly showing a number.
I am not sure what you mean exactly by "comment the Line 13 in the arduino code (//) so you only send the value". I have removed the original Line 13 of code completely.
I've updated all the screenshots. please see below.
Any thoughts? Thanks again for your help.
Best
Simon
-
try to use this settings: eom = 13 (hex 0D the carriage return instead of the linefeed) and inside the serial parser as in the picture
-
@m_theater It's now working! I've left the eom char value at 10, when I set it to 13 the actor didn't output a number.
I much appreciate your help!
Best, Simon