pi_piper icon indicating copy to clipboard operation
pi_piper copied to clipboard

Software or hardware PWM output

Open deadprogram opened this issue 11 years ago • 5 comments

It would be really great to be able to support hardware or software PWM...

deadprogram avatar Sep 13 '13 06:09 deadprogram

http://learn.adafruit.com/adafruits-raspberry-pi-lesson-8-using-a-servo-motor/the-pwm-and-servo-kernel-module is a way that this could be implemented...

deadprogram avatar Sep 13 '13 16:09 deadprogram

Yeah, this would be really nice. The PWM in Python's RPi.GPIO module works very well for all GPIO pins. I'm pretty sure it's implemented in C.

I'll see if I can get something working on the same level as the Python module.

ClockVapor avatar Dec 03 '14 02:12 ClockVapor

Okay, @deadprogram, I've got a rough conversion of the RPi.GPIO Python module working in Ruby here. Still some work to do on it, but everything I've tested so far seems to work well. PWM works just as well as the Python counterpart (since everything is implemented in C).

ClockVapor avatar Dec 31 '14 22:12 ClockVapor

Hi, I get it working through Bcm2835 C libray. checkout : https://github.com/elmatou/pi_piper (4&5 May commits). Code is not very neat for now, i'll PR later (would be easier if the master was up to date (Including "at_exit" issue and/or us of bcm_function)).

elmatou avatar May 05 '15 12:05 elmatou

As of today PWM develop branch support Hardware PWM on pin 18. if everything is ok please close the issue

elmatou avatar Feb 15 '16 08:02 elmatou