element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Documents Programmable Electronic Load - Analyse the Summing Node Zero Point
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 1 Dec 2017 4:08 PM Date Created
  • Last Updated Last Updated: 15 May 2020 3:38 PM
  • Views 10272 views
  • Likes 8 likes
  • Comments 107 comments
Related
Recommended

Programmable Electronic Load - Analyse the Summing Node Zero Point

This blog documents investigates the feedback node of the electronic load that Robert Peter Oakes, jc2048 and Jan Cumps are designing.

It's an important spot in the load's design. It measures the set point and the feedback from the output.

When the output is driven to 0, it should be on a potential as close as possible to 0 V.

On the first prototype it's -0.2 V. Not so much off, but the negative value  influences our ADC measurements.

This document checks how we can get this node to 0 V.

image

 

Because this document is evolving, some comments below may be out of sync with the content. That's because the content is adapted based on the conversation.

The measurements taken here are based on the original design, without R32 in place and U3B + tied to ground.

The current sense side of R7 is connected to ground, and a variable negative voltage from 0 V down is applied to the current sense side of R8 to simulate current being sensed.

 

The circuit isn't complex. The set point is driven by a DAC. It's set to 0 for this test.

The second input to this node is OpAmp 3C. It has both inputs tied to ground so should theoretically have 0 V at the output.

On my board I measure a potential of -0.212V at the left side of R33.

I hope to get this closer to 0 V to ease the ADC a bit - its performance degrades with negative voltage at its inputs.

Like the other blogs for the electronic load, this is a working document that will be updated with findings from anyone who wants to chime in.

 

Behaviour at 0V

 

