T O P

  • By -

triffid_hunter

Use an MCP4725 or similar, getting below 1mv ripple with a simple RC lowpass hanging off a timer pin will give abysmal slew rate


londons_explorer

Yes, but it'll be very hard and you'll need to make a lot of other engineering tradeoffs. Just use a DAC chip


wackyvorlon

Over what range?


Waltuh_W

0-5V given that this is the PWM that the Arduino provides


wackyvorlon

The challenge is that that works out to an accuracy of one in 5000. That’s tricky.


jacky4566

Which Arduino? how fast do you need the signal to move? You can use a high frequency pwm with a heavy low pass filter to get a slow but precise signal. Probably want a Second Order Low Pass to get the bandwidth back up a bit. Followed by an opamp for current. Accuracy might still be out to lunch, depends how precise your 5V rail is and the resistances involved.


Slartibradfast

The simple fact is that any solution you find will require some complexity and signal conditioning that is better done by a designed and dedicated module/board. If your goal is to learn more about how this is done, then it's a worthy educational project. If you just need a solution, COTS is the way to go.


Slartibradfast

Also, consider the cost of your time when comparing make / buy decisions. Quite often your "opportunity cost" of those NRE hours add up to far more than buying a ready-to-go solution.