EveryCircuit
Contact
Reviews
Home
jkilner
modified 5 years ago

ARDUINO DAC

4
3
223
02:47:16
Digital to Analog Converter for Arduino. 1st order Lowpass Filter. Cutoff Frequency ~30Khz Amplifier gain is 4:1
published 5 years ago
hurz
5 years ago
30kHz filter corner is much to high for a 30kHz input signal. Go ten times lower as thumb of rule to get with an passive 1order low pass, or even better if you already power an OpAmp why dont you implement a second order lowpass ? Anyway, you know the default PWM signal is about 400Hz and only with some ugly tricks you can increas it to about 30kHz. So a good filter for arduino is somewhere below 100 or less in corner frequency by default. This is still good for >20ms settling time. It all needs attention to the ripple which is left after filtering. E.g. if the PWM is a 8bit resolution we need a filter with about 46dB attenuation to all harmonics is sum inclusive the base harmonic 420Hz for arduino, otherwise we lose performace from PWM to DC voltage we would like to get. 48dB is from 5V / ~250 = <20mV ripple
hurz
5 years ago
yes, your amplifier gain is 5
hurz
5 years ago
and as you can see in bode plot the corner frequency for this combination 10kOhm 100nF is at 159Hz http://everycircuit.com/circuit/4688521158459392

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2025 by MuseMaze, Inc.     Terms of use     Privacy policy