Skip to content

Use hardware PWM generator for PiFire PWM PCB grill platform#158

Merged
nebhead merged 1 commit intonebhead:developmentfrom
ghandye:development_hardware-pwm
Sep 5, 2023
Merged

Use hardware PWM generator for PiFire PWM PCB grill platform#158
nebhead merged 1 commit intonebhead:developmentfrom
ghandye:development_hardware-pwm

Conversation

@ghandye
Copy link
Contributor

@ghandye ghandye commented Sep 4, 2023

Updates the PWM implementation for the PiFire PWM PCB grill platform to use the built-in hardware PWM generator on the Raspberry Pi SoC. This resolves #156.

Previous implementation used gpiozero software PWM; this implementation uses rpi_hardware_pwm library.

This is a breaking commit, as the hardware PWM function requires:

  1. Installing the rpi-hardware-pwm library

sudo pip install rpi-hardware-pwm

  1. Adding this line to the end of /boot/config.txt, and rebooting:

dtoverlay=pwm,pin=13,func=4

Once these two changes are done, this commit will enable hardware PWM.

Updates the PWM implementation for the PiFire PWM PCB grill platform to use the built-in hardware PWM generator on the Raspberry Pi SoC. This resolves nebhead#156.

Previous implementation used gpiozero software PWM; this implementation uses rpi_hardware_pwm library.

This is a breaking commit, as the hardware PWM function requires:

1) Installing the rpi-hardware-pwm library

  sudo pip install rpi-hardware-pwm

2) Adding this line to the end of /boot/config.txt, and rebooting:

  dtoverlay=pwm,pin=13,func=4

Once these two changes are done, this commit will enable hardware PWM.
@nebhead nebhead merged commit 4693b6f into nebhead:development Sep 5, 2023
@ghandye ghandye deleted the development_hardware-pwm branch September 5, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants