Data Sheet

UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
57 www.uctronics.com
then the buzzer will sound; set the Raspberry Pi GPIO as low level, the transistor S8050 will
cut off, then the buzzer will stop.
Figure 2: Set the Raspberry Pi GPIO as low level, the transistor S8550 will conduct, and the
buzzer will sound; set the Raspberry Pi GPIO as a high level, the transistor S8550 will cut off,
then the buzzer will stop.
8.2.4 Procedures
1. Build the circuit
2. Program
Python user:
2.1 Edit and save the code with vim or nano.
(https://github.com/UCTRONICS/Arducam_Starter_Kit_Python_Code_for_RPi.git)
2.2 Run the program
$ sudo python 02_activeBuzzer.py
Now, you should be able to hear the sound of the buzzer.