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 0 137 03-24-2024, 01:07 PM
Last Post: mara
  Rock64 v2 - did not work song / audio sqw200zu 2 1,333 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 325 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 600 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 598 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 8,278 10-12-2023, 05:14 PM
Last Post: tpaul
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 133 189,739 10-09-2023, 03:31 AM
Last Post: mara
  arch rock64 does not boot nemnob 0 584 07-09-2023, 03:28 AM
Last Post: nemnob
  RXDP from Win10 to Armbian on Rock64 Transportsicherung 0 639 05-27-2023, 06:11 AM
Last Post: Transportsicherung
  DietPi OS for ROCK64 MichaIng 41 33,038 12-07-2022, 08:22 PM
Last Post: luminosity7

Forum Jump:


Users browsing this thread: 1 Guest(s)