Go Down

Topic: Understanding Audio for a new project? (Read 1 time) previous topic - next topic

josephchrzempiec

Hello I'm trying to understand a few things about audio and my upcoming project maybe someone can help me out on.  I have tested a 8bit 16000hz  wav file i found online With just a simple uno board and a sd card module. I also used speakers that have a small amp on them so i can here the music without it very low But it works. I'm not trying to go into big detail on the inner workings of wav files or mp3 but i was wondering Would it be possible to also play a mp3 I have not tried this yet. The wav file playing was from a few months back But still wondering if be able to play a mp3 song or would it require some extra parts to make it work correctly besides using a mp3 shield?

CrossRoads

Extra parts are needed for MP3 playback - like a shield/module with VS1053 chip (which I believe includes MP3 decode license: MPEG Layer-3 audio decoding technology licensed from Fraunhofer IIS and Thomson).


http://www.vlsi.fi/en/products/vs1053.html
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

josephchrzempiec

Hello crossroads i was looking at some of the old old post and i have seem talk about the vs1053 chip. The other part of my project not only to play mp3 songs but to stream them maybe using a 433mhz wireless module or using the nrf24l01+ module. it will go from one arduino to another. Wondering if that is possible as well I'm guessing both arduinos might need this module VS1053 to make the audio work?

josephchrzempiec

Well first thing is first to get mp3 working so I will look into this chip/module i found a few on mouser and adafruit.

CrossRoads

#4
Nov 16, 2015, 08:16 am Last Edit: Nov 16, 2015, 08:16 am by CrossRoads
Look at MP3 modules
http://www.mdfly.com/search.php?search_query=mp3<a target="_blank" href="%3Cbr%3EEasy%20to%20command%20file%20to%20play%20with%20simple%20Serial.write%20command%3Cbr%3E%3Cbr%3ENot%20sure%20if%20RF%20modules%20like%20those%20+%20arduino%20will%20support%20audio%20data%20rates%20(2%20bytes/channel%20x%202%20channels%20x%2040,000%20samples/second%20=%20160,000%20bytes/second)%3Cbr%3EMaybe%20look%20into%20bluetooth%20transmitters:%3Cbr%3E%3Ca%20target=%22_blank%22%20href=%22http://www.parts-express.com/Search.aspx?keyword=bluetooth%252520transmitter&sitesearch=true%22%3Ehttp://www.parts-express.com/Search.aspx?keyword=bluetooth%2520transmitter&sitesearch=true%3C/a%3E"><br>Easy to command file to play with simple Serial.write command<br><br>Not sure if RF modules like those + arduino will support audio data rates (2 bytes/channel x 2 channels x 40,000 samples/second = 160,000 bytes/second)<br>Maybe look into bluetooth transmitters:<br><a target="_blank" href="http://www.parts-express.com/Search.aspx?keyword=bluetooth%2520transmitter&sitesearch=true">http://www.parts-express.com/Search.aspx?keyword=bluetooth%20transmitter&sitesearch=true</a></a></a>]
Easy to command file to play with simple Serial.write command

Not sure if RF modules like those + arduino will support audio data rates (2 bytes/channel x 2 channels x 40,000 samples/second = 160,000 bytes/second)
Maybe look into bluetooth transmitters:
http://www.mdfly.com/search.php?search_query=mp3<a target="_blank" href="%3Cbr%3EEasy%20to%20command%20file%20to%20play%20with%20simple%20Serial.write%20command%3Cbr%3E%3Cbr%3ENot%20sure%20if%20RF%20modules%20like%20those%20+%20arduino%20will%20support%20audio%20data%20rates%20(2%20bytes/channel%20x%202%20channels%20x%2040,000%20samples/second%20=%20160,000%20bytes/second)%3Cbr%3EMaybe%20look%20into%20bluetooth%20transmitters:%3Cbr%3E%3Ca%20target=%22_blank%22%20href=%22http://www.parts-express.com/Search.aspx?keyword=bluetooth%252520transmitter&sitesearch=true%22%3Ehttp://www.parts-express.com/Search.aspx?keyword=bluetooth%2520transmitter&sitesearch=true%3C/a%3E"><br>Easy to command file to play with simple Serial.write command<br><br>Not sure if RF modules like those + arduino will support audio data rates (2 bytes/channel x 2 channels x 40,000 samples/second = 160,000 bytes/second)<br>Maybe look into bluetooth transmitters:<br><a target="_blank" href="http://www.parts-express.com/Search.aspx?keyword=bluetooth%2520transmitter&sitesearch=true">http://www.parts-express.com/Search.aspx?keyword=bluetooth%20transmitter&sitesearch=true</a></a>]http://www.parts-express.com/Search.aspx?keyword=bluetooth%20transmitter&sitesearch=true]http://www.mdfly.com/search.php?search_query=mp3
Easy to command file to play with simple Serial.write command

Not sure if RF modules like those + arduino will support audio data rates (2 bytes/channel x 2 channels x 40,000 samples/second = 160,000 bytes/second)
Maybe look into bluetooth transmitters:
http://www.parts-express.com/Search.aspx?keyword=bluetooth%20transmitter&sitesearch=true
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

Well, that is messed up - see what you can do to follow the links. "Smart" forum doesn't show the source so I can edit it.
mdfly.com and parts-express.com


Good night ...
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

josephchrzempiec

So far the nrf24l01+ can handle from 256k up to a 2mb file transfer  it can be set so not sure either.

josephchrzempiec

Thank you for the information project is in a few weeks away So I'm looking into it and when i get something in mind i will update this post and see about the audio stuff thank you.

Grumpy_Mike

The Bare Conducting Touch Board, is an Arduino comparable with one of those chips on board and will play MP3 files.

pjrc

This is certainly true for 8 bit boards like Uno & Mega at only 16 MHz.

Extra parts are needed for MP3 playback - like a shield/module with VS1053 chip
Faster 32 bit boards do have enough resources to decode MP3.  Here's one I know works.

Since the last MP3 decoding patent has expired (in Sept 2015), and more boards are starting to appear with 32 bit ARM chips, we're likely to see more MP3 libraries appear in the not-too-distant future.  The long held conventional wisdom, that an external chip is needed, will become a relic of the past as 32 bit chips displace 8 bit.


Go Up