buzy image

  • metrology
  • differentiator
  • boosterpack
  • opamp
  • msp432
  • launchpad
  • analog
  • laboratory
  • instrument
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • jc2048
    jc2048 over 8 years ago in reply to Robert Peter Oakes +4
    As you say, changing the op-amp is one possibility. There are bipolar op-amps with much lower bias currents, but an alternative nowadays is a precision CMOS op-amp (you'd have to check whether other characteristics…
  • Robert Peter Oakes
    Robert Peter Oakes over 8 years ago +3
    To hopefully simplify things a little We have this, Upper op amp is simply to provide an inversion of the measured value back tot he ADC, hence the gain of -1 Lower right op amp measures the volts across…
  • jc2048
    jc2048 over 8 years ago in reply to Jan Cumps +3
    Love the advertisement for "John's excellent probes". It's like one those things from the old days of American TV where the presenter would suddenly turn, look very earnestly at the camera, and start reading…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to jc2048

    jc2048  wrote:

     

    ... The dip at 1.2V is a concern ...

    I suspect that to be an operator error. I have to repeat all measures, in the same order, with properly probing, to be sure.

    I don't see an obvious reason why opamps behave different at that particular value. Chances are fair that it's me ...

    (or the ADC, because the measured values in the previous graph don't show the dip, only the ADC's volts value - I'm not satisfied yet with the stability of the ADC samples, they fluctuate somewhat per request...)

     

    I haven't looked at the integrator's behaviour yet.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps

    Taking only the 0 V offset in account, this is what I get when running the instrument at 0 A and 2 A:

     

    0 A (Vsense == 0.000 V):

    image

     

    2 A (Vsense == 0.100V):

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 8 years ago in reply to Jan Cumps

    It might be easier to see what it's doing if you plot the difference between the expected and the measured. The dip at 1.2V is a concern - the rest looks like a positive offset of four or five millivolts, but there it reverses for some reason.

     

    After this you're going to have to consider what you do with the bias currents of the integrator op-amp.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps

    It gets very close if I compensate for the DC offset of the two opamps at 0 V input!

     

    theory U3B outcompensated ADC measure0-0,0001880,1560,16143750,3120,3181870,4680,4584380,6240,6279370,780,784312

     

    The blue line is uncompensated ADC

    The dark purple one the expected (theoretical) value at ADC

    The orange one the compensated ADC.

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps

    ... it seems that each opamp introduces a 0.1 V offset. If that's the case, compensation should be doable. At least everything behaves linear image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago

    Some measurements (without any bodging, using the original schema.

     

    I simulated the voltage over the sense resistor with a power supply. The input voltage is measured close to opamp 3C inputs - any setup resistance is compensated for.

    In theory,

    • UC3 out should be input * 7.8
    • U3B out should be that value * -1
    • ADC B should be the same (and is image ) as U3B out

     

     

    *-7,8*-1opamp 3Copamp 3BADC BADC BADC Btheory ampsinputU3C outU3B outvoltrawabs000,109-0,213-0,213188-1136643990,4-0,02-0,05-0,051-0,0515625-276652470,8-0,04-0,210,1040,1051875455701,2-0,06-0,3580,2520,245438139213991,6-0,08-0,5210,4180,414937221622162-0,1-0,6780,5710,57131230463044

     

    The ADC is behaving good. it closely reflects the actual voltage represented at its input.

    The two opamps, both using non-precision resistors to set the gain, need compensation.

     

    I've graphed it. For ease of understanding, I've inverted the negative Y values so that a trend can be seen.

    • The X axis is the theoretical current as measured by a 0R50 resistor.
    • The red line is the voltage over the sense resistor (simulated by a power supply, measured close to opamp 3C input), inverted
    • The green line is the output of opamp U3C inverted,  it should reflect the X axis * -7.8 gain. It has a negative offset.
    • The light purple line is the output of U3B. It's -3C multied by -1 (this one is off - it should be spot on - it has an offset).
    • The light blue line is the output of U3B sampled by the ADC. I consider that "good enough" for the moment. Very close
    • The dark purple line is what we should get at the ADC, if opamp and resistors were optimal.

    image

    Thoughts on compensation?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps

    I've been studying up on the KiCAD schema editor some more, and was able to move the power part of the driver board to another sheet.

    This gives some more space to draw the opamps and I've restructured the diagram a little.

    It gives this view for the control loop and control feedback (edited picture to remove other components):

     

    image

     

    I haven't added the option to replace the U3B + direct to ground with a resistor (50K, 2 parallel 100K resistors) to balance inputs.

    Let's see how your boards behave with or without these before adding them.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago

    I'm continuing this exercise, to see what software calibrations are necessary.

    At first glance, it looks like we have to at least compensate for these:

    • the ADC has an offset when we push 0V to its input.
    • to check what voltage appears on the output of U3B when there's a 0V drop over the sense resistor
    • to check the real gain - theoretically it's * 7.8

     

    Then check which of these are constant over the input range, which ones change depending on the voltage over the sense resistor.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 8 years ago in reply to Jan Cumps

    The bad connections is or should be a one time issue during build, it should not occur after that

     

     

     

    The issue comes up once the built in protection diodes start to conduct, aka about 250mV ish

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to jc2048

    jc2048  wrote:

     

    Does it still affect the other ADC channels (going negative by only 5mV) or is it going to be usable in normal operating conditions?

     

    ...

    The ADC seems to behave well up to at least -250 mV, and has errors on all channels when one input is below -700 mV. I haven't checked the in-between yet to find the tipping point - and haven't investigated the datasheet for this condition.

     

    jc2048  wrote:

     

    ...

     

    You've still got the problem with abnormal conditions - ie if someone connects the load output the wrong way round. Perhaps the way to deal with that would be to make it a 'perfect diode' circuit, though that wouldn't give you any warning that the output was connected wrongly.

     

    ...

    Yes, I will have to test what situations can cause negative values on ADCs in normal conditions too.

     

    jc2048  wrote:

     

    ...

     

     

    5mV error is a bit better than 200mV, so it's a definite improvement (worth having for two extra resistors). But it's only 40 times better and substituting an op-amp with bias currents maybe a thousand times less would give much more benefit.

     

    If you take a look at the datasheet above, you'll see that the voltage offset error is typ 0.5mV and may be more. Amplified by the 6.8 gain of the differential amplifier, that gives the potential for several millivolts of error at the ADC input. Saying it another way, the reduced bias current error is now around the same level as the voltage offset errors, which means, if you want to go further and try and make it even more precise, you're trying to work with (and disentangle) two error sources rather than just the one.

    An exercise for the future or for someone who wants to improve the design - and certainly an interesting one.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube