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

Interfacing with a computer digital multimeter series 830. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

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.

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.

Pairing the 830 Series DMM with a Computer
Ris.1.

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).

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 front of the clock pulses at pin 2.

Data is taken from pin 9 of register DD3 to the DATA bus.

Since the seven-segment code is redundant (bits c and d are "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 commas at a high level on the output of the VR (pin 21 of the ADC). 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.

Pairing the 830 Series DMM with a Computer
Ris.2.

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 located in the mjpt.cpp file of the program archive.

The given version of the block does not have galvanic isolation, so it should be used with great care. For example, a voltage of 30V 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.

The PIC12F629 microcontroller has 1024 FLASH words of program memory, 64 bytes of data memory, 6 I/O ports, and an internal clock frequency of 4 MHz. It does not have a hardware transceiver (USART), so the RS232 protocol is reproduced by software.

Table 1

Pairing the 830 Series DMM with a Computer

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 [5, 6].

Programming can be done using the EPY programmer. Firmware is shown in Table 1.

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 optocoupler U3 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. 4. 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.

Pairing the 830 Series DMM with a Computer
Fig. 3

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 [7]. 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 (VR) 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 830 Series DMM with a Computer
Fig. 4

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.

Download archive of software for interfacing a digital multimeter with a computer.

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. DS41190A. PIC12F629/675 Data Sheet.

Author: V. Stepnev; Publication: cxem.net

See other articles Section Microcontrollers.

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

wood graphene 18.09.2017

Many call graphene the material of the future, because it has many unique properties, but graphene also has a significant drawback: it is still very expensive to produce it in large quantities. And recently, researchers at Rice University have unveiled a laser-induced grapheme (LIG) technology for producing graphene, which uses ordinary wood as a raw material.

The new technology uses the light of an industrial laser, tuned in a certain way. The whole process takes place at room temperature inside a sealed chamber in which there is no air. The absence of oxygen prevents the burning of wood, and the pressure and parameters of the laser lead to the formation of a "graphene film" on the surface of the wood.

Rice University scientists chose wood not by chance, as it is rich in lignin cellulose. Since 2014, experts have been choosing the type of wood and have chosen pine wood, as it has the highest content of lignin cellulose. In addition, scientists have noticed that changing the laser power affects the quality of the resulting graphene. The best quality of the material is obtained with an industrial laser power of 70% of the original.

Using the new method, the team made prototypes of electrodes used to split water into oxygen and hydrogen, as well as graphene supercapacitors capable of storing large amounts of energy. As Rukuan Ye of Rice University said,

“Our LIG graphene electrodes have been coated with cobalt, phosphorus, nickel and iron compounds to increase their efficiency, which has a positive effect on the duration of their operation. This technology has a very wide range of applications. It can be used in collection technologies solar energy, artificial photosynthesis and a host of other areas."

Other interesting news:

▪ Processing carbon dioxide into rocket fuel

▪ OneXGPU graphics card with built-in SSD storage

▪ The car recognizes the owner by fingerprint

▪ Mobile phone Ericsson K850i

▪ New ATX specification from Intel

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the website Residual current devices. Selection of articles

▪ article On the visibility of distortions. The art of audio

▪ article Why is the marathon distance 42 km 195 m? Detailed answer

▪ article Functional composition of EriCsson TVs. Directory

▪ Article Lighting. Directory

▪ article Snake in a basket. Focus Secret

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