Raspberry Pi GPIO Switch Input - Part 4: Connecting a Piezo Beeper

Опубликовано: 22 Март 2026
на канале: Intermation
4,954
60

This lesson covers the basics of a piezoelectric buzzer, the physical connections required to connect a two-wire buzzer to the Raspberry Pi GPIO bus, and the use of the Node.js "pigpio" module to make it beep.

Items referred to during the video:
• Information pertaining to the Raspberry Pi can be found at https://raspberrypi.org.
• Detailed documentation for the pigpio can be found at https://github.com/fivdi/pigpio/blob/....
• Female-to-female breadboard jumper wires similar to those used in the video can be found by searching on, "female/female jumper wires." Be sure you are getting the ones with sockets on both ends and not pins.
• A two wire piezoelectric buzzer similar to the one used in the video can be found by searching on, "two wire piezo buzzer."

Takeaways: At the completion of this lesson, each student should be able to:
• test a Raspberry Pi GPIO switch circuit using the GPIO command to access the WiringPi library and
• write a script in Node.js to access the switch input.

#raspberrypi #gpio #input