File size: 749 Bytes
8e53a3e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # Piezo Buzzer
## Project Description
This is a simple ESP32 project that uses piezoelectric buzzer to play 262Hz tone.
## Hardware Components
- ESP32 DevKit v1
- Piezoelectric buzzer
## Circuit Description
The piezo buzzer is connected to the ESP32. The positive pin is connected to pin2, the negative pin to gnd1.
## Expected Behavior
When the ESP32 powers up, it should:
1. Set the pin mode as OUTPUT
2. Continuously play 262Hz tone
## Success Criteria
The test is successful when:
1. Piezo buzzer runs successfuly
## Notes for Implementation
- Use Arduino.h library for arduino core.
- In the loop function, make buzzer play 262Hz tone
## Variants
There may be variants with buzzer, GND pin number and the pitch of the sound being played. |