Hardware Setup

The following table and figure describe how to connect the buzzer to the 40-pin GPIO header:

Table 1. Connect Buzzer to the 40-Pin Header
Passive Buzzer 40-Pin GPIO Header
Pin Number Pin Name
VCC 1 3.3V Power
GND 6 GND
I/O 18 GPIO51
Figure 1. Connect Buzzer to the 40-Pin GPIO Header