Kids ESP32 MP3 Box
Print Profile(1)

Bill of Materials
- Lolin32 Lite (ESP32) x 1: https://www.aliexpress.com/item/1005010667019000.html
- 1.3" OLED Module SH1116 with encoder and buttons x 1: https://www.aliexpress.com/item/1005008750619680.html
- Speaker 3W DuPont x 1: https://www.aliexpress.com/item/1005005699690954.html
- DuPont Wires Female-Female 10 cm x 20: https://www.aliexpress.com/item/1005003641187997.html
- Toggle Switch 3Pin x 1: https://www.aliexpress.com/item/4000699324084.html
- Battery 18650 x 1:
- DF Player Mini x 1: https://www.aliexpress.com/item/1005010351111333.html
- Micro SD Card x 1:
- Screw to plastic 2.2x5 mm x 4:
- Screw M3x6 x 4: 4x LCD, 3x Body
Description
Project was inspirated by music box by De Agostini (Disney audio books). Books are sent or possible to buy one per two weeks but my kids want to play musics every day but from all fairy tales.
I create small box with cheap Lolin32 Lite board, DF Mini MP3 player, OLED display with button and encoder and some 18650 battery from old toy.
Code is made by ESPHome, Yes I have connected it to Home Assistant with possibility to select and play specific audio file.
Asembly guide:
Inserts are quite complicated to insert to display part (4x). Do it presice. To bottom part are needed 3 pcs of inserts.
Insert OLED module with connected wires to body part and fix it by M3 screews.
If you want to use switch to turn on/off box when is it battery powered. You will need connected cable between + on battery and Lolin connector.
I modified battery conector on Lolin to horisontal position for using.
Fix Lolin to bottom board by 2.2 screews. Fix DF Player module and battery by glue gun. I fix DuPont cables too. Some connector is needed modify to close box (DFplayer pins)
After asebly use 3x M3 crews to close box and try upload code to ESP32 Module.
MP3 card.
Code is designed to MP3 stored in mp3 folder and files must have number on start of name (001,002 etc.)
Circuit pinout:
i2c:
sda: GPIO19
scl: GPIO23
UART
tx_pin: GPIO27 # ESP TX -> DFPlayer RX
rx_pin: GPIO26 # ESP RX <- DFPlayer TX
Encoder
Pin A GPIO32
Pin B GPIO33
Encoder button GPIO25
Back button (Volume) GPIO 14
Turn On/Off OLED button GPIO 13
Documentation (4)















Comment & Rating (0)