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

Ammeter voltmeter for laboratory power supply. 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

This device is designed to work with a power supply, the description of which is published in [1], however, it can also be connected to another similar unit. It not only shows the output voltage and load current of the unit, but also performs several additional functions that make the laboratory power supply more reliable and facilitate practical work with it.

The main function of the proposed ampervoltmeter (hereinafter AVM) - measuring the output voltage and load current of the power supply - is supplemented by the ability to indicate the set threshold for the operation of the current protection of the unit, assembled according to the description in [1]. This eliminates the need to load the unit with a given maximum current during the process of setting this threshold, and then carefully "catch" the desired position of the control knob. The microcontroller available in the AVM easily calculates the current threshold value from the voltage measured by it on the engine of the variable resistor R5 (see Fig. 1 in [1]) and the resistance of the current sensor resistor R13 (ibid.). The calculated value is displayed on the LCD.

Ammeter voltmeter for laboratory power supply
Fig. 1

Based on the results of measuring the voltage at the input and output of the unit and the load current, the values ​​of the load power and the power dissipated by the control transistor of the unit are calculated and displayed. In addition, the temperature of the heat sink of this transistor is controlled. According to the results of its measurement, the fan blowing the heat sink is automatically turned on and off. And in case of significant overheating, the power supply is disconnected from the network.

An additional function of the AVM is to limit the surge of the charging current of the smoothing capacitors of the rectifier supplying the unit, which occurs when it is connected to the network. In addition, the AVM provides a self-calibration mode.

The dimensions of the device only slightly exceed the dimensions of the LCD used in it. Depending on the selected display mode, the output voltage, V, and the load current, A, are displayed on its screen (Fig. 1); load power, W (Fig. 2); current protection threshold, A (Fig. 3); temperature of the heat sink of the regulating transistor, оC, power dissipated by it, W (Fig. 4). If during operation any of the parameters that are not currently displayed on the screen has changed, its value appears on it, and after a while the previous display mode is restored.

Ammeter voltmeter for laboratory power supply
Fig. 2

Ammeter voltmeter for laboratory power supply
Fig. 3

Ammeter voltmeter for laboratory power supply
Fig. 4

The AVM scheme is shown in fig. 5. Its main components are input voltage dividers and noise suppression filters, a DD1 microcontroller containing an ADC and performing all the necessary calculations, as well as a ten-bit LCD HG1.

Ammeter voltmeter for laboratory power supply
Rice. 5 (click to enlarge)

AVM is controlled using two buttons. The SB1 button switches the display modes around the ring in the one shown in fig. 1-4 sequences. The SB2 button is designed to turn on and off the power supply with which the AVM works.

Since the ADC built into the microcontroller is capable of measuring only a voltage that does not exceed the voltage of its supply, voltage dividers are installed at two ADC inputs. The first, consisting of resistors R1 and R3, reduces the output voltage of the power supply by ten times. The second divider consists of resistors R2 and R10 and has a division factor of 20. It reduces the voltage supplied to the power supply from the rectifier to an acceptable value for the ADC. The measurement of this voltage is necessary to calculate the power dissipated in the control transistor.

Dividers are not needed in the circuits for measuring the load current and the current protection threshold, since the voltage at the current sensor R13 [1] and the variable resistor R5 [1] does not exceed the value allowed for the ADC.

The measured voltages are applied to all used ADC inputs of the microcontroller through a low-pass filter with a cutoff frequency of about 7 Hz. This is R4C1 in the output voltage measurement channel (UO), R5C2 in the load current measurement channel (Iн), R6C3 in the channel for measuring the current protection threshold (IMax), R7C4 in the temperature measurement channel and R9C5 in the rectified voltage measurement channel Uvypr needed to reduce the error associated with the ripple of the measured voltage.

The results of the ADC operation processed by the program are displayed on the HG1 indicator, which is connected to the microcontroller via the I interface2C. Since, according to specification I2C, interface signal outputs must be open-collector (drain), the program configures the PB0 and PB2 lines of the microcontroller accordingly. Load for them are two resistor assembly DR1.

Two more resistors of the same assembly maintain a high level at the inputs PB1 and PB3 when the buttons SB1 and SB2 connected to them are not pressed. Pressing any of them sets the corresponding input low. A high level at the input of the microcontroller resetting is supported by resistor R10.

The microcontroller pins used to load the program into its memory are routed to the X3 connector, which, if necessary, is connected to the programmer. Transistor VT1, by signals from the microcontroller, controls the backlight of the LCD screen HG1.

