Arduino Forum

Using Arduino => Audio => Topic started by: sunny_12 on Apr 05, 2016, 09:35 pm

Title: Wav file output from Class D mono amp
Post by: sunny_12 on Apr 05, 2016, 09:35 pm
I'm trying to play a wav file from arduino through a mono amp with the low pass filter at the input but my output on the speaker is very noisy. Do I need a high pass filter at the output for DC offset? How do i calculate the values?
Title: Re: Wav file output from Class D mono amp
Post by: DVDdoug on Apr 06, 2016, 12:27 am
Are you using an audio shield?

A regular Arduino doesn't have a digital-to-analog converter.  If you are using analogWrite() and 8-bit PWM, you're going to have lousy sound quality.
Title: Re: Wav file output from Class D mono amp
Post by: jremington on Apr 06, 2016, 12:48 am
You may need to use capacitor coupling between the PWM output and the amplifier to eliminate the DC offset. 1-10 uF will work.