In this tutorial, you will learn how to build a web server using the ESP32 to control the YX5300 module, a serial-controlled MP3 audio player. This project will allow you to manage the playback of MP3 files stored on a microSD card, directly from a web interface accessible from any device connected to the same Wi-Fi network.
The ESP32, with its powerful processing power and wireless connectivity, will be the brain of this project, while the YX5300 module will be responsible for playing the music or sound effects you want. Through a series of serial commands sent from the ESP32, you will be able to play, pause, stop, fast forward or rewind audio tracks, as well as adjust the volume, all in a simple and effective way.
This project is ideal for applications that require a remote audio control system, such as alarm systems, voice notifications, interactive toys, or simply to add a custom sound system to your IoT projects. Throughout this tutorial, we will guide you step-by-step through configuring the hardware, programming the ESP32, and creating the web interface, so that you can replicate and adapt this project to your needs.
Electronic componentsAn Esp32Female pins
Dupont cables female male
A micro SD card
A YX5300 MP3 module
Module Manual
Very important –> https://goo.gl/xZPiJp
Examples for arduino
SerialMP3PlayerDemoCode for Arduino-1.0
Program similar to the one in the video.
This is in Mandarin
Relay Module- Operating Voltage: 5V DC
- Control Signal: TTL (3.3V or 5V)
- Number of Relays (channels): 1 CH
- Max capacity: 10A/250VAC, 10A/30VDC
- Max current: 10A (NO), 5A (NC)
- Action time: 10 ms / 5 ms
- To activate output NO: 0 Volts
PCB
PCB
Descargar archivo gerber –> Esp32_fingerprint_PCB
Circuit
Comments