基于单片机的智能台灯系统的设计(附程序代码,实物图,电路原理图)
无需注册登录,支付后按照提示操作即可获取该资料.
基于单片机的智能台灯系统的设计(附程序代码,实物图,电路原理图)(任务书,开题报告,论文15000字)
摘 要
随着智能手机的普及,给人们的生活带来了极大的便利,当前智能化技术在高新技术企业运用的越来越普遍,对于电子行业来说具有深远的意义。由于科技的进步与成熟,家用电器越来越智能化,目前已经应用于实际中的有智能洗衣机,智能空调,智能电磁炉等,而所有的智能化家用电器都有一个共同的特点,都是利用单片机作为中央控制单元结合了单片机的智能家用电器和普通家用电器相比,使用更方便,安全可靠性也更高,效率更高,最重要的是它们为能源节约提供巨大的帮助。
本文的研究目标是完成基于单片机的智能台灯系统的设计,并完成相应的硬件制作。本文从两个角度来研究课题:一是制定设计方案,该设计是以单片机为主控芯片,人体感应模块检测台灯周围是否有人,测距模块检测人体距离台灯的距离,显示模块显示台灯的基本信息,按键模块设定台灯倒计时长和测量距离,蜂鸣器报警模块用来提醒使用者纠正坐姿,温度检测模块检测环境的实时温度,灯光控制模块用来随环境亮度调节台灯亮度;二是制作硬件,根据所选择的硬件设计出程序。在本次设计中存在这如何有效提高提高视力保护以及对硬件电路准确调试的难点。
本文期望通过该电子硬件的制作和理论研究,能为后期进一步设计智能台灯并采取合理措施提高实力保护的有效性提供可靠和有效的数据来源和信息依据。
关键词:单片机 传感器报警 C语言 超声波
Design of Intelligent Table Lamp System Based on Microcontroller
Abstract
With the popularity of smart phones, people's lives has brought great convenience, the current intelligent technology in the use of high-tech enterprises more and more common for the electronics industry has far-reaching significance. Due to technological progress and maturity, Household appliances more and more intelligent, has been used in the actual smart washing machines, intelligent air conditioning, intelligent induction cooker, etc., all the intelligent household appliances have a common feature, are the use of Single-chip as a central control unit.With a single-chip smart home appliances and ordinary household appliances compared to the use of more convenient, safety and reliability are higher, more efficient, the most important thing is that they provide great help for energy conservation.
The goal of this paper is to complete the design of intelligent desk lamp system based on single chip microcomputer and complete the corresponding hardware production. This paper from two angles to study the subject: First, the development of design programs, the design is based on the microcontroller as the master chip, the human body sensor module to detect whether there is someone around the lamp, ranging module to detect the distance of the distance from the lamp, the display module shows the basic information of the lamp, the key module to set the countdown time and measurement distance, The alarm module is used to remind the user to correct the sitting position. The temperature detection module detects the real-time temperature of the environment. The light control module is used to adjust the brightness of the lamp with the ambient brightness.; Second, the production of hardware, according to the selected hardware design procedures. In this design, how to effectively improve the visual protection and improve the hardware circuit debugging difficult.
This paper hopes that through the electronic hardware production and theoretical research, we can provide a reliable and effective data source and information basis for further design of intelligent table lamp and take reasonable measures to improve the effectiveness of strength protection.
Keywords: single chip, sensor alarm, C language, ultrasonic
目 录
摘 要 I
Abstract II
第一章 引言 1
1.1 课题研究背景 1
1.2 国内外发展状况 1
1.3 研究的目的和意义 2
1.4 论文的组织结构 3
第二章 系统总体设计方案 4
2.1 设计任务要求 4
2.2 系统总体框架 4
2.3 系统设计思路 5
2.4 主要模块的方案选择 6
2.4.1 主控芯片的选择 6
2.4.2 LCD液晶显示屏的选择 7
2.4.3 测距传感器的选择 8
2.4.4 人体感应模块的选择 9
第三章 系统硬件的设计与实现 10
3.1 主控模块基本电路 10
3.2 人体感应模块电路 11
3.3 测距模块电路 13
3.4 显示模块电路 14
3.5 按键模块电路 15
3.6 电源供电模块电路 16
3.7 蜂鸣器报警模块电路 16
3.8 温度检测模块电路 17
3.9 语音提醒模块电路 17
3.10 灯光控制模块电路 18
第四章 软件系统的设计与实现 20
4.1 系统软件设计 20
4.2 单片机初始化程序设计 21
4.3.1 DS1820延时操作指令 22
4.3.2 DB1820读写取操作指令 23
4.4 LCD显示程序设计 23
4.4.1 设置LCD坐标 24
4.4.2 LCD1602初始化指令设置 24
第五章 系统调试与总结展望 25
5.1 硬件调试 25
5.2 软件调试 26
5.3 调试结果 26
5.4 结论与展望 28
致 谢 29
参考文献 30
附录一 原理图 32
附录二 实物图 33
附录三 源程序 34