Latest from Analog

ID 26637880 © Dejan Lazarevic | Dreamstime.com
radar_dreamstime_l_26637880
ID 29734637 © Kjetil Kolbjornsrud | Dreamstime.com
bladeserver_dreamstime_l_29734637
ID 339690856 © Asliyuce | Dreamstime.com
opamp_dreamstime_l_339690856web
Dreamstime_Brooke-Becker_14980958 and University of Nebraska–Lincoln
dreamstime_brookebecker_14980958
Dreamstime_Yulia_Ryabokon_294380101
dreamstime_yulia_ryabokon_294380101
ID 267663329 © Chabkc | Dreamstime.com
batterymonitor_dreamstime_xl_267663329
Www Electronicdesign Com Sites Electronicdesign com Files Ifd2660 Fig1

Microcontroller Efficiently Converts Sensor Voltage to Current (.PDF Download)

Oct. 18, 2017
Microcontroller Efficiently Converts Sensor Voltage to Current (.PDF Download)

When taking measurements from analog sensors located at long distances, voltage drops and noise can affect precision of the readings. Therefore, a voltage-to-current (V/I) module is needed to transmit a current in order to obtain accurate readings. The reason is well-known: According to Kirchhoff’s current law (KCL), the sum of currents entering a node must be equal to the current leaving that node; thus, the sensor’s cable length is irrelevant when transmitting current and further, the low impedance of a current loop minimizes noise pickup in contrast to a voltage signal.

1. This circuit, based on a PIC microcontroller with a few added components, converts a sensor-based voltage into a 4- to 20-mA current loop. Shown is the circuit as originally drawn on a whiteboard.

The circuit in Figure 1 will deliver an output current from 4 to 20 mA for an input voltage (Vin) from 0 to 5 V.  PNP transistor Q1 (2N2907) is configured as a constant-current source;  its emitter current and resistor value (Re) are defined by the equation:

where Vcc = 5 V, and Vbe = 0.7 V.