element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Blog Programmable Electronic Load - Current Sense Circuit
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 16 May 2020 10:29 AM Date Created
  • Views 5730 views
  • Likes 9 likes
  • Comments 32 comments
  • shunt circuit
  • programmable electronic load
  • electronic load
  • programmable
Related
Recommended

Programmable Electronic Load - Current Sense Circuit

Jan Cumps
Jan Cumps
16 May 2020

Detailed review of the current shunt circuit of the Programmable Electronic Load.

image

The circuit and measurements are discussed here.

 

Circuit

 

The current measurement circuit reads the voltage over a 50 mΩ shunt resistor that's in series with the load circuit.

 

image

That voltage (always negative, because the resistor is "below" the circuit's analog ground) is amplified by a non-inverting OpAmp circuit, with gain 7.8.

 

Test Setup

 

A DMM measures the voltage of the shunt and the output of the OpAmp. Both relative to that analog ground.

image

The measurement is automated.

At every iteration, the shunt voltage and the output of the OpAmp are logged.

A relay switches the DMM probe between the two measurement points.

image

Automated flow detail: switch DMM probe, then take a sample.

 

I've also added a gain calculation.

imageimage

Gain is calculated as the ratio between output and input. Then logged.

 

Measurement Results

 

All data is written to the attached spreadsheet.

The extract below shows 101 measurements.

The DAC that controls the eLoad is set to 0.

A first measurement of current (I take that from the PSU), shunt and OpAmp output voltage are written.

Then, the DAC is 100 times increased, each time with 100. ANd the measurements are repeated.

The attached version (9.xlsx) has more measurements (All eLoad ADCs, and some more stats from the PSU).

 

image

101 samples. PSU = 5 V, DAC initial = 0, steps 100, step 100

 

 

Here's a graph of the output vs input. The line represents the gain.

image

And a graph of the OpAmps gain, with as axis the shunt voltage.

image

Attachments:
eload_dp832a_shunt_circuit_characterisation_9.xlsxeload_dp832a_shunt_circuit_characterisation_9.xlsx
eload_dp832a_shunt_circuit_characterisation_18.zip
eload_dp832a_shunt_circuit_characterisation_19.zip
eload_dp832a_dmm6500_current_2 - workingcopy.zip
  • Sign in to reply

Top Comments

  • Andrew J
    Andrew J over 5 years ago +3
    Interesting. Is this using your compensation approach for the DAC? I presume that the current is being logged by Labview from the Rigol PSU rather than being measured? I think you can do a lot with this…
  • jc2048
    jc2048 over 5 years ago +3
    This is your gain curve but with the vertical axis scaled so we can see what it's doing in more detail. With the exception of a few very odd measurements [settling time? noise?] it has a clearly defined…
  • Jan Cumps
    Jan Cumps over 5 years ago +3
    I've placed the resistor R32 back: As you can see, the board has gone through heavy storms by now. Input: (chart Y axis in µV) Output: (chart Y axis in mV) For those who get stress when seeing a bouncy…
Parents
  • Jan Cumps
    Jan Cumps over 5 years ago

    Advise from Analog Devices on dealing with non-inverting opamp circuit offset.

    https://www.analog.com/media/en/training-seminars/tutorials/MT-037.pdf

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Andrew J
    Andrew J over 5 years ago in reply to Jan Cumps

    Will you give this a go?  I read about the thermal differences between metals somewhere else early this week and thought that it was losing game!  I guess re-calibration of instruments involves things like measuring and tweaking those potentiometers.  Interesting paper.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to Andrew J

    Yes. I'm going to try and trim away the offset, then run the characterisation process again.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to Andrew J

    Andrew J  wrote:

     

    Will you give this a go?  I read about the thermal differences between metals somewhere else early this week and thought that it was losing game!  I guess re-calibration of instruments involves things like measuring and tweaking those potentiometers.  Interesting paper.

    image

    I've glued a  multi-turn trimmer to the underside.

    One side will be connected to -5, the other to +12.

    I'll use some MΩ sized resistor between wiper and OpAmp node...

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to Andrew J

    Andrew J  wrote:

     

    Will you give this a go?  I read about the thermal differences between metals somewhere else early this week and thought that it was losing game!  I guess re-calibration of instruments involves things like measuring and tweaking those potentiometers.  Interesting paper.

    image

    I've glued a  multi-turn trimmer to the underside.

    One side will be connected to -5, the other to +12.

    I'll use some MΩ sized resistor between wiper and OpAmp node...

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • Andrew J
    Andrew J over 5 years ago in reply to Jan Cumps

    I‘m finalising a prototype schematic at the moment so I’ll be interested to see how this pans out; I can provide spacing to add something similar in before I get the PCB made.  Did you do the maths or are you just going for it?!

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

    I used what I have here. I don't run a big stock.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to Andrew J

    The components are mounted. All yellow wires are circuit additions after the initial design. The thicker grey one is a measurement breakout wire.

    image

    I've placed it in such a way that the trimmer is accessible when the PCB is stacked.

     

    Tuned the trimmer so that I start off with 0 V , then soldered the OpAmp inverted in circuit...

    image

    Next step is to get the preciser DMM out again, trim the offset away, then run the automated tests ....

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 5 years ago in reply to Andrew J

    This won't necessarily help Jan much, but it might help you Andrew, or at least give you even more to think about. It's all documented elsewhere, but it's getting so hard to wade through it all I'll repeat it here.

     

    I used a different op amp to Jan. We were constrained in choice because Peter's initial choice for the circuit had an unusual [wide] footprint, but we wanted to replace it with one with better specs. Jan chose one with FET input transistors (very low current bias, fairly quiet, voltage offset not too good). I would have tried the same, but when I came to buy it couldn't get one so selected a part with bipolar transistors [LT1125] on the input instead (higher bias currents, better offset voltage spec, fairly low noise).

     

    I got around the poorer bias currents by using a differential amplifier configuration [ie I used the additional resistor placement Jan put on the board] to balance the load on each input better, and by dropping the feedback resistor values considerably [6k8 and 1k]. Reducing the feedback resistors means higher currents in the feedback resistors which reduces the contribution from the amplifier bias currents. I could afford to do that because the shunt is only 50mR. [Peter was concerned about circuit protection, and I'm compromising that, so don't necessarily copy what I've done without thinking of the other aspects of it.]

     

    I must have been lucky with which way the voltage offset went [I'm struggling to remember now], if there was even much offset at all [datasheet says 100uV max, but you'd be very unlucky to get one at the extreme of the bell curve]. I didn't trim the shunt amplifier, instead I trimmed the integrator op amp to take out the small overall offset round the current-control loop [the integrator amp has an offset too, so adjusting the current sense amplifier to read right won't be enough to get rid of the overall loop offset].

     

    This was my offset trim. [BTW I wouldn't particularly recommend the Suntan presets. They're cheap, but there's a lot of slop in the lead screw mechanism. Very frustrating if you're trying to adjust something.]

     

     

    image

     

    image

     

    image

     

    On a slightly different tack, that picture has reminded me that I put 20M across the integrator capacitor. That's to limit the gain at low frequency. I had a problem that the flicker noise from the op amp input transistors was taking the integrator on a random walk at very low load currents [below a milliamp or two]. The resistors don't entirly get rid of the effect, but do help to reduce it. That might be less of an issue for Jan with his FET input transistors. If you don't do a true PID scheme, with a pure integrator, you might not see it anyway.

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

    jc2048  wrote:

     

    ..... I didn't trim the shunt amplifier, instead I trimmed the integrator op amp to take out the small overall offset round the current-control loop [the integrator amp has an offset too, so adjusting the current sense amplifier to read right won't be enough to get rid of the overall loop offset]...

     

     

    I compensate both at the moment - the current sense one with the trimpot just added here, the integrator by injecting DAC2 output.

    • Cancel
    • Vote Up +2 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 © 2025 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