Hi everybody
I new to electronics and I need your help. I am experimenting with a
microcontroler and I want a 0-5V output to make it 0-10Volt....can
you tell me where I can find a simple circuit to implement?
Another option is to covert the 0-5V to4-20mA. Can I do it in a
simple way?
Thank you
Harry
If you've got a 0-5V output and a 12VDC supply, it's easy with an op
amp (view in fixed font or cut&paste to M$ Notepad):
|
| .----------.
| | |
| | |
| | uC | 1/2 LM35
| | |
| | |Analog output +12V
| | | 0-5V |\|
| | o----------------|+\ 0-10V Out
| | | | >---o-------o
| | | .---|-/ |
| | | | |/| .-.
| | | | === | |10K
| | | | GND | |
| | | | '-'
| | | | |
| | | '----------o
| | | |
| | | .-.
| | | | |10K
| '----------' | |
| '-'
| |
| ===
| GND
(created by AACircuit v1.28.6 beta 04/19/05
www.tech-chat.de)
The simplest way to get a 4-20mA output with a microcontroller is to
make a 0-20mA output:
|
| .----------. +12V
| | | |
| | | '---------o
| | uC | 1/2 LM35
| | | .---------o
| | |Analog out +12V |
| | | 0-5V ___ |\| |
| | o------|___|-o-------|+\ |/
| | | 47K | | >-------| 2N3904
| | | .-. .---|-/ |>
| | | 12K| | | |/| |
| | | | | | === |
| | | '-' | GND |
| | | | | |
| | | === | |
| | | GND '----------------o
| | | |
| | | |
| | | .-.
| '----------' 47| |
| | |
| '-'
| |
| ===
GND
(created by AACircuit v1.28.6 beta 04/19/05
www.tech-chat.de)
This circuit works in a very similar manner to the one above. The 47K
and 12K resistors cut the op amp input to about 0-1VDC. The op amp
raises the output voltage as necessary to achieve that 0-1V across the
47 ohm resistor, which is about 0-20mA. Use 1% resistors for better
precision. If you really need precision, you also might want to
choose a single supply op amp with lower offset voltage. The 7mV max
offset will result in a 14mV max error in the 0-10V, and an 0.15mA
error in the current source.
Also, the current source is compliant to about 10V. If that isn't
enough for the instrument or device you're driving, raise the op amp/
transistor power supply voltage accordingly. But in that case, you'll
need a transistor that can handle more power.
Oh, and since the LM358 has two op amps iin one package, you can do
both at the same time.
Cheers
Chris