PWM@ Analog to Digital@ Digital to Analog@
Lots of people have asked for it so here it is, a little analog output circuit for microcontrollers that covers the common voltage and current ranges used in instrumentation.
The input can be, for example, 0-5V analog from a DAC, or 0-5V PWM signal. The 100k resistor and 1uF capacitor filter the PWM signal to make it smooth DC. With J3 ON the input becomes 1-5V to produce the offset zero ranges.
The first Op Amp is the output driver, and its feedback path can either be voltage (J2 ON) or current (J4 ON). With J1 OFF the Op Amp gives a gain of 1, and with J1 ON it gives a gain of 2.
With J4 ON, the second Op Amp provides current feedback for the first Op Amp. It acts as a differential amplifier, using the 100R resistor as a current sensing element. The 47R resistor does nothing except fix a linearity problem the circuit had at low outputs. Two 10k resistors were used in series because 20k was not available.
The jumper settings indicate how to select the desired voltage and current ranges. Hope the ideas in this circuit are helpful to you all.
Electronic Design Solutions
16 English Street
Hamilton, New Zealand
Ph: +64 7 849 0069
Fax: +64 7 849 0071
Mobile: 027 433 4069
eMail: TakeThisOuTbrent.brown@spam@ at clear.net.nz
|file: /Techref/microchip/aout.htm, 3KB, , updated: 2015/7/13 07:58, local time: 2019/12/11 22:18,
|©2019 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://piclist.com/techref/microchip/aout.htm"> Analog Output with jumper settings for voltage and current ranges</A>
|Did you find what you needed?|
PICList 2019 contributors:
o List host: MIT, Site host massmind.org, Top posters @20191211 RussellMc, David Van Horn, Bob Blick, Neil, AB Pearce - UKRI STFC, Jason White, James Cameron, Dwayne Reid, Manu Abraham, David C Brown,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to piclist.com!