With the rapid development and maturity of wireless communication and information sensing technology, it has become possible to connect objects into the Internet of Things through information sensing equipment and networks to achieve services such as automatic identification, positioning, tracking, monitoring and management of objects. The application of Internet of Things technology in the national economy is becoming more and more extensive. In recent years, it has attracted widespread attention from academia and industry. It has become a global hot issue. Many countries have raised the development of the Internet of Things to a national strategic level. This article proposes an application design based on the GSM wireless network, which combines the user's mobile phone and car air conditioner into a small Internet of Things through a temperature sensor. The air conditioner in modern cars is generally controlled manually. The air conditioner can only be turned on or off when the driver enters the cab. This makes people feel abnormally hot or cold when they just enter the car in hot summer or cold winter because the air conditioner is not turned on. Therefore, it is on the agenda of people's daily life to design and manufacture equipment that can monitor the temperature in the car and remotely control the opening of the car air conditioning system in advance according to the monitored temperature. This design is proposed to meet this requirement.
1 System composition and working principle
The system consists of two parts. One part is the temperature acquisition and relay control part centered on the STC89C52RC microcontroller, and the other part is the remote data transmission part composed of the GSM mobile communication network, TC35I and the user's mobile phone. The system block diagram is shown in Figure 1.
Figure 1 System block diagram
The working principle of the system is: the user sends a temperature query command through the mobile phone, and the command is sent to the TC35I installed in the car in the form of a short message through the GSM short message service center. After receiving the command, the module transmits the command to the STC89C52RC microcontroller through the serial port. The microcontroller starts DS18B20 to collect the temperature information in the car, and then transmits the collected temperature information back to the user's mobile phone through the microcontroller and TC35I through the GSM short message service center. If the temperature in the car is too high or too low, the user can control the relay switch in the car through the command to turn on the air conditioner in the car to achieve the effect of cooling or heating.
2 System Hardware Design
The hardware design part of the system includes microcontroller module, DS18B20 temperature acquisition module, relay circuit switch control module, power supply module and TC35I module.
2.1 Microcontroller Module
The microcontroller module mainly completes temperature acquisition, relay switch control and serial communication with TC35I. Considering the driving ability, power consumption and cost performance of the module, the system uses the STC89C52RC chip of Hongjing Company, which has the advantages of low power consumption, strong control and anti-interference ability, and high cost performance. The microcontroller has 8 KB FlashROM memory, 512 B RAM and 2 KB EEPROM memory. It also integrates watchdog circuit and UART. It has the functions of in-system programming and in-application programming. It does not require a special emulator and programmer. Therefore, the selection of this controller can bring great convenience to the design of this system.
2.2 Temperature acquisition module
The temperature acquisition module in the system uses the high-precision and high-reliability DS18B20 temperature sensor produced by DALLAS. It has the characteristics of small size, low hardware cost, strong anti-interference ability and high precision. It uses single bus data communication, full digital temperature conversion and output, with a maximum resolution of 12 bits, an accuracy of ±0.5℃, and a detection temperature range of -55℃~+125℃, so it can meet the design requirements of this system. The connection circuit between DS18B20 and microcontroller is shown in Figure 2.
Figure 2 Connection circuit diagram of STC89C52RC microcontroller module and DS18B20
2.3 Relay switch control module
The relay switch module is composed of TLP521-4, ULN2803, SRD-12VDC and transistors. The signal output by the microcontroller is sent to the TLP521-4 optocoupler chip through the switch circuit composed of transistors, and then amplified by the ULN2803 Darlington tube to drive the SRD-12DC relay, thereby achieving the function of controlling various switches of the air conditioner. The circuit connection diagram of the relay switch control module and the microcontroller is shown in Figure 3.
Figure 3 Relay control module circuit diagram
2.4 TC35I Module
The TC35I module is a dual-band 900/1800 MHz highly integrated GSM module launched by Simens. It is compact in design and has very low power consumption, and can provide cost-effective solutions for many communication applications. It supports EGS900 and GSM1800 dual-band, and the data transmission content supports voice, data, short message and fax services. The communication interface uses RS232 (two-way transmission of instructions and data), and the power supply uses a single power supply voltage of 3.3 V~5.5 V. The scope of application includes: low-power communication equipment for portable computers, telemetry and remote sensing, remote information processing and communication and other industrial fields. The circuit connection diagram of TC35I and microcontroller in this system is shown in Figure 4.
Figure 4 TC35I module circuit connection diagram
2.5 Power Module
The system power module uses two chips, LM78L05 and LM2941S, to convert the external 12 V DC power supply voltage into the 5 V and 4.2 V voltages required by the system. The power connection circuit diagram is shown in Figure 5.
Figure 5 Power supply connection circuit diagram
3 System software design
The software module part of the system mainly includes the software design of GSM communication module, DS18B20 temperature acquisition module and relay switch control module. The system workflow is shown in Figure 6.
Figure 6 System workflow diagram
3.1 Programming of GSM Communication Module
The program of the GSM communication module is to send AT commands related to GSM short messages through the serial port of the microcontroller by TC35I to interact with the user's mobile phone. The specific workflow is shown in Figure 7. In addition, the AT commands [2, 5] executed in this system are shown in Table 1.
Table 1 AT commands executed in the system
3.2 Programming of DS18B20 Temperature Acquisition Module
The programming of the temperature acquisition module is also mainly completed by the microcontroller through a single bus to complete the initialization of DS18B20 and read the temperature information according to the instructions sent by the user's mobile phone and feed it back to the user's mobile phone. The work flow chart is shown in Figure 8.
The software design of the relay switch control part is mainly based on the switch instructions sent by the user from the mobile phone, which is achieved by the microcontroller by setting or resetting the relevant ports.
Figure 7 TC35I workflow diagram
Figure 8 DS18B20 workflow diagram
This paper proposes a design method for a remote automobile air-conditioning temperature control system based on the GSM short message center. After actual production and debugging, it is verified that the system can operate stably and reliably. The system is also easy to expand and has a long wireless transmission distance, and can be widely used in the field of remote control.
Previous article:New automotive safety application: wireless remote door opening
Next article:Car anti-theft tracking design
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- 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
- There was an earthquake
- [Mill MYB-YT507 development board trial experience] tkinter Button learning
- Learn MSP430G2755 Main Bootloader UART Porting
- Award-winning live broadcast | ADI motor control solutions
- [Xianji HPM6750EVKMINI Review] 1# Hardware Introduction and Development Environment Construction
- How can an electric mosquito swatter kill mosquitoes without harming people? Is it because the voltage is high and the time is short? Isn't that related to ESD?
- Competition sharing, Xiaobai unboxing
- Tips for beginners in electronics
- FPGA design solutions for various EDA tools
- I need help~What is the interface level standard of DAC8812ICPW?