Pigpio PWM
Posted: Fri Jan 24, 2020 2:45 am
I'm new to the Raspberry pi (I have the Pi 4B) and I can't find an exact answer to this question in the forums. Pigpio on their website states:
Features:
hardware timed sampling and time-stamping of GPIO 0-31 every 5 us
hardware timed PWM on all of GPIO 0-31
I need 3 GPIO's with precise PWM control and the software PWM is really bad as it flickers making it unusable, but the hardware PWM is excellent. I have been using the code (variables assigned elsewhere in code):
GPIO.hardware_PWM(PinA, Frequency, PinADutyCycle)
The problem is this code only seems to work with pins 12,13,18,19 with 12,18 and 13,19 giving out the same signal so there is only 2 usable independent signals. I don't understand why Pigpio states there is hardware timed PWM on all GPIO's when I get an error message and 0 voltage out of any other GPIO that I've tried besides 12,13,18 and 19?
The error states pigpio.error: 'GPIO has no hardware PWM'
Is there a different code or process I need to use? Is the Pigpio documentation on their website incorrect? Thank you.
Features:
hardware timed sampling and time-stamping of GPIO 0-31 every 5 us
hardware timed PWM on all of GPIO 0-31
I need 3 GPIO's with precise PWM control and the software PWM is really bad as it flickers making it unusable, but the hardware PWM is excellent. I have been using the code (variables assigned elsewhere in code):
GPIO.hardware_PWM(PinA, Frequency, PinADutyCycle)
The problem is this code only seems to work with pins 12,13,18,19 with 12,18 and 13,19 giving out the same signal so there is only 2 usable independent signals. I don't understand why Pigpio states there is hardware timed PWM on all GPIO's when I get an error message and 0 voltage out of any other GPIO that I've tried besides 12,13,18 and 19?
The error states pigpio.error: 'GPIO has no hardware PWM'
Is there a different code or process I need to use? Is the Pigpio documentation on their website incorrect? Thank you.