A DMM is usually the tool of choice for measuring
currents and voltages during the prototyping phase, but a DMM might be
far from convenient when you are working with assembled PCBs or packaged
modules. In addition, some circuits need to monitor and perhaps analyze
currents and voltages during operation. Thus, it is important to
understand how to incorporate voltage- and current-monitoring
functionality into your design.
Recommended Level
BeginnerVoltage vs. Current
A fundamental point here is that measuring voltage is easier than measuring current. A voltage is available simply by forming an electrical connection to the appropriate node, and as long as your measurement circuitry presents a very high impedance (which is easily accomplished with an op-amp), the rest of the circuit will not be significantly affected. Current measurements, on the other hand, are often more intrusive because a small resistance is inserted into the current path. Consequently, if you have a choice of measuring current or voltage, opt for voltage. For example, if you need to measure a current that already flows through a resistor with a precisely known value, simply measure the voltage across this resistor and use Ohm’s law to calculate the current.Voltage
A primary objective in any measurement system is minimizing the extent to which the process of measuring affects the quantity being measured. When measuring voltage, this means that the measurement circuit should have a very high input impedance. Think about it this way: if the measurement circuit were not present, the insulating material around the wire or PCB trace would provide an extremely high resistance. So as the input impedance of the measurement circuit increases, it behaves more like a mere open circuit, and thus its effect on the measured voltage becomes less significant.High input impedance can be achieved with the simple op-amp circuit shown below, called a voltage follower. It also provides low output impedance, which helps to ensure that the reading is not altered by subsequent components in the measurement circuit.
If you are measuring a voltage that is too high for the input range of the op-amp, you can use a resistive voltage divider in conjunction with the voltage follower:
For this example, a good compromise would be R1 = R2 = 100 kΩ, since increasing the resistance beyond that point has little effect on the measurement error.
Current
Most in-circuit current measurements fall into two general categories: resistive and magnetic. In the resistive approach, a small resistor is inserted into the current path, and a differential amplifier measures the voltage drop across the resistor. Magnetic current measurements involve a sensing device that generates a voltage when current passing through the device is influenced by a magnetic field. Both strategies have advantages and disadvantages.Resistive measurements are generally more accurate and can be used over a wide range of current amplitudes and frequencies, and the required components are inexpensive and readily available. The primary advantage of magnetic measurements is isolation: there is no electrical connection between the sensor and the current path, and no current-sense resistance is added to the circuit. It follows that magnetic sensors are preferable for very high currents that would create excessive power dissipation if measured with a current-sense resistor.
Putting Ohm’s Law to Work
A basic resistive current-sense configuration involves a precision resistor and a differential amplifier:The fundamental trade-off here is the value of the resistor. A smaller resistor will dissipate less power and have less effect on the current being measured, but lower resistance also generates a lower voltage that is more subject to errors induced by noise and offset voltages.
Putting the Hall Effect to Work
Magnetic current transducers, generally referred to as Hall effect sensors, use an applied magnetic field to generate a voltage in proportion to the current passing through the device.Closing the Loop
The circuits and devices discussed thus far merely convert a voltage or current into a buffered, scaled voltage signal—we still need to actually make use of this measured quantity. If your only requirement is to detect a fault condition and initiate a response, you could use a simple comparator circuit that activates when the measured signal goes above or below a predefined threshold. Often, though, you will want to do more with your measurements: store data, analyze trends, detect steep increases or decreases, send measurements to a PC, etc. If this is the case, a microcontroller with an integrated ADC is a powerful and versatile solution that allows you to conveniently digitize the signals, analyze the digitized data, and perform a wide variety of corrective measures.
No comments:
Post a Comment