The measured signals are supplied by a flexible cable, on which the socket X1 is installed. The signals for controlling the fan, turning on the power supply, as well as controlling the current limiting circuit for charging the smoothing capacitors of the rectifier are output to pin block X2.

A supply voltage of 5 V is applied to pins 5 and 15 of the microcontroller. Since the built-in ADC is powered from pin 15, an L1C9 filter is included in the circuit of this pin to eliminate interference with its operation. Through the capacitor C7, the pulse component of the current consumed by the microcontroller is closed.

AVM is mounted on a double-sided printed circuit board (Fig. 6). Before installation, you need to "ring" it and remove the detected unetched jumpers between the conductors. It is recommended to install a panel for the microcontroller on the board, since in case of programming errors of microcontrollers of the AVR family, there are often cases of disruption of their connection with a conventional serial programmer. AVM.

Ammeter voltmeter for laboratory power supply
Rice. 6 (click to enlarge)

Since it is difficult to metallize the board holes at home, the leads of the parts must be soldered on both sides of it. In this case, the panel for the microcontroller must be a collet, otherwise it will not be possible to solder its conclusions from the part installation side. Through the holes shown in Fig. 6 filled, in the absence of metallization, it is necessary to insert and solder short pieces of bare wire on both sides.

Metallization can also be performed using hollow copper rivets (percussion caps), inserting them into the holes of the board and expanding them on both sides. Sets of such pistons are sold, for example, under the trademarks LPKF EasyContac and BG9.S rivets, but they are quite expensive.

The board has holes for mounting it and places for installing buttons SB1 and SB2, as well as another button not shown in the diagram (it is designated SB3 and can be used as an SB1 button in [1] through an intermediate relay) and the HL1 LED [1]. The contacts of the SB3 button and the outputs of the LED are connected to the X5 connector, which is also not shown in the diagram.

If necessary, the dimensions of the board can be reduced to 65x42 mm by cutting it according to the one in fig. 6 dashed line. In this case, the buttons SB1 and SB2 are located in any convenient place and connected to the X4 connector with a wire harness or a piece of flat cable.

Voltage divider resistors (R1-R3, R10) - C2-23 with a tolerance of ±1%. If the resistor R2 with a nominal value of 191 kOhm cannot be found, it can be made up of two values ​​of 180 and 10 kOhm. The remaining resistors are C1-4-0,125. NTC thermistor RK1 - B57703. The 5A332J resistor assembly can be replaced by the domestic HP-1-4-4M from resistors with a nominal value of 3,3 kOhm. Capacitors - ceramic K10-17 or imported. Choke L1 - EC-24 100 uH.

The AVM uses connectors BLD-6 (X1), PLD-6 (X2), PLD-10 (X3), PLS-4(X4, X5). Buttons - any clock with a suitable pusher length, for example TS-A6PS.

Indicator - MT-10T11 [2] with any alphabetic and digital indices, except 3V0. Indicators with this index are designed for a supply voltage of 3 V and will not work at 5 V. The MT-10T12 indicator will also work, but it is twice the size.

The 2N7000 field effect transistor can be replaced with any other n-channel insulated gate transistor with a threshold voltage of no more than 3 V. Even an npn bipolar transistor can be used, but this will lead to more power dissipated on it and lower backlight brightness.

You can try to replace the ATtiny26-16PU microcontroller with the ATtiny26L-PU, but its operation is guaranteed at a quartz resonator frequency of no more than 8 MHz. The microcontroller program was developed in the Atmel AVR Studio environment and written in assembly language. You can load it into the microcontroller memory using the proprietary AVR ISP mk II programmer directly from the development environment, or use the AVReAl program [3] and the Altera ByteBlaster adapter [4]. The pin assignment of the X3 connector corresponds to this particular adapter. It is not excluded the use of other programmers for microcontrollers of the AVR family. The codes from the avm.hex file are entered into the FLASH memory of the microcontroller, and from the avm.eep file into its EEPROM. The configuration of the microcontroller must correspond to fig. 7.

Ammeter voltmeter for laboratory power supply
Fig. 7

The program operation algorithm consists in cyclic polling of five measurement channels with a frequency of 50 Hz. When measuring in the voltage and current channels, the reference voltage of the ADC is 2,56 V and is supplied from a source built into the microcontroller. When measuring temperature, the microcontroller supply voltage (5 V) is exemplary.

The results of the ADC operation are added to the ring buffer, which contains 25 readings, each of which occupies two bytes (the ADC of the microcontroller is ten-bit). In fact, a history of the last five readings is stored for each channel. To reduce the fluctuation of readings in each channel, the average of the last five readings is calculated [5]. After processing, the values ​​of current and voltage are represented by integers lying in the range 0-255, and the value of the least significant digit of voltage is 0,1 V, and current is 0,01 A. Therefore, the measurement limits for voltage and current are, respectively, 25,5 V and 2,55 A.

The value of the rectified voltage at the input of the power supply [1] is not displayed on the indicator, but is used to calculate the power dissipated by this power supply.

Correction coefficients for each channel (except for the temperature channel), taking into account the spread of the ADC parameters and voltage divider resistors, are stored in the EEPROM of the microcontroller. By default, they are all equal to 1, but as a result of the self-calibration procedure, they can take values ​​from 0 to 2-1/64 in increments of 1/64.

The temperature can take a value from -55 to +125 ° C and is displayed on the LCD in whole degrees Celsius. To calculate it, a table transformation of the result of the ADC operation is used. If the measured temperature value is greater than 45 оC, a command to turn on the fan is generated if it is less than 40 оC, the fan is turned off. If the temperature exceeds 90 оWith the emergency shutdown of the power supply, and the LCD displays the inscription "Overheat".

To start the self-calibration mode, it is necessary to use the SB2 button to signal the power supply off (AVM remains on), then press the SB1 button and, while holding it, press SB2 again. After that, the following exemplary voltages are applied to the X1 AVM connector: to the input Uvypr (pin 6) - 40 V, input UO (cont. 1) - 20 V, to inputs Iн(cont. 2) and IMax (pin 5) - 0,5 V, which corresponds to the voltage drop on the current sensor (R13 in [1]) at In = 2 A. Voltage 7 IN.

During calibration, the channels are indicated on the indicator by letters in the leftmost familiarity: U - output voltage, I - load current, L - protection operation current, t - temperature, r - rectifier voltage. For example, before calibrating the output voltage channel, the inscription shown in fig. 8.

Ammeter voltmeter for laboratory power supply
Fig. 8

The channels for calibration are selected one by one by pressing the SB1 button, and with the help of SB2 the calibration process of the selected channel is started. The inscription "Saved" will inform you about its completion and writing the result to EEPROM, and after another 2 s you can see the value of the corresponding parameter calculated using the selected coefficient on the indicator. After that, you can go to the next channel by pressing the SB1 button or repeat the calibration of the previous one by pressing SB2.

By displaying the value of the output voltage on the indicator, the AVM takes into account the voltage drop across the current sensor, subtracting it from the measurement result. Therefore, upon completion of the calibration, while the reference voltages from the AVM inputs are removed, 19,5 V (0,5 V less than the reference voltage of 20 V) and 2 A (corresponding to a drop in voltage 0,5 V on the current sensor).

AVM is connected to the power supply unit [1] according to the scheme shown in fig. 9. Resistor R13, according to the description of the block, is made up of three one-watt resistors with a nominal value of 1 ohm, connected in parallel, and has a resistance of 0,33 ohms. You need to add one more resistor of the same to them, reducing the total resistance to 0,25 ohms. This simplifies the calculations performed by the AVM microcontroller.

Ammeter voltmeter for laboratory power supply
Fig. 9

The same diagram shows a rectifier serving as an input voltage source of the power supply on transformer T1 and diodes VD1-VD4, equipped with a current limiting unit for charging the smoothing capacitor after switching on. For its operation simultaneously with the signal that opens the transistor VT1, which leads to the operation of the relay K1 and the supply of mains voltage to the mains winding of the transformer, the microcontroller also sends a signal that opens the phototransistor of the optocoupler U1. As a result, the transistor VT2 remains closed after the unit is turned on, and the charging current of the smoothing capacitors of the rectifier flows through the resistor R5 that limits it.

The AVM microcontroller program monitors the rate of voltage change across these capacitors. As soon as it decreases sufficiently (this means that the capacitors are almost completely charged), the signal that opens the phototransistor of the optocoupler U1 will be removed. As a result, the gate-source voltage of the transistor VT2 will increase. Its drain-source channel will open. Since the resistance of the open channel is only 0,018 ohms, any noticeable current through the resistor R5 no longer flows and does not affect the further operation of the device.

Transformer T1 - TTP-60 2x12 V. Schottky diodes 90SQ045, from which the bridge rectifier is assembled, can be replaced by 1N5822.

The AVM itself is powered by a separate source U2 with a voltage of 5 V, the main requirement for which is a minimum of ripples. The microcontroller consumes no more than 20 mA, the indicator backlight consumes about 100 mA, another 100 mA is needed for relay K1 (TRIL-5VDC-SD-2CM).

The AVM printed circuit board file in Sprint Layout 5.0 format and its microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2014/02/avm.zip.

Literature

  1. Vysochansky P. Simple laboratory power supply 1...20V with adjustable current protection. - Radio, 2006, No. 9, p. 37.
  2. Liquid crystal module MT-10T11. - melt.com.ru/docs/MT-10T11.pdf.
  3. AVReAl - AVR ISP programmer. - real.kiev.ua/avreal/.
  4. Adapters that AVReAl can work with. - real.kiev.ua/old/avreal/ru/adapters.html.
  5. AVR222: 8-point Moving Average Filter. - atmel.com/Images/doc0940.pdf.

Author: V. Rybakov

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

Icis smart glasses from Laforge Optical 20.02.2014

"Glasses are first and foremost a fashion accessory," Laforge Optical decided. And if the developers from Laforge are seriously determined to create a technological device that stands out from the competition, waving to push the Google Glass gadget off the pedestal, then they should do this by hitting the most vulnerable part of the creation from Google - its design.

Icis smart glasses, available now for pre-order, will not only embody the technological advancement of their owner, but also show that the owner of the device also has good taste and understands modern fashion. As for the technical characteristics, Icis will have the classic functionality for this class of devices: a camera (it will be absent in the beta versions of the gadget), a microphone, a speaker and a touchpad, and the glasses will act as displays, while covering the maximum field of view available for glasses. A friendly interface will automatically convert notifications from smartphones and other mobile gadgets running iOS, Android or Windows operating systems into an informative visual image on the lenses. The image resolution of the final Icis model with the Bold index will be 800x600 pixels, but the prototypes available from the middle of this year will have more modest parameters.

"Our main competitor is Google Glass, but the approach chosen by Laforge Optical specialists in creating Icis differs radically from the concept of competing companies. We are focused on creating a gadget that strangers would not pay close attention to," the CEO and Corey Mack, founder of Laforge Optical.

"Smart glasses" Icis are a symbiosis of modern fashion trends in accessories and the main technological solutions used in devices like Google Glass. True, in this case, the owner of such a gadget will not need to constantly look away at the display, which is not very conveniently located in the upper right corner - the entire surface of the Icis lenses will become an interactive display.

One of the innovative tasks set before the developers of Laforge Optical is to solve the problems of software compatibility of Icis with various platforms. For this, the SocialFlo application was created, which is responsible for sending notifications from installed applications on your mobile device and operator network. You just need to download the software to your smartphone and sync it with the Icis smart glasses via Bluetooth.

The creators of the device noted that their gadget will have three main modes of operation: normal, active (with a limit on the number of notifications displayed) and the "Drive" mode, which will filter all transmitted information that is not related to the process of driving a car. Icis will also go on sale in three different versions, giving the buyer the right to choose exactly the style that he most sympathizes with.

As for the cost of new items, here the price is differentiated depending on the type of kit and version of the device. By leaving a deposit of $ 220 to participate in the testing program, you can get acquainted with the early prototype of the gadget. If you want to become the owner of the basic Icis Early Beta Kit (IEBK) immediately and without any obligations, you will need to pay $820 for the device. In this case, you will be able to start full-fledged testing in the summer of this year. At the end of 2014, the next modification will appear - Icis Early Kit (IBK) at a price of $420, and you can upgrade the previous version of "smart glasses" to the IEK version by sending your gadget back to the manufacturer. It will also be possible to exchange the Icis Early Kit for the already serial version of Icis, paying an additional $200 for this.

The final release, which implies the launch of the Icis Bold model, is scheduled for early 2015. Here, buyers can already choose from three stylistic solutions for the gadget. The technical characteristics of the novelty will also change: the resolution of the lenses will be equal to 800x600 pixels, while in IEBK and IBK it was, according to preliminary information, 640x480 pixels.

Other interesting news:

▪ Photovoltaic glass in a residential building

▪ Plastic with memory

▪ Alibaba AI Copywriter

▪ Recycling plastic into graphene with the release of pure hydrogen

▪ Advertising poster look counter

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the Garland website. Article selection

▪ Video Capture Basics article. video art

▪ article Who was the first hairdresser? Detailed answer

▪ article Sowing rye. Legends, cultivation, methods of application

▪ article Digital thermostat on the PIC16F628 microcontroller. Encyclopedia of radio electronics and electrical engineering

▪ superman article. 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