Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?

[Ideas For Design]

PC Helps Improve Current Measurements



Contributing Author  |   ED Online ID #6224  |   April 5, 1999

Article Rating: Not Rated

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.




Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


  • Network-On-Chip Tools Arrive for The Masses
  • Tackling System Design Challenges Through Early Verification
  • ESL Tools Take Center Stage As Designers Move Up
  • Parasitic Extraction Tool Targets Next-Generation Custom ICs
  • Synopsys Jumps Into ESL-Synthesis Pool
  • Verify Control Systems Before Committing To Hardware
  • You're Using How Many FPGAs?
  • Tool Up For The FPGA Blitz
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (177 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (167 views today)
    3) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (83 views today)
    4) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (71 views today)
    5) Bidirectional H-Bridge DC-Motor Motion Controller
    (58 views today)
    ALL TOP 20







    POST YOUR COMMENTS HERE

    Name:

    Email:
    Rate this article:

     less useful more useful 
    1
    2
    3
    4
    5
    Your Comments:

    Enter the text from the image below




    Please refresh the page if you have trouble reading this text.
    (Acceptable Use Policy)
     
     

    PartFinder

    Find real-time pricing, stock status, same-day/next-day shipping options and more. Brought to you by Digi-Key. Go to PartFinder.    
    GlobalSpec

    PART SEARCH :
    Powered by: GlobalSpec - The Engineering Search Engine
    Sponsored Links

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources