There maybe many other ways to play sounds with the ESP32 but this is my example:
https://github.com/pcbreflux/espressif/ ... pio_buzzer
Press GPIO 0 button!
ESP32 playing sound example
ESP32 playing sound example
- Attachments
-
- buzzer setup
- Video 0089 - ESP32 playing sound - 4.png (5.93 MiB) Viewed 9041 times
Re: ESP32 playing sound example
Works also with a small speaker. Hopefully the GPIO will no be abused?
- Attachments
-
- sound.jpg (2.26 MiB) Viewed 9035 times
Re: ESP32 playing sound example
I would recommend using 100 ohm resistor and 10uF (+ toward gpio) capacitor between GPIO and speaker or the gpio eventualy will be damaged.
Re: ESP32 playing sound example
Thank you, if I realy think about it (not just try it without a thought) - the speaker is rated 8 Ohms and if the esp32 is supplied with 3.3V the current can peek at 412.5mA - way to high for the gpio. With the 100Ohms its down to 30mA.
Who is online
Users browsing this forum: No registered users and 15 guests