Programmable IC for very short audio clip

Started by Mario44, February 04, 2014, 10:48:45 AM

Previous topic - Next topic

Mario44

Hey everyone.
I'm not the specialist of digitals but I decided to make a simple circuit with atmega16 IC for randomizing.
It's dice simulation and I would like to add 'throwing dice' short sound clip(about 1 second) before it shows the numbers on the LED displayer.
Does anyone know IC which I could use, or function of atmega16?

bcalla

Hi Mario -
Madbean used to sell a board for a project called the Loophole.  It is a lo-fi looping pedal which can record up to 20 seconds using the ISD1020AP chip.  You can find the datasheet on line to see if it will meet your needs.  If it does, I have an extra one (used).  After building my Loophole I discovered that there is a 90 second version of the same chip, so I swapped out the original 20 second chip.  PM me if you are interested.
Bob
"Under certain circumstances, profanity provides a relief denied even to prayer."
       -- Mark Twain

Mario44

#2
It purpouse is to record on live what you play, so its a looper chip, isn't it?.
But what if I want to record it once and play it anytime when the button is pushed?
Will it still storage the file after disconnecting the unit from the power line?
edit: And is it THT or SMD? I etch boards myself so only THT for me

bcalla

The answers to your questions:
- The chip is actually intended for voice recorders. 
- The Loophole has a toggle switch that disables the record function so that you don't accidently record over a loop that you want to save.
- It does retain what you recorded even after disconnecting the power.
- It is through hole, not SMD.
"Under certain circumstances, profanity provides a relief denied even to prayer."
       -- Mark Twain

Mario44


slacker

I've never used an Atmega but I had a quick look at the specs and it has 16K of flash memory so if your dice roll program doesn't use much memory you could store a short sample in the rest of it and use one of the PWM outputs to play it back,  this would be fairly low quality but should be possible.  Another option would be add an external EEPROM like a 24LC32 and store the sample on that.
I'm sure I've seen projects online that do this.

Mario44

I'm doing this project with my friend and so far we have problems with software.
Here is picture of this circuit, so maybe it will be helpful to somebody.