PWM on rock64
#1
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.
  Reply
#2
(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.
  Reply
#3
Video 
just tested basic soft pwm using C instead of python. Much better for leds. No noticeable flicker.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 14 21,505 09-27-2026, 11:55 AM
Last Post: mara
  rAudio for Rock64 V2/Pine A64+ shinzuka 14 5,118 07-31-2026, 03:20 AM
Last Post: shinzuka
  DietPi OS for ROCK64 MichaIng 43 97,608 07-22-2026, 01:47 PM
Last Post: MichaIng
  Rock64 v3 Tx/RX and GPIO connections for 3dprinter MinimumJargon 2 2,123 01-28-2026, 04:04 AM
Last Post: alicesphere
  Rock64 - not booting after Armbian update helpmerock 7 7,636 01-24-2026, 04:44 PM
Last Post: ff255
  Xen hypervisor on Rock64 tumbleweed 6 13,627 11-03-2025, 09:25 AM
Last Post: darkfader
  can rock64 4gb ram run entirely on free software? heocb 1 4,009 01-07-2025, 05:47 AM
Last Post: KC9UDX
  Upgrading ancient Rock64 timxjr1300 1 4,191 11-26-2024, 09:47 AM
Last Post: dmitrymyadzelets
  arch rock64 does not boot nemnob 1 5,075 09-20-2024, 11:18 AM
Last Post: AwU2HBg
Smile First Lakka image for Rock64! Luke 47 118,536 09-01-2024, 06:05 AM
Last Post: RaymondDay

Forum Jump:


Users browsing this thread: 1 Guest(s)