Current measuring using LT6106 - Page 1
Forum section: electronics / projects

author: Sudo_apt-get_install_yum
author_rank: Regular Contributor
timestamp: March 23, 2018, 09:25:05 am
content: Hi! I’m new to this forum!So I’m working on a project were I’m interfacing with a few sensors that use "4-20mA" and Modbus to transmit data. I’m using the LT6106 to convert and amplify the 4-20mA signal from the current loop so that an AVR can read it with the ADC. I’m using the ATXMega128-B1. Yes I know I’m an AVR guy, screw PICI’ve got the Modbus part working but I can’t seem to get the 4-20mA readings right.The output from the LT6106 is nothing like it should be, I bogged a trim pot to adjust Rin and Rout, but nothing drastic happened.I’ve also tried this in LTSpice and it shows a nice square wave on the output.I would appreciate any feedback on this, I’m pulling my hair out because I can’t figure out what’s going on...Il post schematic and a waveform from my scope.

author: Jay_Diddy_B
author_rank: Super Contributor
timestamp: March 23, 2018, 12:29:52 pm
content: Hi Sudo...,Welcome to the forum !!Let me see if I can help.First you have significant differences in resistor values between the real schematic and the LTspice schematic:With reference to the real schematic, the current you are measuring flows through R1. With a 0.01resistor you will get 10uV of voltage for each mA of current. So in your application, 4-20mA, between 40uV and 200uV.The LT6106 has a maximum offset specification of 250uV. The signal you are measuring is very small compared to the offset. This is not good, and will introduce large measurement errors.This small signal is then amplified by the gain R3/R2In the real schematic the gain is 5k/100 = 50In the LTspice simulation the gain is 10K/10 = 1000A big difference.ModificationsFirst you should get your signal bigger. You do this by increasing the value of R1.1will give you a signal of 4mV to 20mVAnd if you set the gain to 50, R3= 5k and R2 = 100, then the output signal will be 200mV to 1V for 4-20mA input.If you need more accuracy, look at the zero-drift, LTC6102.Regards,Jay_Diddy_B

author: Sudo_apt-get_install_yum
author_rank: Regular Contributor
timestamp: March 23, 2018, 01:27:19 pm
content: Thanks for the suggestions I changed the PCB values to the ones I used in LTSpice and it drastically changed thing (for the better).The signal amplitude changes quite slowly but at least it changes. The "square wave" output from the LT6106 is very noisy and unstable so I tried using filter caps on the output but it didn’t do much but make the amplitude change much slower. Capacitor values I’ve tried 10nF-1µFReason why I can’t change R1 is because I don’t want to disrupt the signal since there might be things hooked up to the loop later on. Correct me if I’m wrong!Is there anything you could do to get a clearer signal and retain a faster amplitude change or is the best I can get?I’ve attached two pictures of the scope signal one at 4mA and one at 20mA.

author: mikerj
author_rank: Super Contributor
timestamp: March 23, 2018, 01:39:09 pm
content: Quote from: Sudo_apt-get_install_yum on March 23, 2018, 01:27:19 pm1 Ohm resistor will only drop 20mV at full scale, if you can't budget for that in a 4-20mA loop then you have bigger problems to fix! 0.01 Ohms is simply too low to ever work well with the 6106 as Jay explained.

author: Sudo_apt-get_install_yum
author_rank: Regular Contributor
timestamp: March 26, 2018, 12:10:59 pm
content: Ok thanks for the help, I’m not too familiar to the "4-20mA" standard so I choose an incredibly small value to not disrupt any other device connected to the loop!

author: glarsson
author_rank: Frequent Contributor
timestamp: March 26, 2018, 12:18:16 pm
content: The idea behind 4-20mA current loop standard us to handle long wires and voltage drops. As long as the driving voltage is high enough to drive 20mA it should work. BTW, some current loop devices even steal enough voltage drop to power themselves.

author: Sudo_apt-get_install_yum
author_rank: Regular Contributor
timestamp: March 26, 2018, 12:33:51 pm
content: I was actually thinking of making this project loop powered in the future or at least a loop powered meter of some sort. Could get the MCU to a few hundred µA during run time and a few µA during Power Down mode. I’m not really sure how ill display the data since Segment displays (LCD and LED) draw a few mA when running. But this is a problem for my future self.

author: glarsson
author_rank: Frequent Contributor
timestamp: March 26, 2018, 12:42:51 pm
content: It should work as long as you don't draw so much current that the loop current enters the active range at 4mA.

author: Sudo_apt-get_install_yum
author_rank: Regular Contributor
timestamp: March 27, 2018, 08:40:24 am
content: I know I’m getting a bit off topic but any chance you can recommend some way to display the data; a few characters are fine as long as you can see number up to 999 or so.7-Segment LED's are nice because of the contrast/easy to read and the same goes with segment LCD's.Problem I have is that I’m not really finding displays that draw little current <1-4mA (Lower is better), I could always PWM the displays to get a dimmer effect but I’m not really sure if it’s the best way. Or if I could use the WDT and go to sleep every 8ms wake up and display the data and go back to sleep for another 8ms or longer intervals but not enough to see the pulsing. Sort of pulsing the MCU in and out of sleep, not really sure if it’s a good solution for power control, never done it before, just used the WDT to get in and out of sleep.But this is just in the idea stage so it’s more of a problem in the future!

author: jbb
author_rank: Super Contributor
timestamp: March 28, 2018, 08:17:39 am
content: A modern micro (MSP430, EM32, probably some STM32 and NXP parts) with a built in LCD segment driver could work on much less than 1mA.Texas Instruments (and presumably others) have some app notes about 4-20mA transmitters.I would suggest you shoot for 2mA max consumption so that you can send an out-of range signal (some industrial systems can flag this as an error) and/or you’ve got some headroom for surprises.Also note that flash memory erases and writes can suck down quite a bit of current.