It is possible to do a 0-10V analog output(by Ilie Constantin)
It is possible to do a 0-10V analog output ?
Thank you.
Wed Sep 9 2009, 07:59:20
(no subject)(by Jonathan Westhues)
The PIC or AVR itself runs from a maximum of ~5 V, so this is not directly possible.
One way to do it might be to use the PWM output, and put it in to an RC low-pass filter. This is usually the best way to improvise a low-speed DAC with the hardware available on a typical micro.
If the micro is running at 5 V, then this produces a DC voltage between 0 and 5 V, according to the PWM duty cycle. If the PWM frequency is 10 kHz, then you might choose R = 33k, C = 10 uF; that would give RC = 330 ms. Faster time constants give faster response time, but more ripple.
Then you can use a higher-voltage opamp to amplify the signal with gain +2 V/V. That will also buffer the signal, so that it doesn't get loaded down by whatever you're driving. Something like an LM324, configured as a non-inverting amplifier and running from +12 V (since it can swing up to V+ - 1.5 V) might do the job, depending on the impedance of your load.
Wed Sep 9 2009, 08:10:54
(no subject)(by Ilie)
Thank You very mach , but I need , example output 0-5V liniar modified , not variable freqvency I know that.