Infrared remote control intelligent solar water heater control system based on STC89C52

Publisher:钱币之歌Latest update time:2014-12-16 Source: 21icKeywords:STC89C52 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Preface

With the continuous reform and innovation of energy-saving technology in society, solar energy has become a green label in the sustainable development strategy of the new era, and solar water heaters have become an indispensable device in our daily life. However, the solar water heaters sold in shopping malls now generally have problems such as complex circuits, high costs, no protection functions, easy to cause pipe freezing and cracking, heating belts are prone to fire, and cumbersome operation, which makes solar water heaters prone to fire, leakage and waste of electricity in winter. The system function has a lot of new pipe freezing and cracking, and heating belts are prone to fire. The advanced technologies introduced by this system, such as automatic water supply, automatic emptying, infrared remote control, etc., just solve the above-mentioned series of safety hazards such as pipe freezing and cracking, easy to cause fire, leakage and waste of electricity, which is convenient to use and saves energy.

1 Basic structure and function of the system

The system hardware design selects STC89C52 as the main control chip. The hardware design involves the following aspects: temperature sensor information acquisition circuit, water level simulation circuit, reset button circuit, AD conversion circuit, clock display circuit and infrared remote control receiving circuit, etc. The temperature sensor is used to collect circuit information, the water level sensor collects water level information, the AD converter transmits the information to the single-chip microcomputer for transmission, and the clock chip displays the clock on the LCD screen. We can also use the infrared remote control to adjust the time and alarm, automatically fill water and other functions, and can also save electricity by turning off and on the LCD screen at any time. As shown in Figure 2, the functions that the system can achieve are as follows: accurate temperature and water level display function; LCD display time and date; low water level automatic alarm and automatic water filling function; automatic emptying function; infrared remote control control solar water heater function.

Infrared remote control intelligent solar water heater control system based on STC89C52

2 System Hardware Design

2.1 Acquisition Circuit

The acquisition circuit is divided into water level and temperature acquisition circuit and AD conversion circuit. The temperature acquisition circuit uses NTC series MF11 type 101. The temperature acquisition circuit includes a temperature thermistor and a conditioning circuit, as shown in Figure 4. The water level measurement circuit uses a resistive water level sensor connected to a conditioning circuit, as shown in Figure 4. OP07 is an operational amplifier, which we use as a follower here to improve the anti-interference ability and the ability to protect the circuit. The AD circuit uses the ADC0832 dual-channel 8-bit analog-to-digital conversion chip.

Infrared remote control intelligent solar water heater control system based on STC89C52

2.2 Main control circuit

We chose the simplest and most practical control chip STC89C52 microcontroller, and the system function pin allocation diagram is shown in Figure 4. [page]

2.3 Display Circuit

The display circuit includes an indicator light circuit, an LED liquid crystal display circuit, a buzzer alarm circuit, and a clock display circuit. The indicator light circuit is shown in C in Figure 4. P1.0 to P1.3 respectively display insufficient water, moderate, saturated, and alarm. The LED liquid crystal display circuit is shown in A in Figure 4. The liquid crystal adopts 1602 type, and 6 to 14 of the liquid crystal are connected to P0.0 to P0.7 of the single chip computer. The clock display circuit is shown in B in Figure 4, and 5 to 7 are connected to P1.4 to P1.6.

2.4 Automatic water pipe emptying circuit

Infrared remote control intelligent solar water heater control system based on STC89C52

2.4.1 Automatic water supply circuit

As shown in Figure 5, when the water tank needs to be filled with water, the microcontroller gives IR VLAVEN a low level, which is driven and amplified by ULN2803 (as shown in part D in Figure 4), so that the relay is turned on, the LED tube is lit, the switch is closed to turn on the 220V voltage, and the solenoid valve A works. The function of automatic water filling is realized. When IR VLAVE IN is a high level, the solenoid valve A does not work and stops filling water. In this way, the function of automatic water filling is realized.

2.4.2 Automatic drain circuit

Under normal circumstances, the drain solenoid valve B is closed, and the drain switch is also closed. The pipeline is equivalent to a vacuum pipe with water inside. When the weather is cold in winter, the water in the pipeline is easy to freeze, causing the pipeline to crack. As shown in Figure 5, when we open the upper drain solenoid valve B and the lower drain switch, a lot of air suddenly enters the pipeline, and the water in our pipe flows down due to the characteristics of air convection. Since the lower drain switch is indoors, we can use a manual switch, and the water outlet switch is only controlled by a solenoid valve B.

3 System Software Design

The system software is written in C language, compiled by Keil uVision4, and debugged and run after simulation by Protues. The software is mainly designed for the information acquisition unit, host computer part, display part, and infrared remote control part of the system. The information acquisition includes temperature, water level, and AD conversion program. The host computer part includes automatic emptying part and automatic water filling part. The display part mainly operates the clock and LCD program. The temperature and water level programs adopt the table lookup method design idea, and the voltage values ​​corresponding to different temperatures are made into tables and compared in turn. This article mainly introduces the software design ideas of infrared and automatic actuators.

3.1 Infrared software design

