I'm not sure it would be powerful enough to create sounds on my 8 ohms speaker (used to be an in car speaker).
I used http://arduino.cc/en/Tutorial/tone successfully and it uses a 100ohm resistor, versus 10k in this DAC page.
As you can guess, I'm not a hardware guy. but I'd really like some advice on possible values of the resistor and capacitor that would play well with my 8 ohm speaker.
Nothing wrong, this guy who build a circuits use it for DC, so filter has cut-off freq. 159 Hz, and consequently attenuation at 31250 approx. 20.0 * log10(31250/159) =~ 46 dB
In your case, there is an AC - audio tone instead of DC, so you need a filter with cut-off above upper note. As ratio becomes smaller when you drive your pitch up (31250 / X), attenuation ability for PWM freq. 31250 would deteriorate, and you will have to use more complex filters - 2-nd order, LC, etc., to keep distortion level at minimum
thanks all.
I'll go for 250 ohms and matching capacitor later when I find the matching capacitor.
But for now all I want it to get some sound, then play with mixing multiple sine waves in software, etc ...
Anyway, thanks everyone, and I'll post about the results next weekend
Trying to drive a 8 ohm speaker without some form of audio amplification is just a lost and wasted cause. Separate your filtering requirements from your speaker drive requirements and you might have some success. Even if you were happy just using unfiltered square waves, an arduino digital output pin is just not a good match to drive a 8 ohm speaker.