simple test with Arduino

Hi,
So I managed to show an Arduino sensor (photoresistor) value in Touchdesigner with a Serial operator (serial1) and connected to an operator Dat To (datto1) to try to figure out how that is working.
So the value that is coming from the Arduino is now showing in datto1.
But now what?

I would like to use that value to rotate a picture for example.
I have already added a MovieFileIn1 and a Transform1 but as soon as I try to connect the datto1 to Transform1 Rotate, I get a red cross. Actually I have no clue how to connect those two…
How can I do that?

Kind regards

Hey,

for your testcase you can convert the value in the DAT to a Value in a CHOP and then use this Channel to export to the Rotate parameter of the Transform TOP.

Here is an article on CHOP exporting:
derivative.ca/wiki088/index. … HOP_Export

Alternatively you can use Python Expressions to reference the value from the DAT in a parameter - something like this:
op(‘myDat’)[rowNumber,colNumber]

Also check out the Firmata Component in the Palette>Tools. It makes it easy to read and write values to and from and Arduino.

Cheers
Markus

Sometimes live can be so easy… but you have to know it.

Thank you a lot for the help.

Gheers
Christophe