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
Experimenting with Current Sense Amplifiers
  • Challenges & Projects
  • Design Challenges
  • Experimenting with Current Sense Amplifiers
  • More
  • Cancel
Experimenting with Current Sense Amplifiers
Challenge Blog Blog #3: High-side, Low-side and Low current sensing
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: taifur
  • Date Created: 23 May 2022 3:06 PM Date Created
  • Views 5444 views
  • Likes 5 likes
  • Comments 2 comments
  • Current 6 Click
  • raspberry pi
  • Pï 3 Click Shield
  • MAX40080
  • Experimenting with Current Sense Amplifiers
Related
Recommended

Blog #3: High-side, Low-side and Low current sensing

taifur
taifur
23 May 2022
Blog #3: High-side, Low-side and Low current sensing

High-side & Low-side Sensing

There are two locations in a circuit the current shunt is commonly placed for current measurements. The first location is between the power supply and the load. This measurement method is referred to as high-side sensing. The second location is between the load and the ground. This method for sensing current is referred to as low-side current sensing. The figure below illustrates the two locations of current sensing in a circuit. 

image

There are advantages and disadvantages of doing either measurement. One of the advantages of low-side current measurement is the common-mode voltage at the measurement inputs for the current sense amplifier is near zero. This makes it easier to design application circuits or select devices for this measurement. Since the voltages seen by the current sensing circuit are near the ground, this is the preferred method for measuring current when dealing with very high voltages, or in applications where the supply voltage may be prone to spikes or surges. The immunity to high voltage spikes and ability to measure currents in high-voltage systems make low-side current measurement popular in many automotive, industrial, and telecommunication applications. The measure disadvantage of low-side current measurement is that the voltage drop across the sense resistor appears as a difference between the supply ground and the load/system ground. This can be an issue if other circuits are referenced to the supply ground. To minimize this issue, reference all circuits that have interaction to the same ground. Reducing the value of the current sense resistor helps minimize any ground shifts. 

High-side current measurements have two key advantages over low-side measurements. First, it's easy to detect a short circuit originating from within the load to ground because the resulting short circuit current will flow through the current shunt resistor, developing a voltage across it. Second, this measurement technique is not ground referenced so differential ground voltages developed by high currents flowing through the ground plane will not affect the measurement. However, it's still a good idea to carefully place the sensing ground reference connection close to the amplifier's ground. The main disadvantage of high side current sensing is, that it requires the current sense amplifier have high common-mode rejection because the small voltage developed across the current sense resistor rides just below the load supply voltage. 

In this blog, I will measure the current on both sides and compare the result and show whether the sensing value changes for changing the side or is there any effect of the sensing side on measurement accuracy.  

First I will measure the high side current through a 33ohm resistor. The resistor is powered from a 12 V power supply. Following image shows the circuit connection. According to ohm law the current through the resistor is 12/33 =  363mA. Let measure the current using the current 6 click.

image

For the current measurement, I used MAX40080 Python Library by misaz and the details are available here. I wrote the code for reading 250 samples and plotting a graph using the measured samples. 

This is the python code:

from max40080 import MAX40080
import matplotlib.pyplot as plt
import time

max = MAX40080()
max.configure(sample_rate_khz=15, digital_filter=1, measure_current=True, measure_voltage=False)

def read_plot_current():
    measurements = []
    for i in range(250):
        value = max.read_current() * 1000
        measurements.append(value)
        time.sleep(0.001)
    print("Average(high-side, 250 samples):", (sum(measurements) / len(measurements)), " mA")
    plt.plot(measurements)
    plt.title('Low-side current sensing')
    plt.show()

read_plot_current()

After running the code the following graph was generated for high side setup.

image

The average current for 1000 samples was 335.914mA which is closed to the calculated value. 

image

After measuring the high side current I changed the circuit as follows for low side sensing. The voltage was the same as the previous setup.

image

I got the following result which is very close to the previous result. It seems the value does not change for high side or low side measurements which is very logical. 

image

The average current for 1000 samples was 333.16 which is around 2 mA different from the previous measurement. 

image

To remove the confusion from my mind I recalculate the average current for 5000 samples on the high and low side again. Again I noticed that for low side sensing average current is slightly lower. I have no explanation for this at this time! 

image

Low current sensing

After measuring the current on the high side and low side I tried to measure the current consumption of an ESP8266-01 module. I did the experiment in different situations. First I tried to measure the current-sinking by ESP8266-01 only for powering an LED. WiFi was disabled and esp was powered from 3.3V supply. This is the circuit connection:

image 

When GPIO 2 LED was on I got the following graph. The average current was around 29mA. 

image

Then I program the ESP8266-01 to blink an LED every 100mS and I got the following graph. The graph is very logical and it is clear that when LED is ON the current is around 20mA higher. 

image

Then I tried to measure the current when esp is connecting to the wifi. The following graph was generated. 

image

Finally, I tried to measure the deep sleep current for ESP8266-01 which is around 20 uA. But the measurement result made me frustrated. It shows a negative measurement for deep sleep. 

image

In the misaz library, the input range was set to 50mV and this is not configurable. So, I manually configure the input range to 10mV but no such improvement was observed. The result follows when the input range is 10mV. 

image

So, the 10mohm shunt resistor is not enough for very low current measurement when the current value is less than mA. It can be tested with a higher shunt. 

  • Sign in to reply
Parents
  • michaelkellett
    michaelkellett over 3 years ago

    From your test results the difference between the measured current for  high side and low side sensing is about 0.7mA which corresponds to a voltage across the 10mR sense resitor of 7uV.

    The change in common mode voltage is 10V.

    So the chip is giving a common mode rejection of 7uV/12V - 20 * log10(7e-6/12) = 124.7dB.

    The worst case spec for the chip is 123dB so it is possible that ALL the error comes from common mode rejection.

    But also bear in mind that 0.7mA change in current is equivalent to a change of 33 * 0.7/335 = 0.07 ohms in the load - are you sure that the plugged wire connections on the breadboard are that good ?

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • michaelkellett
    michaelkellett over 3 years ago

    From your test results the difference between the measured current for  high side and low side sensing is about 0.7mA which corresponds to a voltage across the 10mR sense resitor of 7uV.

    The change in common mode voltage is 10V.

    So the chip is giving a common mode rejection of 7uV/12V - 20 * log10(7e-6/12) = 124.7dB.

    The worst case spec for the chip is 123dB so it is possible that ALL the error comes from common mode rejection.

    But also bear in mind that 0.7mA change in current is equivalent to a change of 33 * 0.7/335 = 0.07 ohms in the load - are you sure that the plugged wire connections on the breadboard are that good ?

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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