Hey All,
I'm creating a kinetic light piece with adafruit neopixels mounted to a stepper-motorized linear rail. I'm using Touchdesigner successfully to send an array of lighting and motor parameters via serial commands to the Arduino. Arduino parses the array, then sends the commands to the libraries of the lights and motors. I've gotten everything working great separately using their own respective libraries (Adafruit_NeoPixel.h and AccelStepper.h).
But when I combine their programming into one Arduino sketch, AccelStepper seems to hog the sketch, and my neopixels are super delayed, laggy, and glitchy. I can program pretty well, but
the inner workings of Arduino libraries, as well as chip architecture are a black box to me. I imagine it has something to do with the clock on the chip being overworked, and I assume both the stepper and light library utilize the clock in a big way, but I wanted to ask here if there were limitations or obvious tricks around the way that these libraries to work together.
My dirty solve would be to use to Arduino's for this, but I'd like to avoid that.
Thanks all,
B