Arduino Send Data to TouchDesigner— Tutorial in TouchDesigner

TouchDesigner connect Arduino : TouchDesigner Receive Data from Arduino sending
Arduino Side
Full Code
void setup() {
Serial.begin(9600);
}
void loop() {
int dir = 0;
Serial.print(dir);
delay(100);
}
Explain
First, setup up the Serial Baud Rate. I setup this with “9600” here.
void setup() {
Serial.begin(9600);
}
In the loop function, just using “Serial.print()”. And you can send the data out through Serial repeatedly.
Also, adding the delay 100ms to prevent it sends too many data.
void loop() {
int dir = 0;
Serial.print(dir);
delay(100);
}
TouchDesigner Side
Let’s get a Serial (DAT)
Input the you Baud Rate, that’s what we just set above with “9600”.

And select the Port which your Arduino is. If you plug correctly, you can tap the little triangle to open a dropdown list to choose.

How to find you Arduino Port?
I just put an official helping resource below. Go check it out!
https://support.arduino.cc/hc/en-us/articles/4406856349970-Find-the-port-your-board-is-connected-to

After you done that and active Arduino code, you should get some data in Serial DAT. And now you can do whatever you want in TouchDesigner.
