A capacitor meter is an essential instrument on any electronics workbench, but commercial models can be expensive. The capacitance ranges built into many multimeters are also limited: even the better ones often stop at 1,000 or 2,000 µF. The design here can measure components from a few picofarads to several farads, automatically adjusting its range without a selector switch. With a capacitor, you no longer need professional-grade equipment just to check its value. A PIC 16F628A and a popular 555 timer are all it takes to build this straightforward, easy-to-use and accurate instrument in an afternoon, using readily available parts.
The 555 must be a CMOS type. Popular versions are made by Harris, Texas Instruments, Philips, Intersil and Thomson. Its basic operation is the same as that of a standard NE555; the difference is the manufacturing technology. This version offers low current consumption (60 µA), 2% accuracy and very low input current requirements—20 pA—for THRESHOLD, TRIGGER and RESET. The low-power 555 is particularly useful in a battery-powered instrument.
How the meter works
The instrument uses a 7555 as a monostable multivibrator. To measure the capacitor, the microcontroller controls RESET and TRIGGER, then times how long the multivibrator's OUTPUT remains HIGH. As the diagram shows, the output-pulse duration is directly proportional to the value of C, the capacitor under test, and to Ra.
In a monostable circuit, C initially charges through Ra, tending towards the circuit's supply voltage. In practice, it never reaches that level: the transistor connected to pin 7 of the IC discharges C when its voltage reaches two-thirds of the supply voltage.
- A classic 555 monostable multivibrator
To start a measurement, the PIC pulls pin 4 LOW, resetting the timer. It then triggers the monostable with a very brief HIGH-to-LOW transition and returns the signal HIGH, where it stays until the next trigger. The falling edge changes the IC's internal flip-flop and starts the timing cycle. This releases the internal transistor that had been holding C at ground, allowing the unknown capacitor to charge through Ra. In this circuit, a different Ra is selected for each range; each consists of a multiturn potentiometer and a fixed resistor.
The PIC chooses which branch of resistors will charge the capacitor based on the measured pulse. It starts a timer counter; if the count exceeds a threshold, the PIC determines that the capacitor is not in the picofarad range and switches to the nanofarad resistor branch. If OUTPUT is still HIGH when the second counter overflows, it selects the third range, which charges a capacitor in the microfarad range more quickly.
The program changes ranges at 9,999 counts. To make readings easy to interpret, the display shows 1–999 pF, then 1.00–9.9 nF and 10–99 nF. The same display pattern is repeated for microfarads and millifarads.
- Autoranging capacitance meter circuit
In short, the PIC continually controls the multivibrator and measures the time between its trigger and the change in OUTPUT state. That pulse length corresponds to the value of the capacitor under test, or CUT (capacitor under test).
The proposed circuit
This version and its architecture are based on a widely published design. We have kept its useful features while simplifying it into a practical, clear circuit. It has three main sections: the power supply, the multivibrator and the PIC. The supply is split across sections to save room in the chosen enclosure and make construction easier. Our own enclosures are made from aluminium profile salvaged from a scrapyard.
Machining the enclosure adds some time to the build, but produces a sturdy, tidy finished instrument. An instrument like this should not be assembled or used on a solderless breadboard: its connections can become unreliable with time and repeated handling. The 7805 regulator is mounted on the aluminium enclosure wall, which helps dissipate heat. With the circuit's low current draw, however, it should get only slightly warm.
The printed circuit board must be small enough to fit inside the enclosure, which is largely occupied by the LCD, banana sockets for the CUT, the power switch, the 7805 and its associated components. A 1N4007 diode at the 5 V regulator input protects the circuit against accidental reverse polarity.
Because this portable instrument runs from a battery, the timer's low power consumption matters. With the display backlight off, measured current is under 10 mA, making a standard 9 V alkaline battery a practical choice. Switching on the LCD backlight raises consumption to 20 mA, still modest for an instrument that is not used continuously. To simplify the PCB, wire links are used in the board shown; they are unnecessary with a double-sided design. Components are kept low-profile so the board fits comfortably inside the enclosure.
When wiring the CUT input, take particular care at the picofarad ranges. The circuit can pick up noise and interference from transformers or SCR-controlled dimmer circuits, leading to fluctuating, unstable or plainly implausible readings. We used a pair of female banana sockets on the front panel. You can connect ordinary multimeter leads, place the CUT directly across the sockets, or make a pair of crocodile clips, which are handy for measuring loose capacitors. If you use meter leads, keep them as short as possible.
Automatic zero adjustment
At startup, the instrument measures the stray capacitance at its input and stores the result in a variable. Internal wiring, its proximity to the enclosure, test leads and clips can all introduce stray capacitance that varies with the measurement setup. The meter subtracts this value from the final reading. For that reason, do not connect a capacitor when switching the instrument on.
During startup, the display shows a welcome message, reports the zero adjustment and then enters the main program, ready to measure a capacitor connected to the test terminals.
Calibration
Calibrate the instrument with high-quality capacitors, preferably precision “standards” with a nominal tolerance of 1%. Choose values near the middle of each range: 470 pF or 560 pF for the picofarad range, and 470 nF or 560 nF for the nanofarad range. For the microfarad and millifarad ranges, take repeated measurements with good-quality capacitors until the corresponding preset is adjusted satisfactorily. A multiturn preset for each range makes precise calibration easier. Adjust preset P1 as well so that the text on the display is clearly visible.
Everyday use
Switch the meter on, connect the CUT to the test leads and read the value on the display. Larger capacitors take longer to measure because the multivibrator needs more time to charge them before OUTPUT changes state. A capacitor worth several tens of millifarads may take as long as a minute to measure, so be patient.
Recommendations
A metal enclosure helps keep external noise and interference from affecting the measurements. Always discharge capacitors before testing them to prevent an overvoltage from damaging the instrument. D2 and D3 are intended to remove any charge that a capacitor may carry, especially an electrolytic, but do not rely on them alone.
Capacitor values are not always exact. Like other mass-produced electronic components, capacitors have a tolerance that may range from 10% to 20%, depending on the part. A deviation greater than that suggests the component may be faulty.
Use a simple PIC programmer to write the required .HEX file and get this useful instrument ready for your workbench and experiments.
- Capacitors are no longer a mystery