Digital capacitance meter. Measuring capacitor parameters Models based on two-junction expanders: assembly and configuration

IN electrical circuits capacitors are used different types. First of all, they differ in capacity. In order to determine this parameter, special meters are used. These devices can be produced with different contacts. Modern modifications are distinguished by high measurement accuracy. In order to make a simple capacitor capacitance meter with your own hands, you need to familiarize yourself with the main components of the device.

How does the meter work?

The standard modification includes a module with an expander. The data is displayed on the display. Some modifications operate on the basis of a relay transistor. It is capable of operating at different frequencies. However, it is worth noting that this modification is not suitable for many types of capacitors.

Low precision devices

You can make a low-precision ESR meter of capacitor capacitance with your own hands using an adapter module. However, the expander is used first. It is more expedient to select contacts for it with two semiconductors. With an output voltage of 5 V, the current should be no more than 2 A. Filters are used to protect the meter from failures. Tuning should be carried out at a frequency of 50 Hz. In this case, the tester should show a resistance of no higher than 50 Ohms. Some people have problems with cathode conductivity. In this case, the module should be replaced.

Description of high precision models

When making a capacitor capacitance meter with your own hands, the accuracy calculation should be made based on the linear expander. The overload indicator of the modification depends on the conductivity of the module. Many experts advise choosing a dipole transistor for the model. First of all, it is able to operate without heat loss. It is also worth noting that the presented elements rarely overheat. A contactor for the meter can be used with low conductivity.

To make a simple, accurate capacitor capacitance meter with your own hands, you should take care of a thyristor. The specified element must operate at a voltage of at least 5 V. With a conductivity of 30 microns, the overload in such devices, as a rule, does not exceed 3 A. Filters are used of different types. They should be installed after the transistor. It is also worth noting that the display can only be connected via wired ports. To charge the meter, 3 W batteries are suitable.

How to make an AVR series model?

You can make a capacitor capacitance meter with your own hands, AVR, only on the basis of a variable transistor. First of all, a contactor is selected for modification. To set up the model, you should immediately measure the output voltage. The negative resistance of the meters should not exceed 45 ohms. With a conductivity of 40 microns, the overload in the devices is 4 A. To ensure maximum measurement accuracy, comparators are used.

Some experts recommend choosing only open filters. They are not afraid of impulse noise even under heavy load. Pole stabilizers have recently been in great demand. Only grid comparators are not suitable for modification. Before turning on the device, a resistance measurement is made. For quality models this parameter is approximately 40 ohms. However, in this case, much depends on the frequency of modification.

Setting up and assembling a model based on PIC16F628A

Making a capacitor capacitance meter with your own hands using the PIC16F628A is quite problematic. First of all, an open transceiver is selected for assembly. The module can be used as an adjustable type. Some experts do not recommend installing high conductivity filters. Before soldering the module, the output voltage is checked.

If the resistance is increased, it is recommended to replace the transistor. In order to overcome impulse noise, comparators are used. You can also use conductor stabilizers. Displays are often used text type. They should be installed through channel ports. The modification is configured using a tester. If the capacitance parameters of the capacitors are too high, it is worth replacing transistors with low conductivity.

Model for electrolytic capacitors

If necessary, you can make a capacitance meter for electrolytic capacitors with your own hands. Store models of this type are distinguished by low conductivity. Many modifications are made on contactor modules and operate at a voltage of no more than 40 V. Their protection system is RK class.

It is also worth noting that the meters of this type characterized by reduced frequency. Their filters are only of the transition type; they are able to effectively cope with impulse noise, as well as harmonic vibrations. If we talk about the disadvantages of modifications, it is important to note that they have a small throughput. They perform poorly in high humidity conditions. Experts also point out incompatibility with wired contactors. The devices cannot be used in alternating current circuits.

Modifications for field capacitors

Devices for field capacitors are characterized by reduced sensitivity. Many models are capable of operating from straight-line contactors. Devices are most often used of the transitional type. In order to make the modification yourself, you need to use an adjustable transistor. Filters are installed in sequential order. To test the meter, small capacitors are first used. In this case, the tester detects a negative resistance. If the deviation is more than 15%, it is necessary to check the performance of the transistor. The output voltage on it should not exceed 15 V.

2V devices

At 2 V, a DIY capacitor capacitance meter is quite simple to make. First of all, experts recommend preparing an open transistor with low conductivity. It is also important to choose a good modulator for it. Comparators are usually used with low sensitivity. The protection system of many models is used in the KR series on mesh-type filters. To overcome impulse oscillations, wave stabilizers are used. It is also worth noting that the assembly of the modification involves the use of a three-pin expander. To set up the model, you should use a contact tester, and the resistance should not be lower than 50 Ohms.

