Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Simultaneous servo and neopixels
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Simultaneous servo and neopixels

by topherhunter on Mon Jul 27, 2020 9:16 pm

Setup: Feather M4 Express, PWM Featherwing, 8 servos, 2 Neopixel jewels, one single Neopixel

I'd like to run the above together in a puppetry build, but I'm struggling with how best to run the neopixels. The DMA-Driven Neopixel trick was written for the Arduino IDE environment, and I'm using this as an opportunity to learn Python.

Can I sling a second Featherwing and have it run a different PWM frequency?? Or is there a DMA analog for the CircuitPython environment?

topherhunter
 
Posts: 7
Joined: Sun Sep 23, 2018 3:50 pm

Re: Simultaneous servo and neopixels

by topherhunter on Thu Jul 30, 2020 11:39 am

Never mind, I was overthinking things. The DMA solution is only needed if you are trying to run servos and Neopixels just from a Feather without the Featherwing.

The Featherwing offloads everything and just uses the I2C connection (SDA and SCL pins), so the regular digital and analog pins are still fully functional. Plugging the Neopixels into D5 and D6 plus 3V3 and GND works great!

Leaving this up in case others ponder the same issue.

topherhunter
 
Posts: 7
Joined: Sun Sep 23, 2018 3:50 pm

Re: Simultaneous servo and neopixels

by Disciple on Thu Jul 30, 2020 12:14 pm

I want to see the finished build (and the WIPs, too), if I can. :)

Hallelujah!
Disciple

Disciple
 
Posts: 757
Joined: Tue Jan 06, 2015 8:13 pm

Please be positive and constructive with your questions and comments.