Does anybody know how to load sound onto the ATtiny2313 ?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
rocket100
 
Posts: 8
Joined: Thu Jun 04, 2009 8:08 pm

Does anybody know how to load sound onto the ATtiny2313 ?

Post by rocket100 »

Does anybody know how to convert sound files such as, midi, aif, or mp3 to C-code so I can burn that to the ATtiny2313 and have it play back the sound.
I heard that you can use PWM but I don't know how to do that. :?:



thanks... :D

The_Don125
 
Posts: 373
Joined: Tue Mar 06, 2007 11:51 pm

Re: Does anybody know how to load sound onto the ATtiny2313 ?

Post by The_Don125 »

The tiny2313 only has 2kB of space for stuff, even mp3 format songs would only be able to play for a fraction of a second with that limited space, and that's not even considering you would need at least 1kB of program space for decoding the data.

rocket100
 
Posts: 8
Joined: Thu Jun 04, 2009 8:08 pm

reply

Post by rocket100 »

I was thinking of just using low quality sound effects for my robots.
And if those small microcontrollers covered with black epoxy on circuit boards can store sounds for toys I don't see how the tiny2313 couldn't hold sounds.

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Does anybody know how to load sound onto the ATtiny2313 ?

Post by Franklin97355 »

The things under the epoxy aren't microcontrollers so you are comparing apples to oranges.

Tallscreen
 
Posts: 6
Joined: Wed Jun 03, 2009 5:22 pm

Re: Does anybody know how to load sound onto the ATtiny2313 ?

Post by Tallscreen »

You can get external boards to play sounds, eg. http://www.futurlec.com/Mini_MP3.shtml

Or you could just buy a cheap MP3 player and hack it.

[edit]
http://letsmakerobots.com/node/3522

User avatar
bryon
 
Posts: 1
Joined: Sun Aug 16, 2009 10:30 am

Re: Does anybody know how to load sound onto the ATtiny2313 ?

Post by bryon »

You might have a look here:

http://www.BANNED.com/picsound.htm

Bryon

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”