1| Supported Targets | ESP32-S2 | ESP32-C3 | 2| ----------------- | -------- | -------- | 3 4# RMT Transmit Loop Example -- Musical Buzzer 5 6(See the README.md file in the upper level 'examples' directory for more information about examples.) 7 8RMT peripheral can send customized RMT items in a loop, which means we can use it to generate a configurable length of periodic signal. 9 10This example will show how to drive a passive buzzer to play a simple music, based on the RMT loop feature. 11 12## How to Use Example 13 14### Hardware Required 15 16* A development board with ESP32-S2 SoC 17* A USB cable for Power supply and programming 18* A passive buzzer 19 20Connection : 21 22``` 23VCC +--------------+ 24 | /+ 25 +++ | 26 | | | Passive Buzzer 27 +++ | 28 | \+ 29 | 30 + | 31 +<----+ 32GPIO +--------+ 33 +-----+ 34 + | 35 | 36GND +--------------+ 37``` 38 39### Build and Flash 40 41Run `idf.py -p PORT flash monitor` to build, flash and monitor the project. 42 43(To exit the serial monitor, type ``Ctrl-]``.) 44 45See the [Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html) for full steps to configure and use ESP-IDF to build projects. 46 47 48## Example Output 49 50``` 51I (325) example: Playing Beethoven's Ode to joy 52``` 53 54After you seeing this log, you should hear the music from your buzzer. You can also play other music by updating the `notation` array in the `musical_buzzer_example_main.c`. 55 56## Troubleshooting 57 58For any technical queries, please open an [issue] (https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon. 59