The software part adopts NEC protocol, which includes: boot code, 16-bit user code (address code), 8-bit command code (data code) and its inverse code. The boot code consists of a 9ms carrier waveform and a 4.5ms off time. The user code is 16 bits in total, the lower 8 bits are output first, the higher 8 bits are output later, and the 8-bit key data code and its inverse code. The system determines the difference of the remote control buttons according to the different data codes, and sets different key functions according to the different buttons.

3.2 Automatic control unit software design

The automatic control unit includes automatic water filling, automatic emptying, automatic alarm, automatic water level display light, etc. The switch function is mainly realized by changing the state of the IO port of the single-chip microcomputer. When the water level is lower than 25%, low-voltage automatic water filling is adopted, the buzzer alarms, and the insufficient water light is on. When the water level is higher than 25% and lower than 50%, the automatic water filling light is off, and the insufficient water light is on. When the water level is higher than 50% and lower than 75%, the moderate light is on, and when the water level is higher than 75% and lower than 100%, the full water level light is on and the automatic water filling is stopped. The automatic control function is realized by controlling the state of the water filling solenoid valve by the single-chip microcomputer.

4 Summary

The solar controller designed in this paper is green and environmentally friendly. It uses the cheapest NTC thermistor MF11 and 101 water level resistor sensor to measure temperature and water level information: it receives signals through the single-chip microcomputer STC89C52, adds the DS1302 clock display function; it displays a series of information such as temperature, water level, time, etc. through the LCD, saving costs. In view of the fact that traditional solar designers cannot automatically fill water and are prone to freezing in winter, the features of automatic filling and automatic emptying are added. According to people's usage habits, a humanized design idea is adopted, and infrared remote control technology is used to achieve artificial short-distance wireless control to prevent electric shock.

Keywords:STC89C52 Reference address:Infrared remote control intelligent solar water heater control system based on STC89C52

Previous article:Design of automatic measurement system of electrostatic probe based on single chip microcomputer
Next article:Sit-up counter based on single chip microcomputer

Recommended ReadingLatest update time:2024-11-17 06:30

STC89C52RC MCU Extra Chapter | 05 - Encapsulating NOP instructions into microsecond delay functions
The delay function is an essential function in the development of single-chip microcomputers, and it can be found in every project. Although it looks insignificant, in some timing control situations, using a little delay can often solve big problems. Especially for some modules, microsecond delay is often required, su
[Microcontroller]
STC89C52 interrupt system
The interrupt system of 80C51 has 5 interrupt sources (80C52 has 6), 2 priorities, and can realize two-level interrupt nesting.       According to its schematic diagram, it can be seen that 80C51 has a total of 4 registers (TCON, SCON, IE, IP), and the attachment has their detailed register example diagrams.     
[Microcontroller]
STC89C52 interrupt system
Diode (STC89C52): Write a program to control the first diode to flash according to the time
1. Hardware Design   2. Software Design 1. Program Features Write a program to control the first diode to flash according to the time. For example, flash every 150ms.   2. Program source code #include reg52.h   #define uchar unsigned char #define uint unsigned int   sbit led0 = P1^0;   v
[Microcontroller]
Diode (STC89C52): Write a program to control the first diode to flash according to the time
DS18B20 and ADC0832 are used together
#include #define uchar unsigned char sbit DQ=P1^4; volatile data temp_data ={0x00,0x00}; uchar data display ={0x00,0x00,0x00,0x00,0x00}; unsigned char code ditab ={0x00,0x01,0x01,0x02,0x03,0x03,0x04,0x04, 0x05,0x06,0x06,0x07,0x08,0x08,0x09,0x09} ; //Common cathode digital tube uchar code
[Microcontroller]
DS18B20 temperature sensor 64-bit ROM address read (STC89C52)
I am working on a temperature monitoring system recently. I use the DS18B20 digital temperature sensor. I need to use 64-bit ROM address matching. I searched some information online and wrote a program to read the 64-bit ROM address of DS18b20 and display it on LCD1602. I would like to share it with you. If there is an
[Microcontroller]
Design of car grille scanning light based on single chip microcomputer STC89C52RC
Abstract: With the continuous improvement of living standards, cars have gradually entered thousands of households. The pursuit of fashion and individuality has made car owners do their best to dress up their cars. The LED car grille scanning light can not only show personality, but also serve as a warning. It even has
[Microcontroller]
Design of car grille scanning light based on single chip microcomputer STC89C52RC
Design of a STC89C52RC programmer based on CH340T
  The programmer communicates with the PC host computer through the USB interface. Users only need to perform simple operations on the PC host computer GUI to erase, program, verify and encrypt STC 89C/S51XX/52XX series microcontrollers. After repeated tests on STC89C52RC and other microcontrollers, the programmer has
[Microcontroller]
Design of a STC89C52RC programmer based on CH340T
Analysis of LED dimming system circuit based on STC89C52/MAX1771
The arrangement of the LEDs and the specifications of the LED light source determine the basic driver requirements. The main function of an LED driver is to limit the current flowing through the LED under a certain range of operating conditions, regardless of how the input and output voltages vary. The most common m
[Power Management]
Analysis of LED dimming system circuit based on STC89C52/MAX1771
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号