ESP32 Starter Kit
(continued from previous page)
delay(1000);
}
5. Test Result
After uploading code and powering on, the buzzer emits sound for 1s and stays quiet for 1s.
8.5.9 Project 8Music Performer
1. Description
In this project, we will use a power amplifier speaker to play music. This speaker can not only play simple songs, but
also perform what you desire. Thus, you can program other interesting codes in the project to accomplish splendid
learning outcomes.
2. Working Principle
The electrical signal is input from pin 1 of RP1 (adjusts signal intensity, which is also the sound volume). After coupling
in C4 and passing R5, the signal reaches IN- pin of 8002B, in which it is operationally amplified and output to BEE1
speaker.
Frequency Comparison Table in C
Note Frequency(Hz) Note Frequency(Hz) Note Frequency(Hz)
Flat 1 Do 262 Natural 1 Do 523 Sharp 1 Do 1047
Flat 2 Re 294 Natural 2 Re 587 Sharp 2 Re 1175
Flat 3 Mi 330 Natural 3 Mi 659 Sharp 3 Mi 1319
Flat 4 Fa 349 Natural 4 Fa 698 Sharp 4 Fa 1397
Flat 5 So 392 Natural 5 So 784 Sharp 5 So 1568
Flat 6 La 440 Natural 6 La 880 Sharp 6 La 1760
Flat 7 Si 494 Natural 7 Si 988 Sharp 7 Si 1967
8.5. Arduino Project 65