PC Helps Improve Current Measurements

April 5, 1999
Measuring currents with a current meter can be problematic due to the series impedance of the meter. Most current meters have a series resistance of about half an ohm, which introduces an error...

Measuring currents with a current meter can be problematic due to the series impedance of the meter. Most current meters have a series resistance of about half an ohm, which introduces an error voltage of about half a volt at just one amp of current. This can be a serious problem for many systems.

A circuit and software combination was developed that effectively eliminates the series impedance loss of the meter, while at the same time providing accuracy and ease of measurement (see the figure). This solution uses the National Semiconductor LM3813PM-1.0 integrated circuit to measure the current and provide a digital signal to the PC for display. The impedance loss of this circuit is typically a factor of 100 lower than using a meter directly, at just 0.005 Ω.

The circuit features a pulse-widthmodulated (PWM) output with duty cycle proportional to current. While the PWM signal could be displayed directly on an oscilloscope and manually converted to current, a more userfriendly solution was desired. To complete the circuit, a C-language program (compiled using Borland C) uses the parallel port of the PC to measure the duty cycle of the PWM signal, convert the duty cycle to current, and to display the current to the screen.

The duty cycle is calculated as:

Duty Cycle = (high time)/\[(high time) + (low time)\]

The current is calculated as:

Current = 2.2 \[(Duty Cycle) − 0.5 − 1/2048\]

A software-loop timer was used to measure high and low time. It’s important that the loop time be same in high-time and low-time software loops. The unit-less nature of the duty cycle makes the real-time interval to execute the loop non-critical, as long as the Nyquist criteria is met (loop time must be less than 1/2 the desired resolution of the duty-cycle measurement).

This solution measures currents from −1 A to +1 A with 1% accuracy. Accuracy can be improved by adding a software-calibration capability.

Sponsored Recommendations

Highly Integrated 20A Digital Power Module for High Current Applications

March 20, 2024
Renesas latest power module delivers the highest efficiency (up to 94% peak) and fast time-to-market solution in an extremely small footprint. The RRM12120 is ideal for space...

Empowering Innovation: Your Power Partner for Tomorrow's Challenges

March 20, 2024
Discover how innovation, quality, and reliability are embedded into every aspect of Renesas' power products.

Article: Meeting the challenges of power conversion in e-bikes

March 18, 2024
Managing electrical noise in a compact and lightweight vehicle is a perpetual obstacle

Power modules provide high-efficiency conversion between 400V and 800V systems for electric vehicles

March 18, 2024
Porsche, Hyundai and GMC all are converting 400 – 800V today in very different ways. Learn more about how power modules stack up to these discrete designs.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!