![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
is it possible to record small sounds like voice responses and play them from a pic? if so how would i record them and download them to the pic? i don't know how to use external memory but if that's what i would need i have often wondered how it is used.
|
|
|
|
|
|
|
(permalink) |
|
Hi,
Is that for speech frequency? Record for how long? Use ADC and PWM module of the microcontroller. Don't forget the anti aliasing filter.
__________________
Superman returns..
|
|
|
|
|
|
|
(permalink) |
|
http://www.allelectronics.com/cgi-bi...RECORDER_.html
For $2.00, you get 30 seconds pretty cheap and easy. Have 10 of them, but haven't had time to do much more then take one a part. Pretty good value just for parts. The batteries included are fresh, 1" speaker plastic coil, electret mike, two pushbuttons. The figure is held on with two screws, easy to remove. The base makes a nice project case with battery holder built in. Plenty of room for a PCB slightly smaller the 2" square. |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
|
|||
|
|
|
|
|
(permalink) |
|
Use the ADC on your PIC to record the voltage present at your microphone/speaker at a rate of twice the highest frequency you wish to record, and to play back the sounds simply send the values you recorded to a PORT at the same rate that you recorded the sound. The PORT will use an R2R network as a DAC.
If you wish to use sounds from your computer, simply convert your sound file to an 8-Bit Mono PCM wav format and convert it to HEX (Microsoft Windows comes with a sound recorder that saves to this format). Take the HEX version, remove the header, and set it as an array in your program.
__________________
www.salgat.net Last edited by Salgat; 11th May 2008 at 05:52 PM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
How would one remove the header? Also if i dont use it the PC Way what would be the best way to save the recorded data on the chip ? eeprom ?
__________________
My YouTube Videos! My Favorite Stores: dipmicro Electronics SparkFun Electronics Futurlec BG Micro |
||
|
|
|
|
|
(permalink) |
|
EPE did just such a project a few years back, they used an EEPROM to store the HEX data from the WAV file, and provided a PC program that transferred it via RS232, and presumably removed the header. WAV is a dead simple format, it should be trivial to remove the header.
|
|
|
|
|
|
|
(permalink) |
|
ok found out header ends at Address 0x39 in the file. Was simple to find it. Made a empty wav hexed it and found it clean only header so removed it from other one and copied out all the hex values into a text file so i guess i have to send these hex values from my program to a eeprom? I need to buy one since it is around 500KB.
Can someone recommend some eeproms? Also anywhere i can get samples?
__________________
My YouTube Videos! My Favorite Stores: dipmicro Electronics SparkFun Electronics Futurlec BG Micro Last edited by AtomSoft; 26th June 2008 at 03:20 PM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
If that's kiloBYTES and not kiloBITS then you should perhaps be looking at an SD card instead, the EPE example I mentioned used a 512kiloBIT EEPROM. I don't think you get them at 4megabit?. |
||
|
|
|
|
|
(permalink) |
|
wow now i have to learn about sd cards lol ok so any links and/or tutorials i can read up on?
__________________
My YouTube Videos! My Favorite Stores: dipmicro Electronics SparkFun Electronics Futurlec BG Micro |
|
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
========================= Futz's Microcontrollers & Robotics ========================= |
||
|
|
|
|
|
(permalink) |
|
Here is a really easy way to do audio from a PIC. No need for a DAC - just a low pass filter (cap and resistor). It sounds like exactly what you need.
Official Home Page of the Roman Black |
|
|
|
|
|
|
(permalink) |
|
futz what uC do you recommend? i see your trying the 18F4620. Is there anything else ?
I have on hand a PIC18F448 and a PIC18F248. Would any of those do? I will buy from Futurlec those parts it seems like a nice challenge to work on.
__________________
My YouTube Videos! My Favorite Stores: dipmicro Electronics SparkFun Electronics Futurlec BG Micro |
|
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 27th June 2008 at 02:26 AM. |
||
|
|
|
|
|
(permalink) |
|
Ill use the 248 as the 448 seems like it would be a waste also...
__________________
My YouTube Videos! My Favorite Stores: dipmicro Electronics SparkFun Electronics Futurlec BG Micro |
|
|
|
|