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

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

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