设计简介:
项目名:蓝牙智能家居
项目编号:mcuclub-jj-028
单片机类型:STC89C52
具体功能:
1、通过按键来开关加湿器,空调,热水器,灯,门,窗帘,报警器;
2、通过继电器来控制加湿器,空调(制冷片),热水器(加热片),门锁;
3、通过步进电机转动进行窗帘的开和关;
4、通过蓝牙连接手机,可以在手机上控制。
5、通过光敏电阻检测光照值,当开灯时,光照越低,灯越亮
总字数:11558
摘要:
针对智能家居当前研究状况,发现大多数智能家居系统存在很多缺陷,例如无法实时监控、及时发现问题、监控成本较高、无法实现远程控制。为了解决这些问题,改进智能家居实时监控性能迫在眉睫。本设计采用单片机配合传感器技术,设计一款智能家居环境监测系统,对加湿器、空调、热水器,灯、门、窗帘、报警器等对象进行调控,从而维持室内环境的舒适性。本设计采用模块划的设计思路,采用STC89C52单片机作为主控制器,采用步进电机正反转模拟窗帘的打开和关闭,采用四个继电器分别自动控制加湿器、空调(制冷片)、热水器(加热片)、门锁的开关;采用9个按键分别手动控制加湿器、空调、热水器、门,窗帘、报警器、灯(客厅、卧室、卫生间)的开关;采用3个指示灯模拟客厅、卧室、卫生间的照明灯;当监测到居家环境异常时,采用报警器进行报警提醒用户;采用蓝牙进行无线通信,实现远程控制功能。通过各部分元器件相互配合,共同完成智能家居系统的监测和报警功能。最后,对整个家居系统进行实物制作和系统调试,调试结果表明,该系统的控制功能反应灵敏、稳定性强,符合消费者对智能家居监控系统的需求。
关键词:STC89C52;智能家居;传感器;蓝牙;测控
Abstract:
According to the current research status of smart home, it is found that most smart home systems have many defects, such as unable to real-time monitoring, timely detection of problems, high monitoring cost, remote control cannot be realized. In order to solve these problems, it is urgent to improve the real-time monitoring performance of smart home. This design uses single chip microcomputer with sensor technology, design a smart home environment monitoring system, humidifier, air conditioning, water heater, lights, doors, curtains, alarms and other objects to control, so as to maintain the comfort of the indoor environment. This design adopts the design idea of module division, using STC89C52 single chip microcomputer as the main controller, using the stepper motor positive and negative rotation to simulate the opening and closing of the curtain, using four relays respectively to automatically control the humidifier, air conditioning (refrigeration sheet), water heater (heating sheet), door lock switch; The switch of humidifier, air conditioner, water heater, door, curtain, alarm, lamp (living room, bedroom, toilet) is manually controlled by 9 keys. Using 3 indicators to simulate the living room, bedroom, toilet lights; When the home environment is abnormal, the alarm is used to remind the user; Bluetooth wireless communication, remote control function. Through the cooperation of each part of the components, the monitoring and alarm function of the intelligent home system is completed. Finally, the whole home system for physical production and system debugging, debugging results show that the control function of the system responsive, strong stability, in line with consumer needs for intelligent home monitoring system.
Key words: STC89C52; Smart home; Sensor; Bluetooth; Measurement and control
目 录
1 绪论 2
2 系统方案设计 5
3 硬件电路设计 8
4软件电路设计 14
5实物调试 19
总结 24
参考文献 25
附录 27
致谢 35