![]() | ![]() | ![]() |
| | |||||||
| 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) |
| Experienced Member | 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) |
| Experienced Member | 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.. http://www.supermanhomepage.com/imag...an-returns.gif My friend created this account for me.. LOL http://bananasiong.myminicity.com oh.. somemore http://bananasiong.myminicity.com/env |
| | |
| | (permalink) |
| Experienced Member | 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) | ||
| Experienced Member | Quote:
Quote:
| ||
| | |
| | (permalink) |
| Experienced Member | 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.
__________________ salgat.blogspot.com Last edited by Salgat; 11th May 2008 at 05:52 PM. |
| | |
| | (permalink) | |
| Experienced Member | 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 ? | |
| | |
| | (permalink) |
| Super Moderator | 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) |
| Experienced Member | 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? Last edited by AtomSoft; 26th June 2008 at 03:20 PM. |
| | |
| | (permalink) | |
| Super Moderator | 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) |
| Experienced Member | wow now i have to learn about sd cards lol ok so any links and/or tutorials i can read up on? |
| | |
| | (permalink) | |
| Experienced Member | Quote:
__________________ ========================= Futz's Microcontrollers & Robotics ========================= | |
| | |
| | (permalink) |
| Experienced Member | 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) |
| Experienced Member | 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. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
__________________ ========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 27th June 2008 at 02:26 AM. | |
| | |
| | (permalink) |
| Experienced Member | Ill use the 248 as the 448 seems like it would be a waste also... |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |