In order to achieve accurate control of the water level in the container, it is proposed to use AT89S52 as the main control chip, and the 24-bit high-precision A/D conversion chip HX711 processes the changes in the weak voltage signal output by the weighing sensor and converts it into a digital signal. The digital signal converted by ADHX711 is converted into the corresponding water level value and displayed on the LCD screen 12864 through software. The test results show that the error between the water level display value and the actual value is ≤0.2 mm, and the error between the set water level value and the actual value is ≤0.4 mm. The experimental results show that the system has good test stability and high accuracy.
With the widespread application of water tanks in modern life, such as domestic water storage, solar water heater water storage equipment, etc., if manual control is used, it is not only inefficient and cumbersome to operate, but also easy to cause "empty tank" and "overflow" phenomena. Based on this, this paper uses a single-chip microcomputer to design a master-slave water level control system. The slave is a water level controller. The host can remotely control the slave through the serial communication port. At the same time, it can read and display the water level setting value and current water level value of the slave, and can also remotely modify the water level setting value of the slave.
1 Working principle of single chip microcomputer water level control system
The system uses AT89S52 single-chip microcomputer as the control chip of the master and slave machines, and the 24-bit high-precision A/D conversion chip Hx711 processes the changes of the weak voltage signal output by the weighing sensor and converts it into a digital signal. The digital signal converted by ADHX711 is converted into the corresponding water level value and displayed on the LCD screen 12864 through software. The water level control device is shown in Figure 1, and the water level control system is shown in Figure 2.
The system uses a ruler as a measuring tool for actual values; the host button module is used to set the water level in the water tank; the host display module displays the water pump status, water tank water level value, and current water level value; the serial port module transmits data and control signals; the slave display module displays the same status as the host display module.
2 System Test
According to the water level control device in Figure 1 and the water level control system block diagram in Figure 2, a master-slave water level control system was designed and manufactured. This system was used for data testing, and the test results are shown in Table 1.
As can be seen from Table 1, there is a certain error between the set water level value and the water level display value and the actual water level value. The main reasons are: (1) The scale used by the system is not a high-precision scale and has a certain error. (2) The human eye has visual accidental errors when distinguishing small distances. (3) In the program, the chip has calculation errors when processing floating-point data.
3 Conclusion
The system uses AT89S52 single-chip microcomputer as the main control chip, and the 24-bit high-precision A/D conversion chip HX711 processes the changes in the weak voltage signal output by the weighing sensor, and obtains good results. The test results show that the error between the water level display value and the actual value is ≤0.2 mm, and the error between the set water level value and the actual value is ≤0.4 mm. The results show that the system has good test stability, high precision and low cost, and has certain application value in water level automatic control technology.
Previous article:Design of optical fiber transmission of multi-channel analog, digital and pulse signals based on single chip microcomputer
Next article:Design of multifunctional boiler controller based on 12864 LCD module as display
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- SigFox Protocol
- TA0CCR0 interrupt of MSP430F6638
- The difference between circuit breaker control power supply and operating power supply
- [CY8CKIT-149 PSoC 4100S Review] + UART serial port usage
- Sub-library: Summary of official Chinese technical documents for electronic compass sensors
- Got a high-end product, Audi LiDAR
- How can modular underwater robots quickly adapt to the most dangerous underwater missions? VideoRay and VICOR give you the answer!
- Detailed explanation of the BQ25618/9 dedicated switch charging chip for TWS true wireless headset charging compartment
- Looking for chip model, ST silk screen 504
- Silergy GaN fast charging evaluation board test report