Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th February 2007, 12:34 PM   (permalink)
Default adc/dac interfacing with pic microcontroller

hello
this is my first thread here and i really need ur help in this project

i need to make an interfacing circuit which includes a mic and adc/dac and pic 16f877a microcontroller and speaker and the circuit or microcontroller is required to store 5 audio samples and then send them to dac and then to speaker in more simple way i need to make a circuit that acts like a recoder as u speak into a mic then adc sends the samples to microcontroller which is required to store 5 samples then send them to dac and from dac to speaker where i can hear the sound again so can anyone help me with a circuit diagram or pic program coz i am not so good in microcontrollers programming and thanks in advance
bebo670 is offline  
Old 15th February 2007, 04:22 PM   (permalink)
Default

Input: you'll need a lowpass filter (with cutoff of about 3400hz, hope I got that correct), a switch (for sample & hold) to be controlled by control signals from your micro. A fast ADC might eliminate the need of the SHC stage.

The rate at which the micro initiates the ON/OFF switching determines your sample rate. You'll need an ADC between micro and input stage. Of course.

By the way, why just 5 samples. Have you considered the quality of your output?

Finally a DAC connected to the serial output of your micro. You'll need an RC filtering scheme at the output to smoothen the staircase shape of your output and approximate it to a sinuisoidal waveform, which is what our voices sound more like. This is just the electronics.

There are a lot of example programs to help you along. You can try out Nigel's page. Lots of stuff there.
__________________
Everybody can but not everybody will.
aibelectronics is offline  
Old 15th February 2007, 04:30 PM   (permalink)
Default

Quote:
Originally Posted by aibelectronics
Input: you'll need a lowpass filter (with cutoff of about 3400hz, hope I got that correct), a switch (for sample & hold) to be controlled by control signals from your micro. A fast ADC might eliminate the need of the SHC stage.
The PIC 16F877A he suggested already has an internal 10 bit A2D, which you can configure to use as 8 bit - which would be a good idea for this application.

Quote:

The rate at which the micro initiates the ON/OFF switching determines your sample rate. You'll need an ADC between micro and input stage. Of course.

By the way, why just 5 samples. Have you considered the quality of your output?
I think he means 5 sequences of samples?, so 5 seperate sound clips.

Quote:

Finally a DAC connected to the serial output of your micro. You'll need an RC filtering scheme at the output to smoothen the staircase shape of your output and approximate it to a sinuisoidal waveform, which is what our voices sound more like. This is just the electronics.
A simple R2R D2A ladder is all you need, followed by a low-pass filter.

Quote:

There are a lot of example programs to help you along. You can try out Nigel's page. Lots of stuff there.
There's a tutorial about using the A2D, but the memory storage (as in the other similar thread) is the BIG problem!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 16th February 2007, 12:47 AM   (permalink)
Default

thanks alot guys for ur help i really appreciate it and i will do as u suggested and see what happens and hope everything works fine thanks again guys
bebo670 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
help required urgent...microcontroller burning project +keypad interfacing kalprajesh Micro Controllers 0 17th October 2006 06:30 AM
interfacing microcontroller with UART(8250) jam_mafia Micro Controllers 23 26th February 2006 04:20 AM
Newcomers, please read! (PIC regarded) Upd. 0xD Jay.slovak Micro Controllers 0 17th April 2005 02:05 PM
Interfacing a microcontroller with a modem matt_d82 General Electronics Chat 3 21st March 2004 03:43 AM
interfacing Atmel Microcontroller AT89C51 with LM75 umar abdul sattar Micro Controllers 0 28th June 2003 06:27 AM



All times are GMT. The time now is 04:33 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker