Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Pairing a digital multimeter with a computer. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Measuring technology

Comments on the article Comments on the article

Connecting a small-sized multimeter to a personal computer allows statistical processing of the results of a series of measurements. For example, it is possible to investigate the spread of parameters of a group of components or changes in voltage and capacity of batteries during discharging. One can imagine a number of other applications of such a "tandem", the creation of which is described in this article.

Recently, multimeters of the 830 series, for example, DT830 or M-830, have become widespread among radio amateurs. They have a relatively small error, which allows them to be used for a wide range of measurements.

Using the proposed device, you can enter data from the multimeter into a computer for further processing. Multimeters with this feature usually have an RS232 interface and are relatively expensive. The proposed adapter is made on inexpensive widely available components. Numeric data is read directly from the multimeter's ADC pins and transmitted over a serial link. It is not recommended to use multimeters for this refinement, in which an ADC chip is installed in a frameless version.

The heart of the 830 series multimeters is the ICL7106 ADC (domestic analogue of K572PV5; description can be found in [1]). The description of the operation and the scheme of the multimeter can be found in [2, 3]. The ADC interacts with the LCD through static control [4] - each image element is controlled through a separate output of the microcircuit, to which rectangular voltage pulses are applied, phase-shifted by 0° or 180° relative to the pulses applied to the common indicator wire. If the phases on the LCD outputs coincide, the segment is not excited.

The proposed device consists of two parts: a block for converting data from the ADC (LCD multimeter) and a block for transmitting data to a computer. In the conversion unit, CMOS shift registers with parallel loading DD1-DD3 are used to determine the state of low-current control outputs of the indicator (Fig. 1).

Pairing the DMM with a Computer
(click to enlarge)

The device works as follows. At a low level at pin 1 of registers DD1-DD3, asynchronous loading is performed. After a high level is applied to this pin (via the RD line), data is fixed, which is shifted along the edge of the clock pulses at pin 2. The data is taken from pin 9 of the DD3 register to the DATA bus. Since the seven-segment code is redundant (bits of these / - "superfluous"), information about commas can be additionally transmitted in these bits. This information is taken from terminals 12 and 16 of the LCD multimeter. These pins can be connected to the collectors of the transistors or directly to the multimeter's multi-position switch. This switch, in turn, switches them directly to the battery positive (high). This state does not allow distinguishing between commas at a high level on the BP pin (ADC pin 21). Both commas will be canceled, since there is a high level on the outputs 12 and 16 of the LCD.

The data transfer unit can be built in various ways. Its simple version is shown in Fig. 2. It serves to match the LPT port and is completely housed in a suitable XS1 connector housing. Power is supplied from an external source with a voltage of 9 ... 15 V. XP2 and ХРЗ connectors are connected using a flat ribbon cable with corresponding mating connectors - IDC-10F. The XP2 plug may not be present if the cable is connected directly to the port. With the XP2 connector disconnected, the DD1-DD3 microcircuits are de-energized, and the multimeter can be used in the usual way. The data transmission is completely controlled by the computer. The source code of the control program for DOS is in the file m_lpt.cpp [5].

Pairing the DMM with a Computer

The given version of the block does not have galvanic isolation, so it should be used with great care. For example, a voltage of 30 V entering the LPT port during a breakdown in the ADC chip can damage the motherboard.

To eliminate this shortcoming, a more complex scheme of the data transmission unit was developed (Fig. 3). It is a microcontroller unit with galvanic isolation and transmitting data via a serial RS232 channel. The use of a single-chip microcontroller made it possible to minimize power consumption and reduce dimensions.

Pairing the DMM with a Computer
(click to enlarge)

The PIC12F629 microcontroller has 1024 FLASH words of program memory, 64 bytes of data memory, 6 I/O ports, and an internal 4 MHz clock. It does not have a hardware transceiver (USART), so the RS232 protocol is reproduced by software. The microcontroller is powered by an internal 4 MHz clock generator, for which software calibration is provided. Also, the block can use the PIC12F675 microcontroller, identical to PIC12F629 with an additional four-channel ADC (10 bits). Other parameters of these microcontrollers and technical documentation can be found in [6, 7].

Programming can be done using the EPIC programmer. The firmware is shown in the table.

All elements of the block according to the scheme of Fig. 3, with the exception of the XP4 connector, can be placed inside the multimeter case, connected to the COM port with a conventional modem cable.

Information data is issued in two-byte packets upon request. A request through the U3 optocoupler is formed at pin 7 DD5 by a signal drop from high to low, which corresponds to the transmission of a zero byte by the computer. After receiving the request, within 3 ms, the data is loaded from the registers DD1-DD3 and converted. Next, the first byte is transmitted (2 ms for a speed of 4800 bps) and a pause of 3 ms is maintained. After that, the second byte is transmitted and the data transfer block is turned off until the next request.

The format of the transmitted bytes is shown in fig. four.

Pairing the DMM with a Computer

NUM1 - the most significant digit of the LCD, NUM4 - the least significant digit, respectively. KF - coefficient by which the obtained indicator value is divided. For example, the indicator readings (-12,36) will correspond to: NUM=1, NUM2=2, NUM3=3. NUM4=6, KF=100, ZNAK=1.

Relatively slow galvanic isolation optocouplers cannot operate at speeds higher than 9600 bps, although 2400 bps is sufficient in this device. The microcontroller firmware specifies a baud rate of 4800 bps. The output node of the transmission unit is made on optocouplers U1 and U2 according to a symmetrical scheme. The differing levels at pins 5 and 6 of DD5 turn on the emitting diode of one of the optocouplers. Resistors R5 and R6 are used to protect the COM port in case of improper installation or other malfunctions. The optocoupler request circuit (U3) is made according to an asymmetric circuit. Diode VD1 serves to protect the optocoupler LED from reverse voltage at the input.

Now a few words about the operation of the software. The control software for the computer and the PIC controller is built in the same way [8]. Each cycle of converting numerical data from the multimeter LCD consists of the following steps. First, information is recorded (written) in the registers, then it is sequentially shifted and read into memory, all digits are inverted at a high level at pin 21 (BP) of the ADC, the sign, commas and high-order digit of the LCD are read, the remaining digits of the LCD are converted, error checking. The program for the PIC controller additionally packs data into two bytes and transfers them over a serial channel.

Pairing the DMM with a Computer
(click to enlarge)

Instead of the optocouplers U1, U2 indicated in the diagram, you can use the dual device TLP521-2. Capacitors C2, C3 - K50-35 or other small ones. Capacitors C1, C4 - ceramic. Resistors - any, designed for surface mounting (size 1206). The type of connector XS1 depends on the extension cable used (in the diagram it is indicated for a standard printer cable).

The printed circuit board is made individually for the existing multimeter model and placed inside it. Chips DD1-DD3 are mounted on the surface of the printed circuit board on both sides. On the same printed circuit board, the elements of the device shown in Fig. 3. The XP4 plug is installed directly on the multimeter body.

You can use an imported analogue of the register KR1564IR9 - 74NS165 in a surface mount case. Then the DD1-DD3 microcircuits are mounted on a single-sided printed circuit board measuring 50x13 mm, and the remaining elements are mounted on a separate printed circuit board. However, due to the reduced pin pitch (1,27 mm), installation is much more complicated.

In the DA1 voltage regulator, it is possible to use 78L05, KR1157EN5A or KR1157EN502A, taking into account the difference in the pin numbering.

Microcontroller software

Literature

  1. Biryukov S. Application of ADC KR572PV5. - Radio, 1998, No. 8, p. 62-65.
  2. Afonsky A., Kudrevatykh E., Pleshkova T. Compact multimeter M-830V. - Radio, 2001, No. 9, p. 25-27.
  3. Sadchenkov D. A. Modern digital multimeters. - M.: SOLON-R, 2001.
  4. Library of electronic components. Issue 8: Liquid crystal indicators of DATA International - M.: DODEKA, 1999
  5. .
  6. DS41190A. PIC12F629/675 Data Sheet. .
  7. Novikov Yu. V., Kalashnikov O. A., Gulyaev S. E. Development of interfacing devices for a personal computer such as IBM PC. - M.: ECOM., 1998.

Author: V.Stepnev, Moscow

See other articles Section Measuring technology.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

ASUS VG278HV Gaming Monitor 10.04.2016

ASUS has announced a 278-inch VG27HV monitor designed for use in gaming systems.

The novelty corresponds to the Full HD format: the resolution is 1920 x 1080 pixels. The screen refresh rate is 144 Hz, the response time is 1 ms. Brightness, contrast and dynamic contrast ratios are 300 cd/m2, 1000:1 and 50:000. The horizontal and vertical viewing angles are 000 and 1 degrees, respectively.

The panel is equipped with 3W stereo speakers. The stand allows you to adjust the angles of inclination and rotation of the screen, as well as change the height relative to the table surface within 100 mm. Dimensions are 643 x 249,7 x 437,8 mm (including stand), weight is approximately 8,2 kg.

The monitor uses Splendid's proprietary image quality enhancement technology. Provides 72 percent coverage of the sRGB color space. To connect signal sources, digital DVI-D and HDMI interfaces, as well as an analog D-Sub port are provided.

Other interesting news:

▪ Minisforum AR900i motherboard

▪ PNX1700 Single Chip Media Processor

▪ A new way to chemically convert plastic into fuel

▪ Runway LEDs

▪ Smart door lock Latch C

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Metal detectors. Article selection

▪ Article by Arthur Rimbaud. Famous aphorisms

▪ article How does etiquette order a Frenchman to behave if his interlocutor sneezes? Detailed answer

▪ article Concierge. Job description

▪ article Cordless Phone Repair. Encyclopedia of radio electronics and electrical engineering

▪ article Power supply with short circuit protection system. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024