TransWikia.com

How do I connect a 0-10V analog input to MCU with high input impedance?

Electrical Engineering Asked by Masoud on March 3, 2021

I’m trying to connect a 0-10V analog input value to my MCU which is running on 3.3V. I used the below circuit but when the input is floating I read about 0.3V on the analog input. I need to eliminate the bias current from the analog input.

schematic

simulate this circuit – Schematic created using CircuitLab

Can anyone give me a hint what is the best practice to connect a 0-10V signal to an MCU?

2 Answers

schematic

simulate this circuit – Schematic created using CircuitLab

The way I do this is by taking the voltage you want to measure with the ADC, and voltage divide it down so that the maximum voltage is slightly less than your MCU supply voltage which in this case is 3.3v. In this case it works out to be around 3.2v if the signal is the maximum 10v. Then you run it though the voltage follower to the MCU. D1 and D2 are optional and protect the MCU pin if the voltage on the output of the opamp were to rise above or below the power rails. R3 is also optional and is used as current limiting resistor. When combined with the internal sampling capacitor of the ADC, it also creates a small RC filter. Just make sure not to increase resistance for R3 too high, or you will defeat the purpose of the voltage follower.

Answered by bunker89320 on March 3, 2021

THe LM358 has an input impedance ~ 10M and output impedance ~ 1k @ 1V/1mA and 100mV /50uA ~2k so it is does not reach negative rail to 0V. But perhaps close enough if your load is < 50uA or >> 2k. That is due to saturation of BJT’s.

Consider matching input R to V+,V- to null input bias current induced Vio with ~1M on each input.

Consider output current with voltage divider R’s with <1V = Vout. Raise the output R’s to reduce Iout. The clamp current from MCU diodes will limit the output voltage without a need for a Zener to << 1mA.

This ought to reduce open cct Vio and Vout .

A better solution might be to use a RRIO CMOS OpAmp with 10M on each input.

Answered by Tony Stewart Sunnyskyguy EE75 on March 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP