Hi! Im trying to connect arduino with touch directly, without any other program disturbing around. What I need is a serial port operator, that goes in double sense. I tried to use CHOP serial and it sees the arduino but doesn’t receive anything. So, im thinking, am I missing something? or can I program it to traduce the ascii messages?
or perhaps perhaps… can you make it for me?
We’ve done some interfacing with an Arduino very recently.
The serial CHOP does receive messages, but it only accepts ascii digits in return.
So for example if the Arduino reported back ‘1’ ‘3’ ‘5’ ‘\n’ Then the CHOP channel
would hold a value of 135.
We’ve also recently added a Serial DAT which can be used to receive and send any type of
data and operates in a separate thread, so its a little more useful.
The DAT is pretty new, so it could benefit from some more testing on our side.
Hello!
We write u (me and carotravi) after a great weekend of workshop with Arduino.
Finally we found a good way to send and receive Datas from Arduino to Touch, waiting for the Serial DAT which is not avaible at the moment .
Using a CHOP OSCin/out and a script of Processing which translate the OscMessages in ascii messages, we started to control 5 LEDs from Touch, and to control a little visual using a lightsensor (or photo resistance).
Everythings works fine without crashing!
but…
Datas from Arduino to Touch are in real-time, and datas from Touch to Arduino have a delay of 8 seconds (at the moment we don’t know how to fix it).
We built up in processing (with the help of Massimo Banzi) a patch who recognize the number of the Pin from the string of the channel’s name, so we have 14 Analogwrite which are written like this:
/AnalogWrite/0 “value”
/AnalogWrite/1 “value”
/AnalogWrite/2 "value
…
and 6 AnalogRead which are written like this:
/AnalogRead/0 “value”
/AnalogRead/1 “value”
/AnalogRead/2 “value”
…
Backslashes divide strings from numbers so we can use the single number as an integer and send it to the right Pin!
There might be another option. Not sure if the following works good (or at all), but to me it sounds that this arduino libary recotana.com/recotanablog/?page_id=222
makes an arduino directly understand OSC
Just a shot in the dark, but maybe it’s helpfull to get better/faster communication
What hardware are you building by the way?
cheers
Akeem
Hi Nima + Caro.
Thats a great solution you find to communicate with Touch.
Love the pictures.
There is also an OSC In DAT which gives you a more direct route back from the OSC link.
As for the outgoing delay, does the whole interface lock up / stop for this time,
or does the data just appear suddenly?