Specific implementation functions
The system consists of STC89C51 microcontroller + LCD1602 liquid crystal display + L298N control module + DC motor + DS18B20 temperature sensor.
Specific functions:
(1) Realize L298N to control the motor and use LCD1602 to directly and clearly display the temperature;
(2) Control the motor speed based on the measured temperature (using the motor to simulate the air conditioning variable frequency system);
(3) In automatic mode, the higher the temperature, the higher the duty cycle and the faster the speed. In manual mode, the motor speed can be controlled by pressing buttons.
design background
In recent years, with the rapid development of the air conditioning industry, it has greatly occupied the market. Compared with fans, air conditioners have powerful cooling functions and can quickly and effectively reduce the ambient temperature. However, there are also many problems with air conditioning. For example, it is easy to get air conditioning disease if you blow it for a long time in summer, and it is easy to catch a heat cold due to the imbalance of indoor and outdoor temperatures; at the same time, because it is forced cooling, the elderly and children are not able to bear it, and it is easy to breed bacteria when the air is not circulated indoors for a long time when using air conditioning, and the air conditioning consumes a lot of energy. Therefore, it is very important to reasonably control and use air conditioning. With the development of science and technology and the improvement of people's living standards, household electrical appliances tend to be automated, intelligent, low-power, environmentally friendly and humanized, and intelligent temperature-controlled air conditioners controlled by microcomputers have emerged.
In order to solve the above problems, this paper designs an air conditioning temperature control system based on a single-chip microcomputer, taking advantage of the characteristics of the single-chip microcomputer, which is small and multifunctional, can realize a variety of design requirements, and is applied in many fields. This system uses a high-precision integrated temperature sensor, controlled by a single-chip microcomputer, can display the real-time temperature, and adjust the frequency conversion system of the air conditioner according to the temperature to realize air conditioning control, improve the intelligence and humanity of the air conditioner, and save electricity.
hardware design
The figure shows the hardware design of this system. Specifically, the hardware circuit consists of the following modules:
(1) Single-chip microcomputer minimum system. It is used to drive and control other modules to achieve the overall function. It uses the AT89C51 single-chip microcomputer as the core chip, supplemented by a reset circuit and a crystal oscillator circuit;
(2) Button module. It consists of three buttons to switch between automatic and manual modes and control the motor speed (acceleration and deceleration).
(3) Display module. The real-time temperature value measured by DS18B20 is displayed on the LCD1602 liquid crystal display;
(4) Motor and its drive module. The operation of the air conditioner inverter is simulated by the number of revolutions of the motor.
software design
According to the design requirements of this article, on the basis of hardware circuit design, the specific functions that need to be implemented through software programming are:
(1) Drive each module to work and realize clear display of LCD1602;
(2) Button setting function. The interactive single-pole double-throw switch is used to switch between automatic and manual states, and the other two button switches are used to control the motor speed (acceleration and deceleration);
(3) Realization of temperature detection function. Realize real-time detection and display of ambient temperature;
(4) Motor drive and control. Realize motor speed control based on temperature.
The specific design process is shown in the figure.
Schematic
The schematic diagram of this system was designed using Altium Designer19, as shown in the figure.
program
This design uses KEIL5 software to implement program design, as shown in the figure.
Simulation Implementation
This design uses protues8.7 software to implement simulation design, as shown in the figure.
Previous article:28-Smart curtain design based on 51 single chip microcomputer
Next article:26-Simple temperature controlled fan based on single chip microcomputer
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- MicroPython Hands-on (35) - Experience the Mini Game
- With simple wiring configuration, a single-stage stepper motor can be easily driven as a two-stage stepper motor
- Recommend a good book
- [Raspberry Pi 3B+ Review] Installation Process
- UBLOX M8N module one chip cannot be recognized
- About AGC PDF
- Popular Science: Talking about Carrier Aggregation
- Which software is good for EDA design PCB now?
- 【McQueen Trial】Infrared remote control test
- RP2040 Stamp Micro Handheld Terminal