3V modifications

When folding a capacitor capacitance meter with your own hands, you can use an adapter with an expander. It is more expedient to select a transistor linear type. On average, the conductivity of the meter should be 4 microns. It is also important to secure the contactor before installing the filters. Many modifications also include transceivers. However, these elements are not able to work with field capacitors. Their maximum capacitance parameter is 4 pF. The protection system of the models is RK class.

4 V models

It is allowed to assemble a capacitor capacitance meter with your own hands only using linear transistors. The model will also require a high-quality expander and adapter. According to experts, it is more advisable to use transitional type filters. If we consider market modifications, they can use two expanders. Models operate at a frequency of no more than 45 Hz. At the same time, their sensitivity often changes.

If you assemble a simple meter, then the contactor can be used without a triode. It has low conductivity, but is able to work under heavy load. It is also worth noting that the modification should include several pole filters that will pay attention to harmonic oscillations.

Modifications with a single junction expander

Making a capacitor capacitance meter with your own hands based on a single-junction expander is quite simple. First of all, it is recommended to select a module with low conductivity for modification. The sensitivity parameter should be no more than 4 mV. Some models have a serious conductivity problem. Transistors are usually used of the wave type. When using mesh filters, the thyristor heats up quickly.

To avoid similar problems, it is recommended to install two filters at once on mesh adapters. At the end of the work, all that remains is to solder the comparator. To improve the performance of the modification, channel stabilizers are installed. It is also worth noting that there are devices based on variable contactors. They are capable of operating at a frequency of no more than 50 Hz.

Models based on two-junction expanders: assembly and configuration

It is quite simple to assemble a digital capacitor capacitance meter on two-junction expanders with your own hands. However, for normal operation of modifications only suitable adjustable transistors. It is also worth noting that during assembly you need to select pulse comparators.

The display for the device is of the line type. In this case, the port can be used for three channels. To solve problems with distortion in the circuit, low sensitivity filters are used. It is also worth noting that modifications must be assembled using diode stabilizers. The model is configured with a negative resistance of 55 Ohms.

.

Capacitors are very widely used in all types of electronic circuits and almost no radio circuit can do without them. In this project, we will discuss construction techniques digital meter containers using microcontroller PIC. This project can measure capacitance values ​​from 1 nF to 99 uF (accordingly, it also measures picofarads). The microcontroller used in this project is PIC16F628A.

The circuit consists of two parts, the first part of the circuit is presented below:

Second part:

The outputs of the second part from the circuit are connected to the outputs of the microcontroller, according to the designations on them.

This capacitance meter is based on the principle of charging a capacitor through series resistor. If we know the time it takes for the capacitor to charge up to a known voltage, then we can solve this equation for C knowing the value of R.

Knowing the resistor value (in this case it is 22K) and the charging time, we can now solve the capacitor equation to calculate the capacitance C. This is the principle used in the program. The measurement starts when the measurement button is pressed. The measured capacitance is displayed on LCD display. To power the circuit, a 5V power supply is required.

The microcontroller firmware is written in C. Pro for the PIC compiler. The maximum value of measurable capacitance is 99.99 uF. The program displays the message “Out of Range” if the measured value is out of range. It is clear that microfarads will take longer to measure than pico or nanofarads. The device is quite accurate and the error is only 1 nF.

Note: High-voltage capacitors must be discharged with a high-resistance resistor before starting measurements.

Examples of measured capacities:

/c]

Using this capacitance meter, you can easily measure any capacitance from units of pF to hundreds of microfarads. There are several methods for measuring capacitance. This project uses the integration method.

The main advantage of using this method is that the measurement is based on time measurement, which can be done quite accurately on an MC. This method is very suitable for a homemade capacitance meter, and it can also be easily implemented on a microcontroller.

Working principle of a capacitance meter

Phenomena that occur when the state of a circuit changes are called transient processes. This is one of the fundamental concepts digital circuits. When the switch in Figure 1 is open, the capacitor is charged through resistor R, and the voltage across it will change as shown in Figure 1b. The relationship determining the voltage on the capacitor has the form:

Values ​​are expressed in SI units, t seconds, R ohms, C farads. The time during which the voltage on the capacitor reaches the value V C1 is approximately expressed by the following formula:

From this formula it follows that time t1 is proportional to the capacitance of the capacitor. Therefore, the capacitance can be calculated from the charging time of the capacitor.

Scheme

