"STC89C52单片机家用红外遥控系统设计与实现"
160 浏览量
更新于2024-01-09
收藏 1.43MB DOC 举报
本研究的目标是基于STC89C52单片机设计一种家用红外遥控系统。在科技发展的背景下,单片机已经广泛应用于各个领域。本文选用了STC89C52作为控制芯片,DS1302作为时钟芯片,DS18B20作为温度传感器,HS0038红外一体接收头作为红外接收器。本系统通过接收和处理遥控器按键信号来矫正时钟时间。除此之外,本设计还具备定时和设定温度上下限的功能,当达到预设时间时,系统会执行开关灯命令;当温度低于温度下限或高于温度上限时,系统会执行开空调命令。为了实现这些功能,本系统采用了两个大功率电磁继电器作为开关器件,并将所有外设数据显示在LCD12864液晶屏上,以形成一个良好的用户界面。硬件电路图和PCB布局图使用Protel99SE进行绘制,软件开发环境为KeilV3。最终,本设计通过将电路焊接在万用板上,并经过调试,各项功能得以正常实现。
关键词:红外遥控、单片机、DS1302、DS18B20、LCD12864
Summary:
This study aims to design a household infrared remote control system based on the STC89C52 microcontroller. With the development of technology, especially microelectronics, the application of microcontrollers has penetrated into various aspects of life. In this paper, the STC89C52 microcontroller is selected as the control chip, DS1302 as the clock chip, DS18B20 as the temperature sensor, and HS0038 infrared integrated receiver as the infrared receiver. This system receives and processes remote control button signals to correct the clock time. In addition, this design also includes timing and setting temperature upper and lower limits. When the preset time is reached, the system executes the switch command for the light. When the temperature is below the lower limit or above the upper limit, the system executes the air conditioning command. Two high-power electromagnetic relays are used as the switching devices. All external device data is displayed on the LCD12864 screen to form a user-friendly interface. The hardware circuit diagram and PCB layout are drawn using Protel99SE, and the software development environment is KeilV3. Finally, this design is implemented by soldering the circuit on a universal board and after debugging, all functions have been successfully implemented.
Keywords: infrared remote control, microcontroller, DS1302, DS18B20, LCD12864
2023-07-01 上传
2021-11-20 上传
2021-09-18 上传
2023-06-30 上传
xinkai1688
- 粉丝: 388
- 资源: 8万+