![]() and a display? Or leave it all configurable over WiFi? Point is, it’s a great worked code example, and a neat DIY device to show your friends. OK, maybe we’d also add an amplifier chip, power supply, and a speaker. In sum, an ESP8266 chip, a cheap I2S DAC, and some external RAM and you’ve got a webradio player. As with the dedicated DAC, you could get away without it (and there are defines in the “playerconfig.h” file to do so) but you’ll probably regret it. WiFi - and TCP networks in general - being what they are, you’re going to want to buffer the MP3 files to prevent glitching. The other suggested external IC is an SPI RAM chip to allow for buffering of the incoming MP3 file. Of course, you could get rid of the nice-sounding DAC chip and output 5-bit PWM directly from the ESP8266, but aside from being a nice quick demo, it’s going to sound like crap. ![]() The application, as written, is build for an ES9023 DAC, but basically anything that speaks I2S should be workable with only a little bit of datasheet-poking and head-scratching. What external parts, you ask? First is something to do the digital-to-analog conversion. With a couple external parts, you can make an internet-connected device that you can point to any Icecast MP3 stream, for instance, and it’ll decode and play the resulting audio. The MP3 decoder itself is a port of the MAD MP3 library, adapted for smaller amounts of SRAM and ported to the ESP8266. This demo, a networked MP3 webradio player, just popped up in Github, written by the man better known to us as Sprite_tm. Only recently, though, have they started publishing completed, complex application examples. Espressif Systems has been doing a good job with their ESP8266 product (of course, it doesn’t hurt that the thing makes a sub-$5 IOT device a reality). ![]() Support libraries, good application notes, and worked examples from a manufacturer can really help speed us on our way in making cool stuff with new parts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |