0

I heve problem. I don't know if GPIO zero supports hardware PWM. Does it? Where can i change software PWM to hardware PWM? I know rpiGPIO can use hardware PWN for sure but I'd like to continue use GPIO zero.

Thanks for answers

  • If by rpiGPIO you mean the RPi.GPIO Python module then it does NOT support hardware PWM. – joan Nov 25 '18 at 7:52
  • Wait how then can I control hardware PWM with python? – efk Nov 25 '18 at 18:30
  • I have already answered that question. – joan Nov 25 '18 at 22:16
0

Both the RPIO.GPIO and pigpio back ends support hardware timed PWM. pigpio also supports the use of fully hardware PWM with the dedicated hardware PWM GPIO.

You need to ask on the gpiozero site as to whether they "pass through" these functions when using those back ends. I doubt they do.

| improve this answer | |
  • Do you think RPI.GPIO is better than gpiozero? Anyway thx for answer – efk Nov 25 '18 at 15:23
  • RPi.GPIO (NOT RPI.GPIO) is neither better nor worse than the other GPIO libraries. Only you can decide. RPIO.GPIO is not the same as RPi.GPIO. – joan Nov 25 '18 at 15:27
  • GPIO Zero is an API which sits on top of low-level pin libraries including RPi.GPIO and pigpio. You choose a back-end (the default is RPi.GPIO). – ben_nuttall Feb 22 '19 at 15:32
  • @joan But RPi.GPIO does not support hardware PWM. Or did that change? – Pygmalion Aug 9 '19 at 17:04
  • @Pygmalion RPi.GPIO uses software timed PWM. RPIO.GPIO supports hardware timed PWM. I do not think either support the use of the hardware PWM mode for GPIO 12/13/18/19. – joan Aug 9 '19 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.