智能台灯设计

 2023-03-10 09:03

论文总字数:21367字

摘 要

单片机在现代社会是一个非常常用的并且很重要的一个电子元器件,它有很多的优点,包括它的体积非常小而且价格十分的廉价,但是功能却恰恰相反,不同类型的单片机能够完成各种各样的智能化的操作,功能十分的多样化而且十分强大。单片机现在已经是智能化产品中必不可缺的一部分了。

STC89C51RC单片机是一种被广泛应用的程序控制编辑器,因它低廉的价格和有效的工作模式而被市场广泛的追求。STC89C51RC单片机的编程方法极易掌握,拥有多个外接端口,内部可读可写的程序存储器,并具有闪存的作用,同时它还具有时钟模块,UART模块等等。

现阶段从事室内学习和生活的人们都需要一个良好的照明环境。为方便人们使用,本课题设计一种基于单片机的智能台灯,具有坐姿矫正功能、端正孩子的读写姿势、防止用眼疲劳等功能。比如:近距离读写控制,如果判断写字的人超过给定阈值,发出报警; 自动记录用眼时间,当超过一定时间时,发出提醒,直接关灯。当有人靠近台灯的时候,等就会亮,当人离开的时候,台灯在15秒内无法检测到有人在周围,台灯就会灭,所有的过程都是智能化的控制,不需要人来手动的操作。

关键字:单片机;智能;台灯;红外感应

Design of Intelligent Table Lamp

Abstract

SCM as a member of the computer family, it is highly integrated, powerful, versatile, especially small, cheap, low energy consumption, light weight, strong anti-interference ability, high reliability and easy to use and so unique A little and widely used. And in the field of artificial intelligence has become increasingly prominent. The use of single-chip home appliances to the traditional intelligent.

STC89C51RC microcontroller is a widely used program control editor, because of its low price and effective mode of work by the market wide pursuit. STC89C51RC single-chip programming method is easy to master, has a number of external ports, internal readable and writable program memory, and has the role of flash memory, it also has a clock module, UART module and so on.

At this stage in the indoor study and life of people need a good lighting environment. To facilitate the use of people, the subject requires the design of a smart meter based on the single-chip, with sitting correction function, correct child reading and writing posture, to prevent eye fatigue and other functions. For example: close read and write control, if the judge to write the person over a given threshold, issued an alarm; automatically record the time with the eye, when more than a certain time, issued a reminder, directly off the lights. People to light (refers to the lack of light and some people in the case of the table), people take time 15 seconds automatically turn off the lights, the daytime indoor light is good when the lights off, the whole sense of light control.

Key words: single chip; intelligent; desk lamp; infrared sensor

目 录

摘 要 Ⅰ

Abstract Ⅱ

第一章 引言 1

1.1单片机概述 1

1.2智能台灯概述 1

第二章 系统方案设计 3

2.1.系统的组成 3

2.2系统的设计原理 3

2.3主要部分原理介绍 3

第三章 硬件电路设计 5

3.1硬件电路方案设计 5

3.2单片机模块 5

3.3人体感应模块 8

3.4红外接近感应模块 9

3.5 电源模块 9

3.6 数码管显示模块 10

3.7 开关模块 10

3.8 蜂鸣器模块 11

3.9 LED控制模块 11

3.10 AD转换模块 12

第四章 软件设计 13

4.1 软件流程图 13

4.2 计时流程图 14

4.3显示模块流程图 15

第五章 调试与结果 16

5.1软件介绍 16

5.2调试总结 16

5.3软件调试 16

5.3 调试结论 17

第六章 总结 18

致谢 19

参考文献 20

附录 21

第一章 引言

1.1单片机概述

STC89C51RC单片机是一种被广泛应用的程序控制编辑器,因它低廉的价格和有效的工作模式而被市场广泛的追求。STC89C51RC单片机的编程方法极易掌握,拥有多个外接端口,内部可读可写的程序存储器,并具有闪存的作用,同时它还具有时钟模块,UART模块等等。

单片机作为一个广泛是用的器件,有如下的一些功能特性:工作时钟周期分为两种,分别为6时钟和12时钟两种的机器周期;工作电压也分为两种,一种正常工作电压为5V型,实际工作电压区间为5.5V~3.3V;另一种正常工作电压为3V型,实际工作电压区间为3.8V~2.0V;工作频率范围区间为0~40MHz,而实际的工作频率可以达到48MHz;可应用的程序空间的容量为8K字节(1字节=8bit)。 RAM存储器空间容量为512字节。外接输入输出(I/O)端口有32个。它可独立编程,可在相应管脚接触下载管脚,再通过相应数据线连接电脑在uVision平台上编写功能程序下载。具有EEPROM的功能。同时还具有看门狗功能,可降低功耗,可做中断。它含3个16位定时器/计数器。 具有5个中断优先级。全双工串行通信端口两个。

剩余内容已隐藏,请支付后下载全文,论文总字数:21367字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;