# Current measurement
Energy-consumption monitoring is more important due to the trend toward smaller-sized electronic systems with increased functionality. Picking the correct method to monitor current for a given application is important in optimizing system performance.
# Measurement principle
There are various techniques for current measurement, which can be broadly classified into direct and indirect methods. The direct method makes use of Ohm's law where as indirect method is based on Maxwell's equations. Most popular current measurement techniques are discussed below.
# 1. Shunt resistor
A shunt is a low value resistor (
In order to minimize the power loss and heat dissipation in the circuit, shunts must have very low value of resistance (in the range of milli ohms). But this comes with the downside of low voltage drop across the shunt. Hence, according to the requirement, care must be taken in choosing the appropriate value of resistance for the shunt.
To overcome the issue of low voltage drop across the shunt, a voltage amplifier (current sense amplifier) can be used to increase this small voltage drop to an appropriate range. This voltage amplifier is used in differential configuration in order to measure the voltage difference between its two terminals as shown in Fig. 2. The gain depends on the resistors
In the above circuit, the resistor pairs
The circuit shown in Fig. 2 can measure only uni-directional current. In order to measure bi-directional current of same magnitude, the resistor
# 2. Hall effect sensor
Hall effect current measurement is a non-contact method based on the principle that for a given current flow, a proportional magnetic field is produced around the current-carrying conductor. In a Hall sensor (opens new window), the current carrying conductor passes through a magnetically permeable core. The Hall effect device is mounted perpendicular to the magnetic field generated by current-carrying conductor. This produces a potential difference (voltage) that can be measured.
When a hall sensor (component with X mark) like ACS712 (opens new window) is connected to the branch carrying the current of interest, due to the above principle, a voltage difference is generated at the two output terminals of the sensor. The generated voltage potential is linearly proportional to the current passing through the hall sensor. Depending on the requirement, if the generated voltage potential is found to be small, an amplifier of appropriate gain can be used to increase the magnitude as shown in the Fig. 4. This method provides isolation from the main circuit unlike shunt based method. In addition to that, it also decreases the heat dissipation. Since sensitive components are used, implementation of hall sensor based current measurement is more expensive than the former method.
# 3. Inductive sensor
The inductive sensor (opens new window) consists of a wire-wound core through which current carrying conductor passess. AC current flowing through this conductor constantly changes potential from positive to negative and back again. This results in expanding and collapsing magnetic field which induces voltage in the windings. Further inductive sensor converts this induced voltage into proportional voltage which will be given as output. Hence, in this case, voltage is the measure of change in magnetic field strength and not direct measure of magnetic field as in the case of Hall effect sensor. That's why inductive sensors are only suitable for measuring AC currents over other methods. Like Hall sensor, this also provides excellent isolation from the main circuit and has the advantage of very low noise when compared with the former.
The different methods of current measurement are compared in the table below. Although on a quick look shunt based method looks more promising and efficient than other methods, it is generally preferable for small and medium voltages or currents considering the power-dissipation problem. But due to its very good linearity, it is also used in high current systems, depending on the application. For applications which involve high voltage or current ratings or need good isolation from the main circuit, Hall sensor or inductive sensor methods are usually preferred. Also, when AC current is involved, inductive sensor is often a good choice. Hence suitable method must be chosen according to the requirement of the system.
|Parameter||Shunt resistor||Hall sensor||Inductive sensor|
# Positioning of sensor
In the shunt based current measurement technique as used in many DC energy system, the position of the shunt can be of importance depending on the application. Based on it's position, it can be classified into low-side and high-side current measurement technique. Although both of these configurations work almost in a same manner, each have their own merits and demerits.
# 1. Low-side current measurement.
In this configuration, the shunt is placed between the load and the ground as shown in Fig. 5.
The common mode voltage for the amplifier is referenced to ground and hence any cheap and readily available voltage amplifier can be used. But this configuration also has a major disadvantage of ground loop issues. Since the shunt is connected between load and ground, the load may not be at exact same ground potential as the rest of the circuit. Another major disadvantage of the low-side configuration is the ground loop problem which might result is measurement errors in the case of automobile applications. But this problem is usually not encountered in applications like DC energy systems.
An amplifier can be connected in either single ended or differential configuration. Single ended configuration is shown in Fig. 6a and requires least components and is very simple. But in designs having low value sense resistors or high ground current, it suffers from low accuracy issues. Differential configuration as shown in Fig. 6b make use of classic differential amplifier that senses the voltage drop directly across the shunt and hence provides better accuracy than the former.
# 2. High-side current measurement.
In this configuration, the shunt is placed between the supply voltage and the load as shown in Fig. 7. This helps to eliminate ground disturbances which was a hurdle in low-side measurement technique and also helps in detecting accidental shorts to system ground. In spite of having this advantage, it suffers from the problem of high common mode voltage. Hence the amplifier used to amplify the small voltage drop across the shunt needs to have specification such that it can tolerate high common-mode voltage (close to supply voltage). This poses a problem in selection of suitable amplifiers. Hence, depending on the application, suitable configuration - either low-side or high-side current measurement technique has to be selected.
When higher supply voltages (>15V) are used, the circuit needs to be modified such that low voltage can be measured across the output, so that it can be integrated with other intermediate circuits or microcontroller. The modification depends mainly on the required output voltage range. An example of such circuit is shown below in the Fig. 8 where the output voltage has to be within 5V.
The differential amplifier is further connected to a NPN common collector amplifier to translate the measured voltage into corresponding current of required range. Further a PNP current mirror is used to branch this current into output branch. The mirrored current and chosen resistor at the output branch determines the output voltage range. Design steps for such circuit is given as below
- Calculate the value of current
- Calculate the voltage at the node
(emitter of )
- Determine the required value of resistor at output branch (
) and current ( ) such that approriate range of voltage is obtained at the output.
- Calculate the value of current
- Determine the value of resistor (
) required at the emitter of to produce
- Choose the value of resistors
and to mirror the current into the output branch. i.e, =
# Dedicated ICs
The circuit for current measurement can be designed using individual discrete components according to the specific requirements, which provides great flexibility.
When the current sense amplifier has external gain setting resistors, problems like resistor matching and temperature dependency comes into picture. Dedicated ICs like INA210 (opens new window), integrate the external gain setting resistors and overcome the above issue, thereby providing better accuracy.
Choosing a suitable shunt resistor always comes with the trade-off between measurement accuracy and power dissipation. Choosing shunt with high resistance, increases the voltage developed across them. This increases the accuracy of measurement dramatically but also results in high power dissipation. Whereas, choosing a low value shunt will help reduce the problem of power dissipation, but leads to less accuracy. Apart from deciding the value of shunt resistor, the next challenge is a proper PCB layout for the shunt. Ignoring this often leads to error in measurement results. To overcome the challenge, dedicated ICs like INA250 (opens new window) can be used which integrate the shunt resistor into the IC and allow for an optimized PCB layout to achieve accurate measurement results.
Selection of suitable ADC is also important to obtain accurate measurements. The smallest possible voltage that can be measured by an ADC depends on its input voltage range and resolution. For example, an ADC with full scale input range(
There exist many ADCs designed specifically for bi-directional current measurement which have higher resolution and low voltage input range. This not only eliminates the need of amplifying the voltage drop across shunt, but also can measure really low voltages.
# Signal filtering
In current measurement, filtering of the signals may be required for various reasons. Signals can be filtered either at the input side or at the output side of the current sense amplifier.
When the current being measured is noisy, appropriate simple filters can be used at the output of current sense amplifier to get rid of noise. But, along with the input signal, noise will also be amplified by the amplifier. In this case, since low magnitude signals are being amplified, effect of noise can be significant. This also comes with the downside of loading down of the ADC.
Current sensing applications often have high amplitude and fast switching common-mode signals on the branch to which the shunt is connected, which may have frequent overshoot (spike). Along with this, in low value shunts, inductance becomes more significant which increases the amplitude of such spikes. The amplifier must be protected against these overshoots, even if spike frequencies are above the rated bandwidth of the device. Hence, appropriate filters are used at the input side of amplifier as shown in the Fig. 9.
The resistance of input resistors
If the main purpose is to filter high frequency noise, the capacitor should be increased to a value that provides the desired filtering.
Detailed explanation about filtering circuits for the amplifier can be obtained by corresponding device's datasheet. (e.g. NCS210R (opens new window))