In some actual industrial sites, DC voltages with high voltage stability requirements are often used, such as the intelligent charging power supply of the DC battery of the car, etc. However, due to the complex loads in the industrial site, there are many unstable factors that cause the voltage to fluctuate up and down, that is, ripple. In theory, ripple is the AC component in the DC voltage. Its components are relatively complex and pose a certain threat to the power grid system. In order not to affect the normal operation of the load, it is necessary to accurately measure the voltage in real time.
The DC voltage ripple test system designed in this paper has a maximum range of 600 V and an accuracy of 1%. It can meet the application of most DC power occasions and has a certain monitoring effect on some DC power-consuming equipment with higher requirements.
1 System Principle
The overall block diagram of the system is shown in Figure 1.
The test system mainly includes range selection, voltage separation, A/D sampling, data processing and display circuit. The system is divided into six ranges. The main feature is that the range used is automatically switched according to the size of the sampled voltage; secondly, the voltage separation circuit, the system uses an optical coupler to isolate the power supply voltage from the test system to ensure the safety of the measurement.
The working principle is as follows: first, the voltage data must be measured, and the range is automatically selected according to the voltage size. Then, the voltage and ripple are measured separately. For the ripple, it is necessary to collect multiple times to take its average value, and then send it to the single-chip microcomputer for data processing after sampling and conversion through the A/D circuit, and output through the LCD and printer.
2 Hardware Design
The system mainly adopts single-chip microcomputer technology, and the hardware structure includes: data acquisition module, data processing control module (CPU), data output (printer) module, data display (LCD) module, and auxiliary circuit module. The basic structure diagram is shown in Figure 2.
[page]
2.1 Measurement of DC voltage and ripple
2.1.1 Voltage measurement
The voltage terminal to be measured and the voltage sensor LV25 are connected to the control system, and the microcontroller controls the voltage measurement through the relay. When the relay is turned on, the measurement starts. The sensor converts the voltage to be measured and sends it to the A/D chip for conversion and then to the microcontroller for processing, and finally outputs it to the display system, as shown in Figure 3.
2.1.2 Ripple measurement
The system uses PKD01 and PKD02 chips to collect the peak-to-peak value of the ripple. Since the ripple voltage is at the mV level, the signal is very weak and must be sent to OP07 for amplification before being sent to the A/D chip for conversion, as shown in Figure 4.
In order to ensure the accuracy of the measurement, the system uses the method of multiple measurements to find the average value to filter out some erroneous values and ensure the accuracy of the measurement.
[page]
2.2 Data CollectionThe data collection uses TI's 12-bit switched capacitor successive approximation analog/digital converter. This A/D conversion chip is small in size, fast in conversion speed, and has an operating temperature of 0-70°C, which can adapt to indoor or outdoor working environments.
The connection circuit between the microcontroller and the A/D chip is shown in Figure 5. A 104 capacitor is connected in series to the power supply end in the figure to ensure signal stability.
2.3 Data output
The system uses LCD display, including date, time, DC voltage value, ripple value; the data that needs to be saved is output by printer. The system output is controlled by three 74HC 573 expansions of CPU P0. 74HC573 is an octal three-state non-inverting transparent latch. When its latch enable terminal is high, the latch of these devices is transparent to the data (that is, the output is synchronized); when the latch enable terminal is low, the data that meets the setup time and hold time will be latched. 74HC573 has a protection circuit to prevent damage by high static voltage or electric field. The system uses 74HC573_00, 74HC573_01, and 74HC573_02 to control the LCD control interface, data interface, and printer interface respectively.
3 Software Design
The system uses STC89C52 as the core to control the entire system. STC89C52 is a low-voltage, high-performance CMOS 8-bit microprocessor with 8 KB flash programmable and erasable read-only memory (FPEROM). The device is manufactured using STC's high-density non-volatile memory manufacturing technology and is compatible with the industrial standard MCS-51 instruction set and output pins. STC89C52 can be programmed in a conventional way. It combines a general-purpose microprocessor and FLASH memory. In particular, the repeatedly erasable FLASH memory can effectively reduce development costs.
During program design, 5 ms timed interrupt acquisition is used to collect field voltage signals each time an interrupt arrives. When the obtained voltage signal meets the specified conditions, the valid data is retained, sent to the microcontroller for processing, and then output for display. The main control module program is written in C language, and the specific flow chart is shown in Figure 6.
The system must first initialize the CPU, mainly to reset the initial value and working mode of the timer according to actual needs. After the initialization is completed, it enters the working cycle program. First, the key pressing flag is judged. If it is true, it will be transferred to the key setting processing program module. By calling the key processing program, the upper and lower limits of the voltage and ripple values are set, the date and time are set, and the stored voltage and ripple values are queried. If the key pressing flag is otherwise, the data acquisition module is called to send the collected values to the CPU. The CPU processes the collected data to remove the false and retain the true, discard the false data, and send the true data to the data processing module for display and storage.
4 Conclusion
The ripple measurement system uses a voltage sensor, a peak detector and a single-chip microcomputer to realize the measurement of high-voltage DC voltage and ripple. It has the advantages of intelligence and simple operation. This system has been applied to actual industrial sites and has achieved good economic benefits.
Previous article:Design and implementation of three-dimensional rotating LED based on STC11F02E
Next article:Introduction to the method of programming the ISP protocol of STC microcontroller
Recommended ReadingLatest update time:2024-11-16 14:42
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Is there any MEMS or sensor expert?
- MSP430 Registers
- GPIO Features of TMS320C6748
- Simplifying isolated CAN, power interfaces for HEV 48-V systems
- Active and passive filters
- Can I use LPS22HB without connecting SD0/SA0 to anything?
- App Client
- Limitations of Flash_API for C2000 Series (28335) DSP
- EEWORLD University - Power stage protection, current sensing, efficiency analysis and related TI designs
- Amplifier