Raspberry Pi And The Passive Buzzer: Make Your Projects Work

Опубликовано: 10 Июнь 2026
на канале: LETS CODE FOR THE OLDER FOLKS
163
1

Last video we looked at how to configure the active buzzer on the Raspberry Pi. This time we look at the passive buzzer. The code is the same to the active buzzer but the method is different. A passive buzzer requires PWM of a certain frequency, so you need to create a software PWM pin though soft Tone Create buzzerPin. The way to create a PWM was introduced earlier in the Breathing LED and RGB LED projects.

Patreon: patreon.com/RaspberryPiForTheOlderGeneration

Pi Supply Affiliate Link: https://uk.pi-supply.com/?ref=https:/...

Image by flatart on Freepik