Multitasking MIDI / WS2812s / and BLDC motor control

Status
Not open for further replies.

j_dunavin

Well-known member
I am working on a larger MIDI controller with multiplexed switches, potentiometers, encoders, touch input, and back light switches. The switches are on a ws2812 led string, and run via this non blocking library:
https://www.pjrc.com/non-blocking-ws2812-led-library/

So far everything is working great!

I would like to use the PWM outputs and follow this example of brushless motor control:
http://www.berryjam.eu/2015/04/driving-bldc-gimbals-at-super-slow-speeds-with-arduino/

The idea would be to have spinning jog wheels, like the big boy controllers ;)
That’s a ways off, but would like to start experimenting with it.

Does anyone know if there would be an issue with timing? I would be using 6 of the Teensy PWM pins, a noninterupt pin for the neopixles, 2 touch pins and of course all the multiplexing.

Also i had another questions about the motor control itself.
What would happen if i grab the jog wheel and try to spin it while the teensy is driving the L6234? Would i fry the driver? What steps should i take to protect the Teensy and the driver?

Thank you for the help!
 
Status
Not open for further replies.
Back
Top