Fred.Amoson
New Member
Hello,
I am trying to capture the audio waveform from a cheap toy, and reproduce it with a PIC. The sound I am trying to capture is about a second long.
Right now I have the toy speaker output hooked up to an input of the PIC, and the actual speaker of the toy connected to an output of the PIC. For the code I am just using "output = input" and it makes an acceptable reproduction of the sound. Is there a way to capture this sound on the PIC, save it, and play it back at a later time?
Ideally I would like to capture the sound (series of 1s and 0s) to RAM, then save to EEPROM, then pull the data from the computer and add to the code of a PIC to reproduce the sound when I wanted to.
Right now I am limited by the small amount of RAM on the PIC. I was thinking that maybe instead of capturing the data straight, and outputting straight, I could instead capture the time between a 0 and 1, and 1 and 0, basically just capture the delays?
Please let me know if you have any bright ideas! I will continue messing with it.
I am trying to capture the audio waveform from a cheap toy, and reproduce it with a PIC. The sound I am trying to capture is about a second long.
Right now I have the toy speaker output hooked up to an input of the PIC, and the actual speaker of the toy connected to an output of the PIC. For the code I am just using "output = input" and it makes an acceptable reproduction of the sound. Is there a way to capture this sound on the PIC, save it, and play it back at a later time?
Ideally I would like to capture the sound (series of 1s and 0s) to RAM, then save to EEPROM, then pull the data from the computer and add to the code of a PIC to reproduce the sound when I wanted to.
Right now I am limited by the small amount of RAM on the PIC. I was thinking that maybe instead of capturing the data straight, and outputting straight, I could instead capture the time between a 0 and 1, and 1 and 0, basically just capture the delays?
Please let me know if you have any bright ideas! I will continue messing with it.