Recently, I wanted to play with audio playback again.
I dug out some previous articles to review.
This time I plan to use M5stickC, the one with a strap that you can wear on your wrist, yes, it looks great.
I had seen this library before, tested it, and then completely forgot about it. Recently, I was struggling with how to play music using Arduino, tested several solutions but was not satisfied. I asked a friend, and he sent me this library. When I opened it, I realized I had marked it with a star before… but I really had no impression of it. I went to find the speaker and discovered all the materials were in one box; I had indeed tried it before. Today, I will record the important information so I don’t forget it again in the future.
I have previously shared several solutions:
[Arduino] DFPlayer Mini MP3 Music Playback Module Arduino Music Playback Module
[DIY] Arduino Music Playback Solution — TMRpcm
But these solutions all had shortcomings, so today I will try this solution and see how it performs.
Function and Goal: To achieve music playback in the simplest way
The library provides quite a few examples and features, so today I will do a simple test to see the effect, and later I will try all the features.
Library Name: ESP8266Audio
Author:
Earle F. Philhower, IIIearlephilhower
Project Address: https://github.com/earlephilhower/ESP8266Audio
Test Example: PlayMP3FromSPIFFS (MP3 files are stored in the SPI FLASH of the 8266)
Hardware: nodemcu v3, 8 ohm 1w speaker (forgot the price)
Hardware Circuit: Speaker directly connected to RX pin and GND, couldn’t find a transistor so I didn’t look for the reference circuit
Other Information:
-
SPIFFS upload method reference:
[Arduino] Arduino Development ESP8266 SPIFFS File Upload Method
-
Compile with 160Mhz
-
MP3 File Information:
Summary: I listened to the effect, and it was okay. Since it is directly connected, the sound is very low, but you can hear the music, and there is little noise. Next time, I will try using an operational amplifier and a transistor to drive it, and see how it goes. If the effect is good, this might be the best music playback solution.
Leave a Comment
Your email address will not be published. Required fields are marked *