Data Sheet

UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
56 www.uctronics.com
8.2 Project2: Active Buzzer
8.2.1 Overview
In this lesson, we will learn how to program the Raspberry Pi to make an active buzzer
sound.
8.2.2 Requirement
Raspberry Pi ×1
Active buzzer ×1
1 k Resistor ×1
NPN Transistor (S8050) ×1
Breadboard ×1
Jumper wires
8.2.3 Principle
1. Whats Buzzer ?
Please refer to chapter 3.17 Buzzer
In this study, the buzzer we used is active buzzer. Active buzzer will sound as long as the
power supply. We can program to make the Raspberry Pi output alternating high and low
level, so that the buzzer sounds.
2. What
s transistor ?
Please refer to chapter 3.27 Transistor
3. Working Principle
There are two driving circuit for the buzzer:
Figure 1: Set the Raspberry Pi GPIO as a high level, the transistor S8050 will conduct, and