Our adventure continues to the Serial interface for Arduino and TouchDesigner
With a polite nudge and example code from https://blog.crashspace.org/2011/01/a-wing-xbee-controller/ at Derivative we got serial io working with TouchDesigner this evening. The example code gave us serial access to a couple of an Arduino’s analog inputs as well as an LED to flash. From there we quickly plugged in all available sensors: accelerometer, pressure, flex, potentiometers, light sensors, and a radio. Controlling graphics while building hardware is fun and made accelerometers a real joy to work with.
A new wireless controller was born.
Accelerometers can be tricky business in an embedded world because the data they produce is very noisy and non-intuitive. Even given constant acceleration, deriving velocity or position from these accelerations is a mix of calculus, digital signal processing, and coding. Math Bonus!
TouchDesigner breaks down this data in a way that is easily tuned and immediately visible. @archo_p was able to coax a meaningful signal from the apparent noise and add an interactive visual sculpture to play.