In this tutorial, we introduced the basic technique about how to get and clear the sensor data from Arduino to TouchDesigner. Feel free to contact me if you have any questions. Resources: https://www.arduino.cc/en/reference/firmata https://wiki.derivative.ca/Palette:firmata https://www.tutorialspoint.com/arduino/arduino_ultrasonic_sensor.htm
This exercise demonstrates the control of a servo motor using TouchDesigner and the Firmata library in Arduino. The TouchDesigner project uses the webcam for motion tracking and the horizontal movement is sent to the servo motor to point towards where the movement is.