多功能台灯设计
- 格式:pdf
- 大小:1.22 MB
- 文档页数:38
I 多功能台灯设计 [摘要]随着能源的日益缺乏,节能技术快速发展,涌现出许多新型节能设备,其中LED占领了最大的市场份额。小到一个灯泡,大到数百平米的显示屏,都能看到LED的身影。LED具有耗能低、发热小、使用寿命长等特点。在生活中台灯随处可见,但传统的台灯普遍功能单一。本文从节能、智能调节等角度设计。 该多功能台灯是基于STC89C52RC单片机控制,集多种功能于一身。该台灯具备以下功能:能手动调光或者根据环境光自动调整;人到灯亮,人走灯灭;能感应与书本的距离,调整灯亮并在数码屏上提示用户注意台灯与书本的距离;报时;检测温度。硬件设计包含以下模块:STC89C52RC单片机控制;按键模块调整工作模式和LED的亮度;12个草帽型白光LED照明;光敏电阻采集信号,经ADC0832实现光敏信号的模数转换,并利用PWM调光技术对LED进行光度的自动调节;液晶屏显示;红外感应采用避障传感器、HC-SR04超声波传感器测距、DS1302时钟芯片等多个模块。采用单片机C语言编程进行单片机程序设计,综合实现了全部控制和显示功能。该设计可以在判断用户的位置自动进行灯的亮度调节,达到节能的目的,并汇集温度和时钟等功能于一身。 [关键词]单片机 LED 台灯 手动\自动调节 测距功能 II The intelligent LED desk lamp design based on single chip microcomputer [Abstract]With the lack of energy, energy saving technology has developed rapidly, and many new energy saving devices have emerged, among which LED has occupied the largest market share. Small to a light bulb, large to hundreds of square meters of the display, can see the figure of LED. LED has the characteristics of low energy consumption, low heat generation, long service life, etc.. In daily life, the desk lamp can be seen everywhere, but the traditional desk lamp universal function is single. In this paper, from the angle of energy saving, intelligent regulation, etc.. The LED intelligent desk lamp is based on STC89C52RC MCU control, set a variety of functions in one. The desk lamp has following functions: manual dimming or according to the ambient light automatic adjustment; people to light, people walk lamp; induction and the book of distance and adjusting lamp light and on the digital screen prompts the user to pay attention to the distance table with books; newspapers; temperature detection. Hardware design includes the following modules: stc89c52rc MCU control; automatic adjustment of the key module to adjust the working mode and the LED brightness; 8 a straw hat type white LED lighting; photosensitive resistance signal acquisition, the ADC0832 achieve photosensitive signal analog to digital conversion, and the PWM dimming technology luminosity of LED; LCD display; infrared sensor using the sensors for obstacle avoidance, hc-sr04 ultrasonic ranging sensor, DS1302 clock chip and other multiple modules. Single chip microcomputer C programming language programming, integrated implementation of all control and display functions. The design can determine the user's position automatically to adjust the brightness of the lights, to achieve the purpose of energy saving, and brings together the temperature and the clock and other functions in one. [Keywords]Single chip ,LED desk lamp ,manual and automatic adjustment ,distance measurement III 目录 引言............................................................................ 1 第1章 概论 ................................................................... 2 1.1 课题研究背景 ............................................................ 2 1.2 系统方案的提出 .......................................................... 2 1.2.1 LED优势 ...................................................................2 1.2.2方案简述 ...................................................................3 第2章 系统方案的选择 ......................................................... 5 2.1控制芯片的选择方案....................................................... 5 2.1.1 STC89C52RC ................................................................5 2.1.2主控制芯片的确定 ..........................................................5 2.2 照明模块的选择 .......................................................... 5 2.2.1 三极管驱动 ................................................................6 2.2.2 PWM芯片控制 ..............................................................6 2.2.3照明方案的确定 ............................................................6 2.3 本章小结 ................................................................ 6 第3章 硬件设计 ............................................................... 7 3.1 单片机STC89C52RC芯片简介 ............................................... 8 3.2 LED驱动电路............................................................ 11 3.3其他功能控制电路........................................................ 11 3.3.1 光敏电路 .................................................................12 3.3.2超声波测距模块 ...........................................................12 3.3.3 温度感应器 ...............................................................14 3.3.4 红外避障模块 .............................................................15 3.3.5 时钟模块 .................................................................16 3.3.6 ADC0832模数转换 .........................................................17 3.3.7 LCD1602液晶显示屏 ......................................................18 3.4原理图设计.............................................................. 18 3.5本章小结................................................................ 19 第4章 系统调试 .............................................................. 19 4.1 程序编写 ............................................................... 19 4.2 程序流程图 ............................................................. 20 4.3 硬件焊接 ............................................................... 21