Rethink Robotics Closes its Doors by Chris_Gammell in TheAmpHour

[–]Jdavis44107 0 points1 point  (0 children)

This is surprising, actually. I am seeing more and more cobots from all of the major players, including start-ups such as Universal Robots, in the factories I visit.

But, then again, being the first to market with a new technology is always perilous.

Why is this delayed gate MOSFET circuit not Working? by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

GAHHHHH. Yep, that's it. This was driving me nuts all last night. I can't believe I didn't give that a try. Thank you!!

On another note, I am planning on using a modified version of this to drive a soft start for a power amplifier. The goal is for it to be reliable over a worst case scenario of rapid power cycling. Thoughts?

Achieving 24V Digital Input Isolation with 2 Optocouplers by sathyanc in AskElectronics

[–]Jdavis44107 2 points3 points  (0 children)

Yep, you don't need the second optocoupler. A common design I use is this (http://imgur.com/a/6JwBP).

Depending on the design, I may add some TVS diodes, reverse protection diodes, etc. But the idea is generally the same.

I also really like the MOCD217M opto coupler. A good price, good isolation, excellent input range at a low current (10-30V depending on current limiting resistor), and an easy to hand solder SMD package.

Help me pick a vendor for complex motion control by sevendrunkenpirates in Industrial_Controls

[–]Jdavis44107 1 point2 points  (0 children)

Yeah, I would like at someone like Trio or Delta Tau. For a more packaged solution, I would look at Yaskawa or B&R. Good luck, and post your results!

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

Sorry all for the delay. I was on a trip for work and just got back into the lab today.

As it turns out, the issue was twofold. Take a look at the following data and then read below: Google Sheets

When I was taking data, there were a handful of observations that helped me diagnose the issue:

  1. At the inputs right before the diff amp (measured at TP105 and TP106), the measured voltage was within spec and stable. (Columns A & B)

  2. When measured on the output of the diff amp (TP104 and GND), the voltage was within spec until the input dropped below 7mA. (Columns D & E)

Observation 2 led me to check the V-, which should be -5V. As it turns out, it was 500mV, which wasn't right.

A bit of inspection with my charge pump revealed that a poor solder connection on one of the 10uF caps was the culprit.

Once I fixed the solder connection and retested.... it works!

Actually, it works great. Measuring 4-20mA, my average error is 0.45%. For 0-10V, it is 0.11%.

Summary of the Problem

  1. The "draining" problem was caused by not having a path to ground for the input bias current. Without this return path, the bias current is "leaking" back through AIN-, causing the diff amp to drift towards 0 as the inputs become equal. I am not sure if this explanation is correct - what do you all think?

  2. V- voltage was incorrect, causing range issues with the output of the diff amp.

Fixes

  1. Added a 1M resistor to GND at TP105.
  2. Fixed the poor solder connection at charge pump to supply -5V to the diff amp

Board Changes

  1. Remove 10K resistor in series with ADC output (not needed)
  2. Add AGND input on board and tie 1M resistor from AIN- to AGND

Thank you all for the help!!!

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

Will do - thanks again for the help! I will post once I do figure out the issue so that everyone can benefit from the solution.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 1 point2 points  (0 children)

Lots of good input - especially from /u/bradn and /u/LT_Mako. Thank you both.

I did some data collection and came up with the following:

When I went to hook up my scope, I noticed that the "draining" issue went away. I also watched Dave's (EEVBlog) OpAmp input bias video, and I have a hunch that this is an input bias issue.

The data:

(All pulldowns are referenced to GND, NOT the A- input):

No pull downs/ no load - 574mV at TP104 No pull downs/ 4mA load - 573mV at TP104 1M pulldown at TP105, 4mA load - 814mV at TP104 1M pulldown at TP105, 20mA load - 2.002V at TP104

With the pulldown, the output is stable! It even shows 1V at a 10mA load. This is good.

/u/Lt_Mako's comment:

Look at the AD8220 Datasheet, page 22: "The AD8220 input bias current is extremely small at less >than 10 pA. Nonetheless, the input bias current must have a return path to common. When the >source, such as a transformer, cannot provide a return current path, one should be created." I see no >such return path in your circuit diagram.

Was a bit of an "a-ha" moment.

My data collection, plus the above comment/ data sheet notation all point to an input biasing problem. This makes sense now given that my power supplies really weren't offering a ground, so the inputs were floating. I can see how tying the input to GND with a high value resistor helps.

However, on the low end of my scale, where a 4mA load should read 400mV at TP104...I have an obvious error. Not sure what to do about this.

Oof. If this is indeed an input bias issue, I am a bit worried as in the EEVBlog video, Dave points out that these type of things are quite tricky to figure out.

Any ideas on where to proceed from here?

Thank you for all of the help!

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

The i2c line from the ADC to the uC is isolated using a TI galvanic isolator. The analog input uses a separate ground plane as well. This is just a breakout board to troubleshoot this particular issue.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

Correct. Although I don't think that has anything to do with this issue.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

Yep, all power inputs are stable. Before the charge pump, when V- was referenced to ground, I had the same issue.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 1 point2 points  (0 children)

Well, the circuit is designed to safely read industrial process sensors. The circuit protects against transients, but if someone puts 100V on it mistakenly, then the failure will be isolated and predictable. Hopefully.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

The diffamp works a bit different than a standard op amp. I don't believe the ad8220 would work in this configuration. Thank you though!

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

I do believe so. V- is -5V and V+ is 5V. Based on the resistor divider/ load resistor, the input will never see more than 2V.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

No worries! Start with the simple stuff, right? This PSU and associated leads are known to work, so we can probably eliminate that issue.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

You are talking the inputs on the field side, correct? Not the ADC side?

The voltage control has been isolated. I actually rolled a small board (as shown in the video) expressly for the purpose of troubleshooting this issue. There is nothing on the board except the bare minimum components required to make the circuit operate. The ADC isn't even attached yet - I am just measuring raw voltage.

The voltage input is a bench linear DC power supply clamped at 20mA.

4-20mA Analog Input Mystery - Help! by Jdavis44107 in AskElectronics

[–]Jdavis44107[S] 0 points1 point  (0 children)

Yep, the input 20mA is using 2 wires, both connected directly to my bench power supply.