PINE64
PWM on rock64 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: PWM on rock64 (/showthread.php?tid=6869)



PWM on rock64 - Mentaluproar - 11-24-2018

I want to connect a strip of neopixels to the rock64 for a project.  I plan on using this: https://github.com/jgarff/rpi_ws281x

Physical pin 33 on the pi header is open so I want to use that.  That means I need PWM.  Is that pin able to do that on the rock64 or is that on a different pin?  Do I still need to disable onboard audio or is the a raspberry pi thing?  What DMA channels are available/unused?

If these should really be multiple threads, let me know and I'll break it up.  I didn't want to risk spamming the forums with multiple posts for one issue.


RE: PWM on rock64 - 3LD - 11-24-2018

(11-24-2018, 12:06 AM)Mentaluproar Wrote: I want to connect a strip of neopixels to the rock64 for a project.  I plan on using this: https://github.com/jgarff/rpi_ws281x

Physical pin 33 on the pi header is open so I want to use that.  That means I need PWM.  Is that pin able to do that on the rock64 or is that on a different pin?  Do I still need to disable onboard audio or is the a raspberry pi thing?  What DMA channels are available/unused?

If these should really be multiple threads, let me know and I'll break it up.  I didn't want to risk spamming the forums with multiple posts for one issue.

Working on the same project. Haven't seen anyone get hardware pwm working on the Rock64. See Leapo's library for example of soft pwm, https://forum.pine64.org/showthread.php?tid=5902
Doesn't work fantastically for LEDs though. I've been able to minimize the flicker by performing very slow transitions, and only operating on 1 or 2 channels at a time, but it's still occasionally noticeable.


RE: PWM on rock64 - 3LD - 11-24-2018

just tested basic soft pwm using C instead of python. Much better for leds. No noticeable flicker.