Wednesday, October 19, 2011

Measure resistance and capacitance without an A/D

This article describes how to measure values of a variable resistor or a variable capacitor using a microcontroller to measure the RC charge time to a constant threshold voltage. A variety of these "one-shot" circuits are described and the accuracy of the various methods is measured. Sample programs for the 87C51 family are presented at the end of the article.

Measure resistance and capacitance without an A/D

The old "one-shot" monostable multivibrator circuit has been around since the discovery of the electron. Popular IC versions of this variable pulse width generator include the 74123 and the famous (Philips) Signetics NE555 timer. These circuits use the time to charge a capacitor to a predefined voltage as their time delay. If the threshold voltage is 1-1/e (e is the natural log base), then the time delay in seconds is exactly the product of the resistance in ohms and the capacitance in Farads (t=RC). This is a linear equation and it can be used to measure an unknown value of R if C and t are known. The purpose of this article is to describe ways to measure a RESISTANCE by using this technique with an 80C51 type of microcontroller.

by Don Sherman AN449 - NXP Application Notes

0 comments:

Contents

Tables, Charts, Videos

Binary and Hex
Resistor Color Code
Ohms Law
Giga, Tera, Pico, Nano
Milliamp Meter
Thumbwheel Switch
High Resistance Materials

Analog

School - Analog Design
DN Analog Basics 06
DN Op-Amps 01
TI Semiconductors

Process Control

liquid level measurement
Thermocouples and RTD
Design ADC Interface uC
Thermocouple Amplifier
IA Instrumentation 02
Temperature on DMM

Test Measurement

Instrumentation Automation
NI Test and Measurement
DMM Digital Multi Meter
Oscilloscope in T&M
IA Automation 01
Build Instruments

Components

Good Voltage Regulators
Relays and Contactors
Potentiometers Trimpots
Prototype Boards Types
Types of Capacitors
Types of Switches
Resistors How they Work
Coils Transformers SMPS
Mains Transformers Types
DN Components Selection 05

Hobby Circuits

VU Meter Circuits
LED brightness control
555 Incredible Chip

Basic Electronics

Basics of Electronics
Product Production
Work Discipline
Testing Points
Learning Electronics
Electronics Theory

Production Notes

Prototype Fabrication
Electrical Circuits
Electromechanical

Library

Scots Guide Electronics
Engineering - Wikibooks
Design Lab - Jim Svoboda
DC Circuits UOG
Socratic Electronics
Blobz Guide Electric Circuits

Power Electronics

UPS Background
Transformer Connections
DN Power Electronics 03
DN Power Electronics 02

Embedded

Interfacing Microcontrollers
Embedded Process Control
80C31 8052 Microcontroller
Microprocessors and uC
Embedded Systems Design

History

Edison Phonograph
Miami Museum
Teaching Instruments
Charles Proteus Steinmetz
Muntzing a Circuit Design
Magic Eye Valve Tube
Teralab Electronics projects
Historical Instruments

Product Design

Product Development
Constant Current Source
Good Voltage Regulators
Insulation Resistance
Digital Insulation Tester
DN Schematic PCB 04
DN Product Design 07

Tutor Gadgets

Count-Up Timer
Digital Logic Gates
Electronics Tutors

Science

Delsea Physics Page
Science Toys
Science Clips
HyperPhysics
FCC Kids Zone