To measure the charging time, a comparator and a microcontroller timer and a digital logic chip are sufficient. It is quite reasonable to use the AT90S2313 microcontroller (the modern analogue is ATtiny2313). The output of the comparator is used as a flip-flop T C1. The threshold voltage is set by a resistor divider. Charging time does not depend on supply voltage. The charging time is determined by formula 2, therefore it does not depend on the supply voltage because the ratio in the formula VC 1 /E is determined only by the divisor coefficient. Of course, during measurement the supply voltage must be constant.

Formula 2 expresses the time it takes to charge the capacitor from 0 volts. However, it is difficult to work with voltage close to zero due to the following reasons:

  • The voltage does not drop to 0 volts. It takes time for the capacitor to completely discharge. This will lead to increased measurement times.
  • Time required between startscharging and starting the timer. This will cause measurement error. For AVR this is not critical because this requires only one clock cycle.
  • Leakage current at the analog input. According to the AVR datasheet, current leakage increases when the input voltage is close to zero volts.

To prevent these difficulties, two threshold voltages VC 1 (0.17 Vcc) and VC 2 (0.5 Vcc) were used. The PCB surface must be clean to minimize leakage currents. The required supply voltage for the microcontroller is provided by a DC-DC converter powered by a 1.5VAA battery. Instead of a DC-DC converter, it is advisable to use 9 Vbattery and converter 78 L05, preferablyAlsodo not turn offBOD, otherwise problems may arise with EEPROM.

Calibration

To calibrate the lower range: Using the SW1 button. Next, connect pin #1 and pin #3 on P1, insert a 1nF capacitor and press SW1.

To calibrate the high range: Close pin #4 and #6 of connector P1, insert a 100nF capacitor and press SW1.

The inscription "E4" when turned on means that the calibration value was not found in the EEPROM.

Usage

Automatic ranging

Charging starts through a 3.3M resistor. If the voltage on the capacitor does not reach 0.5 Vcc in less than 130 mS (>57nF), the capacitor is discharged and recharged, but through a 3.3 kOhm resistor. If the voltage on the capacitor does not reach 0.5 Vcc in 1 second (>440µF), the inscription “E2”. When time is measured, the capacity is calculated and displayed. The last segment displays the measuring range (pF, nF, µF).

Clamp

You can use part of a socket as a clamp. When measuring small capacitances (units of picofarads), the use of long wires is undesirable.

This capacitance meter can measure the capacitance of capacitors with 1 pF resolution at the low end of the range. The maximum measured capacitance is 10000 µF. The actual accuracy is unknown, but the linear error is within a maximum of 0.5%, and usually less than 0.1% (obtained by measuring several capacitors connected in parallel). The greatest difficulties arise when measuring large-capacity electrolytic capacitors.

The capacitance meter operates in the mode of automatic selection of measurement limits, or in the lower or upper capacitance range forcibly. The device has two different measurement limits, realizing two measurements for the same capacitor. This makes it possible to check the accuracy of the measurement and find out whether the part being measured is really a capacitor. With this method, electrolytes exhibit their characteristic nonlinearity, giving different meanings at different measurement limits.

The capacitance meter has a menu system that, among other things, allows you to calibrate the zero value and 1 µF capacitance. The calibration is stored in EEPROM.

One of the smallest chips, Atmega8, was chosen for the project. The circuit is powered by a 9V battery through a 7805 linear regulator.

The device can operate in three modes: measurement in the lower range, in the upper range, and in discharge mode. These modes are determined by the state of the controller pins PD5 and PD6. During discharge, PD6 has a log. 0 and the capacitor is discharged through resistor R7 (220 Ohm). In the upper measurement range, PD5 has a log. 1, charging the capacitor through R8 (1.8K) and PD6 is in the Z-state to allow the analog comparator to compare the voltage. In the lower measurement range, PD5 is also in the Z-state, and the capacitor is charged only through R6 (1.8MΩ).

Any 16x2 character display on the HD44780 controller can be used as an indicator. The display connector layout is shown in this figure:

The device is assembled on a breadboard and placed in a simple rectangular plastic case. The housing cover has holes cut out for the indicator, button and LED, which are secured with hot-melt adhesive:

Capacitance meter program

The device can use atmega8 and atmega48/88/168 family controllers. When replacing a controller in the program, you need to change the line responsible for the timer configuration of a specific controller.

This is a simple capacitance meter. There are several methods for measuring capacitance, for example using a resistance bridge or measuring the deflection of a magnetic needle. Recently, typical capacitance meters measure capacitance and some additional characteristics measuring the current vector by applying it to the measured capacitance AC voltage. Some simple capacitance meters use the integration method, measuring the short-term transient response of the RC circuit. There are ready-made kits for assembling capacitance meters that implement this method.

