DeltaSigma PWM audio Output
http://www.esp8266.com/viewtopic.php?f= … =40#p21048
Victor ? are you the same Victor “pvvx” author of this work on ESP ?
If Yes, do you plan to port some of this work to the STM2duino ?
Ciao ! ![]()
http://www.esp8266.com/viewtopic.php?f= … =40#p21048
Victor ? are you the same Victor “pvvx” author of this work on ESP ?
If Yes, do you plan to port some of this work to the STM2duino ?
Ciao ! ![]()
Mon Jun 22, 2015 1:51 am
EDIT: I had a quick look, this looks really cool. I have a few ESP laying around that I need to put to some use…
EDIT2: had a bit better look, I don’t think this should be difficult to port at all. We could use 2 channels of a single timer to do PWM output. We have freeRTOS and CoOS working already.
Mon Jun 22, 2015 2:11 am
@matthias, our audio expert, what do you think about that ? do you think is is worth to have it ported ?
Mon Jun 22, 2015 7:50 am
The specs for the ESP8266ESP8266Microcontrollers and processors…working, on the Arduino.cc forum The ESP thing looks similar, but at the moment, www. esp8266 .com is not responding, so I’ll take a look later to see if it seems to be the same b…View in hardware catalog are:
[*]64KBytes of instruction RAM
[*]96KBytes of data RAM
So I doubt getting mp3-sw-decoding, pwm-out plus frontend (incl. hardware like display…) working on a medium-density device. It’s more a job for the high-density ones – and they have I2S on board, so no fooling around with PWM-delta-sigma audio would be necessary (I2S DAC’s costs about a few cent up to 2-3 USD).
So maybe using the PWM-delta-sigma code for something else than mp3 (or any other compressed audio format) like speaking alarm clocks,…? This should be possible!
Off topic:
A really impressing demo of what can be done with pwm-audio (using 2 pins) even on AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog ’s is the outstanding mozzi library:
http://sensorium.github.io/Mozzi/
Mon Jun 22, 2015 8:22 am
VS1053VS1053Analog, logic and power components…inly ok, but i do occasionally get a glitch when trying to play MP3 files from SD to VS1053 . But i have not had time to find the cause, because sometimes it can run for many hour…View in hardware catalog boards are less than $10, and we have a lib for them (thanks to vasillis)
$10 http://www.ebay.com/itm/VS1053-MP3-Modu … 4853e421c4
Offloading MP3 (or WAV etc) playback to external hardware is most likely the best option as it leaves the main processor free to do some other things
Mon Jun 22, 2015 10:37 am
Mon Jun 22, 2015 11:31 am
Thanks for the link to the Mozzi wiring diagram. I wondered why it needed 2 pins.
i agree. Mozzi sounds excellent, so perhaps we should port it t STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog .
i have looked at audio playback on AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog before, which used multiple pins, but it was not as clever as Mozzi. I cant remember the name of the library, but it just played beeps on multiple pins, so that you could have very basic polyphonic music e.g. like cheap musical christmas cards.
But Mozzi sounds amazing. I presume that the 2 bits, give output levels. I wonder if its scalable to more pins ?
Mon Jun 22, 2015 12:40 pm
Mon Jun 22, 2015 12:47 pm
Mon Jun 22, 2015 4:14 pm
According to NXP application note:
1.7 Memory requirements
The EFSL and the libmad libraries consume memory to work. The amount of the memory
is about:
Table 1. Memory requirements for the MP3 player demo
RAM [kB] Code [kB]
Libmad + EFSL 33 109 Sat Jul 04, 2015 5:18 am
I haven’t look at the details yet, so no idea if it uses the DACs in that chip, or the i2s (may be the case…).
Any way, whenever I have a chance I’ll test this out in one of my RCT6 boards, as those actually have 64KB of ram, so should be enough.
This may be a good option for many, as those boards can be had for the same price as a VS1003VS1003Analog, logic and power components…global instantiation RogerClark Fri Jun 05, 2015 11:39 am Guys, I was looking at the VS1003 lib and thought it would be good to try to playback and MP3 from the SD card, but rathe…View in hardware catalog or less, and instead of 2 boards you use only one and a little amplifier.
Mon Aug 14, 2017 1:07 am
Mon Apr 09, 2018 4:22 pm
Mon Apr 09, 2018 5:39 pm