Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can We play Audio through DAC module,,,,,

Status
Not open for further replies.

sunil880089

Full Member level 2
Joined
Aug 24, 2011
Messages
125
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,031
Hi friends,



i need one help, can we play audio sound through DAC module... please help me...
 

If you send the corresponding signals through the digital input and amplify the audio output, yes you can play audio.
 
thank you,

but can u tel me corresponding signals mean what... any example. please
 

By Audio signal if u mean wav file, u can directly read the wav file and send it to DAC at its defined sampling rate. And if u mean mp3, u might use mp3 decoder and send its signal to DAC.
 
Decoding mp3/ogg or other loosy/high compression formats requires some horsepower from microcontroller. I've seen somewhere a library which can do that but in ARM Cortex-M3 @ 72 MHz (people reported that it doesn't work below 48MHz). With simple MCU like AVR, PIC16 or PIC18 or MSP430 you can play wav/midi at most (maybe other uncompressed formats).

As for DAC it's the way mshrestha789 said. If you have table of samples and send them to DAc at fixed frequency which is the same as audio file sampling frequency then you can play sound. You only have to amplify the output signal a little with some opamp and couple capacitively to headphones (to remove DC component and get AC signal with zero in the middle)

edit:
You also need to specify what kind of DAC you want to use, because they come in great many varieties with broad range of parameters. You need to specify at least resolution, type and interface kind.
 

k sir i ll try.. Thank you..

If u have any information's please tel me..

---------- Post added at 16:07 ---------- Previous post was at 16:05 ----------

regarding audio file,

i have DAC module. i don't know what value i have to send to DAC .
the output of DAC is connected to the Speaker. so please help me.
 

What do you mean by DAC module? Single chip? a PCB with some chips? Or What? Give us some number of the part. DAC's generally accept information about voltage. And information about voltage is stored as sample values in audio file. Of course you probably can't just send these values from some microcontroller straight to DAC, but have to scale them (most basic reason being the resolution of dac)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top