This project uses the integration method. The advantage of this method is that the result can easily be obtained immediately in digital form, because the method is based on measuring time intervals, an accurate analog circuit is not required, the meter can easily be calibrated using a microcontroller. Thus, the integration method is most suitable for a hand-built capacitance meter.

Transition process

A phenomenon that occurs until the state of the circuit stabilizes after a change in state is called a transient process. The transient process is one of the fundamental phenomena in pulse circuits. When the switch in Figure 1a opens, capacitor C will charge through resistor R and the voltage Vc will change as shown in Figure 1b. To change the state of the circuit in Figure 1a, it is also possible to change the emf E, instead of using a switch, the two methods will be equivalent. The dependence of voltage Vc on time t is expressed by the formula.

(1)

Dimensions of quantities: t - seconds, R - Ohms, C - Farads, number - e, approximately 2.72. when the voltage Vc reaches a certain value Vc1, the time t1 can be expressed by the formula:

(2)

This means that the time t1 is proportional to C. Thus the capacity can be calculated from the charging time and other fixed parameters.

Hardware

To measure charge time, you only need a voltage comparator, a counter, and some interconnection logic. However, the microcontroller (AT90S2313) used in this project makes this easier to implement. At first I thought that the analog comparator in AVR controllers was useless, but I discovered that the signal from the output of the comparator can be applied to the input of the TC1 flip-flop. This is a great opportunity for our case.

The integrating circuit can be simplified as shown in the device diagram. The reference voltage is created by a resistive divider. At first glance, it seems that the use of a divider makes the result unstable to changes in the supply voltage, but the charging time does not depend on the supply voltage. Using formula (2), you can find that the voltage can generally be replaced by the parameter Vc1/E, which depends only on the ratio of the divider resistances. The NE555 timer IC takes advantage of this advantage. Of course, the supply voltage must be stable during measurement.

Due to fundamental principles, only one reference voltage can be used when measuring capacitance. However, using an input voltage close to zero is problematic for the following reasons.

  • The voltage will never drop to zero volts. The voltage across the capacitor cannot drop to 0 volts. It takes time to discharge the capacitor to a low enough voltage level to allow measurements. This will increase the measurement interval. The voltage drop across the discharge switch will also increase this effect.
  • There is a time between the start of the charge and the start of the timer. This may cause measurement error. This can be ignored on AVRs because they only require one clock cycle to do this. On other controllers you may need to solve this problem.
  • Leakage current in an analog circuit. According to the AVR specification, the leakage current at the analog inputs increases when the voltage across them is close to zero. This may cause measurement error.

To avoid using a voltage close to zero, two reference voltages Vc1(0.17 Vcc) and Vc2(0.5 Vcc) are used and the difference in time intervals t2-t1 (0.5RC) is measured. This avoids the above problems and the comparator delay is also compensated. Printed circuit board devices must be kept clean to minimize current leakage across the surface.

The supply voltage is generated by a converter powered by a 1.5 volt battery. The key power supply is not applicable for the measurement circuit, although in appearance it seems that the circuit is not subject to voltage fluctuations, since two filters are used in the power circuit . I recommend using a 9 volt battery with a 5 volt stabilizer 78L05 instead, and do not disable the BOD function or you will suffer from data corruption in the controller's non-volatile memory.

Graduation

To calibrate the low range: First of all, set 0 with the SW1 button. Then connect a 1nF precision capacitor, short-circuit pins #1 and #3 of P1 and press the SW1 button.

To calibrate the high range: connect a precision capacitor with a capacity of 100 nF, close pins #4 and #6 of connector P1, press the SW1 button.

“E4” when turned on means that the calibration value in the non-volatile memory is damaged. This message will never be shown if calibration has already been performed. As for setting the zero, this value is not written to non-volatile memory and must be reset each time it is turned on and before each measurement.

Usage

Automatic range switching

The measurement process starts at intervals of 500 milliseconds from the moment the measured capacitance is connected. The measurement starts from the lower range (3.3 mOhm). If the capacitor voltage does not reach 0.5 Vcc within 130 milliseconds (>57 nF), the capacitor discharges and the measurement restarts at the high range (3.3 kOhm). If the capacitor voltage does not reach 0.5 Vcc within 1 second (>440 µF), the measurement is canceled and the message “E2” is displayed. In case the valid time value is measured, the capacitance is calculated and displayed. The capacity value is displayed in such a way that only the first three digits from the left are shown on the display. This automatically selects two measuring ranges and three display ranges.