Working with a sound buzzer

In this section, we'll work with sound. Most games usually use music to provide sound background. For a simple sound device, we can use sound buzzer devices. We can use a PC-mountable mini-speaker - PC Mount (12mm, 2.048kHz) from SparkFun, found at the following link: https://www.sparkfun.com/products/7950. You can see this in Figure 3-9, and you can also find some other sound buzzer models with low prices at AliExpress:

Figure 3-9: Mini Speaker - PC Mount

Next, we connect the sound buzzer to the ESP32 board.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.2.122