Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DMA-backed PWM #55

Open
Kaiede opened this issue Sep 5, 2018 · 1 comment
Open

Support DMA-backed PWM #55

Kaiede opened this issue Sep 5, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Kaiede
Copy link
Owner

Kaiede commented Sep 5, 2018

This would make it possible to run more than 2 channels using the built-in GPIOs. It requires two things:

  1. An implementation of PWM-backed DMA in SwiftyGPIO (this can be done in my fork)
  2. A driver that uses this implementation in the PWM module of RPiLight (the easy part)

As a proof of concept, let's aim for this using GPIO 22, 23, 24 & 25. This gives us a respectable 4 channels to start with.

Hurdles

The main issue here is that the dimming resolution is limited. With it being about 1 microsecond, we get about 960Hz with 10 bits of dimming, roughly. Usable, but with he Adafruit add on board doing better, mucking with DMA is somewhat low priority.

@Kaiede Kaiede added the enhancement New feature or request label Sep 5, 2018
@Kaiede Kaiede added this to the V0.4 milestone Sep 5, 2018
@Kaiede Kaiede assigned Kaiede and unassigned Kaiede Sep 5, 2018
@Kaiede Kaiede modified the milestones: V0.4, Backlog Sep 5, 2018
@Kaiede
Copy link
Owner Author

Kaiede commented Aug 14, 2019

DMA-Backed PWM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant