Difference between revisions of "Current sense"

From OpenCircuits
Jump to navigation Jump to search
(rough draft -- moved text from motor driver)
 
(re-order a bit; make into a more stand-alone article.)
Line 1: Line 1:
 +
If something blocks an electric from turning ("stalled"), the current rapidly increases far above normal levels -- then the [[motor driver]] needs to turn off the power before the motor, or the motor driver MOSFET, or both are destroyed.
  
Often people want to measure the current going through the motor.
+
Systems that use a 4-20 mA current loop also need to measure current.
  
 
There are 3(?) basic techniques:
 
There are 3(?) basic techniques:
 +
for measuring current:
 
* low-side current shunt
 
* low-side current shunt
 
* high-side current shunt
 
* high-side current shunt
 
* magnetic field sense
 
* magnetic field sense
* ... ''(any others I missed?)'' Yes, [http://www.4qdtec.com/mircl.html pseudo 'mirror' current sensing a MOSFET] -- sampling the voltage across a MOSFET while it is turned on. That voltage is linear with current but varies with temperature. If the purpose of measuring current is to turn off the MOSFET before it overheats, the variation with temperature doesn't matter. (''A true [http://en.wikipedia.org/wiki/Current_mirror current mirror] isn't useful for motors, right?'')
+
* MOSFET voltage
 
* the "non-dissipative overcurrent protection", a kind of current mirror used in the L6208N ...
 
* the "non-dissipative overcurrent protection", a kind of current mirror used in the L6208N ...
 
* ... ''(any others I missed?)''
 
* ... ''(any others I missed?)''
  
 +
== low-side current shunt ==
 
Low-side is (electrically) the simplest.
 
Low-side is (electrically) the simplest.
  
 
For smaller motors, the current is usually measured by
 
For smaller motors, the current is usually measured by
running the current through a shunt resistor,
+
running the current through a shunt resistor to ground,
 
and measuring the voltage across the resistor.
 
and measuring the voltage across the resistor.
 +
 +
== high-side current shunt ==
  
 
In situations where low-side sensing is difficult ( automobile electronics bonded to the "GND" car frame; other systems where it is inconvenient to put a resistor on the "lo" power wire), we turn to high-side sensing.
 
In situations where low-side sensing is difficult ( automobile electronics bonded to the "GND" car frame; other systems where it is inconvenient to put a resistor on the "lo" power wire), we turn to high-side sensing.
Line 22: Line 27:
 
A few op amps can handle common-mode voltage well outside its power supply -- such as the TI INA117, which when powered by +/-15 V, can handle a common-mode voltage of +/-200 V.
 
A few op amps can handle common-mode voltage well outside its power supply -- such as the TI INA117, which when powered by +/-15 V, can handle a common-mode voltage of +/-200 V.
 
This is useful for high-side current sense and also 4-20 mA current loops.
 
This is useful for high-side current sense and also 4-20 mA current loops.
 +
 +
== magnetic field sense ==
  
 
For large motors, the current is measured by running the power wires through a magnetic field sensor -- either
 
For large motors, the current is measured by running the power wires through a magnetic field sensor -- either
Line 29: Line 36:
 
Because magnetic field sensing is inherently non-contact, it works just as well high-side as low-side.
 
Because magnetic field sensing is inherently non-contact, it works just as well high-side as low-side.
 
( [http://focus.ti.com/docs/prod/folders/print/drv401.html "Closed-Loop Magnetic Current Sensor"]. )
 
( [http://focus.ti.com/docs/prod/folders/print/drv401.html "Closed-Loop Magnetic Current Sensor"]. )
 +
 +
== MOSFET voltage ==
 +
 +
[http://www.4qdtec.com/mircl.html pseudo 'mirror' current sensing a MOSFET] -- sampling the voltage across a MOSFET while it is turned on. That voltage is linear with current but varies with temperature. If the purpose of measuring current is to turn off the MOSFET before it overheats, the variation with temperature doesn't matter. (''A true [http://en.wikipedia.org/wiki/Current_mirror current mirror] isn't useful for motors, right?'')
 +
 +
This uses the turned-on resistance of the MOSFET as if it were a shunt resistor.
 +
 +
----

Revision as of 08:23, 16 October 2008

If something blocks an electric from turning ("stalled"), the current rapidly increases far above normal levels -- then the motor driver needs to turn off the power before the motor, or the motor driver MOSFET, or both are destroyed.

Systems that use a 4-20 mA current loop also need to measure current.

There are 3(?) basic techniques: for measuring current:

  • low-side current shunt
  • high-side current shunt
  • magnetic field sense
  • MOSFET voltage
  • the "non-dissipative overcurrent protection", a kind of current mirror used in the L6208N ...
  • ... (any others I missed?)

low-side current shunt

Low-side is (electrically) the simplest.

For smaller motors, the current is usually measured by running the current through a shunt resistor to ground, and measuring the voltage across the resistor.

high-side current shunt

In situations where low-side sensing is difficult ( automobile electronics bonded to the "GND" car frame; other systems where it is inconvenient to put a resistor on the "lo" power wire), we turn to high-side sensing.

Maxim application note 746: "High-Side Current-Sense Measurement: Circuits and Principles"; Newark: high side current sense; Digikey: high side current sense; Linear: current sense circuit collection (why doesn't this include the Linear LTC6103 ?); Texas Instruments: "Current Sensor". A few op amps can handle common-mode voltage well outside its power supply -- such as the TI INA117, which when powered by +/-15 V, can handle a common-mode voltage of +/-200 V. This is useful for high-side current sense and also 4-20 mA current loops.

magnetic field sense

For large motors, the current is measured by running the power wires through a magnetic field sensor -- either

  • directly measuring the magnetic field (often with a Hall effect sensor, for example, the Allegro ACS712 or other [Allegro Hall-effect current sensors]), which can measure DC and AC current, or
  • indirectly measuring the magnetic field with a "one-loop current transformer" (which can only measure AC current).

Because magnetic field sensing is inherently non-contact, it works just as well high-side as low-side. ( "Closed-Loop Magnetic Current Sensor". )

MOSFET voltage

pseudo 'mirror' current sensing a MOSFET -- sampling the voltage across a MOSFET while it is turned on. That voltage is linear with current but varies with temperature. If the purpose of measuring current is to turn off the MOSFET before it overheats, the variation with temperature doesn't matter. (A true current mirror isn't useful for motors, right?)

This uses the turned-on resistance of the MOSFET as if it were a shunt resistor.