Pages: [1] 2   Go Down
Author Topic: Playing a music with an arduino uno  (Read 1919 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I just bought an arduino uno and I would like to know if it's possible to convert a music to play it on a speaker connected to my arduino.I wanted to convert it in frequency and voltage but I didn't find how to do it on audacity. I anybody as an answer I would be pleased to know it.
« Last Edit: February 17, 2014, 05:33:22 am by aramanth » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Playing music like this?
http://forum.arduino.cc/index.php?topic=179761.0

Or having the Arduino control an MP3 module with music files on an SD card?
http://www.mdfly.com/index.php?main_page=advanced_search_result&search_in_description=1&zenid=f5b353401fd16de884fbb48af3f2c006&keyword=mp3&x=0&y=0
There's usually more choices in stock here, gives an idea of options available.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear CrossRoads,
I have an Arduino Uno and I wish to make it into something like a Daft Punk synthesiser.
I saw your post but it is too complicated for me.  smiley-sad
I want to use capacitive sensor and have the arduino play a .wav file instead of a pitch.
I do not know how to 'call' .wav files or work around with them.

Oh, I have only a speaker, wires and the Uno. Thanks!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have only a speaker, wires and the Uno.
Then you are out of luck. Uno by itself does not have enough storage space for a .wav file for more than a fraction of a second.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 569
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

SimpleSDAudio.

You'll need an SD Card and reader, or make one yourself using some male pin headers. Then use the supplied converter to convert your audio file and copy to SD. I find the quality to be very acceptable.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oooh I see.. Seems that I am lack of materials.
Is't possible that I do it without SD card and try something like a 'call' function to call the .wav files from the computer?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34726
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is't possible that I do it without SD card and try something like a 'call' function to call the .wav files from the computer?
Yes then all you need to do is to send the computer a message to tell it to play a .wav file.

You need a program running on your computer to receive that message and play the file. You have to write that in some language. One popular language to use is called Processing, it is free.
http://processing.org/
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

or perhaps you should try a raspberry pi. it is a computer running a linux-system on it. it has a sc-card-reader and it shold play all your music files you want to hear...
perhaps arduino is not the proper plattform for your goals?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Use the audio wave shield, it has SD reader and DAC for audio out and sounds good. Can then play as many sounds as you want.

OR

what I am thinking about doing if it works is use the UNO to read audio files from SD and output the digital sample data to a bluetooth module to link to a bluetooth speaker. Blutooth speakers are very cheap and easily available in the shops.
Has anyone experience of doing this......How do you send digital sample data from the UNO to a bluetooth module. I assume serial.??   
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You might be able to pull that off with mono sound. There is not enough processing bandwidth for stereo.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What if I want to store the files in FLAC on a portable HD like a Western Digital Passport?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not enough processing power to do music decompression and move the data along from device to device.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What if I used a Pi? Here is what I am trying to build:

Design

1x USB Input
Asynchronus Conversion
1 x S/PDIF Optical Toslink Output
Display output OLED? LCD?
Play FLAC or PCM stereo files
Utilize foobar2000
Track Up/Down Play/Pause Controls
Folder Up/Down/Select Controls

Power Supply  Conversion 12v DC to 5vDC?
Power supply needs to be strong enough to power MP and the portable HD
On/Off Switch
Ability to output 12v + DC for amplifier turn on

Ability to fit into the form factor of a standard DIN and half radio chassis
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not familiar with Pi.
I believe it has much more processing power and could get you there.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

From what I understand I may need 500mHz. So I guess a microprocessor is out of the question?
Logged

Pages: [1] 2   Go Up
Jump to: