×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Hardware PWM on Rpi-5?

  • Posts: 31
  • Thank you received: 0

Hardware PWM on Rpi-5? was created by Keith

Has anyone gotten hardware PWM working on an Rpi-5 using libgpiod? I am using pins 12 & 13 for PWM to run a pair of MOSFETS for dew heater control.
.
I’ve dug thru the libgpiod library and cannot find any mention of PWM anywhere.
.
The gpioset command line works, but only for 1 or 0, no PWM (that I can find).
.
I know the RPIGPIO INDI driver for the Rpi-5 is not ready so I’d like to make a stand alone program to run my dew heaters until that driver is ready.
.
One kludge solution I’ve thought of is a bash file that just turns the pin on and off every second or fractions using the gpioset command line tool.
2 weeks 20 hours ago #100303

Please Log in or Create an account to join the conversation.

  • Posts: 302
  • Thank you received: 46

Replied by Markku on topic Hardware PWM on Rpi-5?

Hi Keith,

Have you seen this: github.com/danjperron/Pi5PWM_HARDWARE
I haven't tried it because my only RPi5 is in my observatory for testing.

Br, Markku
2 weeks 18 hours ago #100304

Please Log in or Create an account to join the conversation.

Time to create page: 0.310 seconds