基于51单片机的PWM调光灯设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

摘要目前市场上的LED台灯,作为LED的绿色护眼光源产品而进行开发和研究,还是作为我国的照明推广家用型产品。随着时代的变迁,社会的发展,节能和环保这一主题已经是当今社会必要发展的目标了、健康与人们的日常生活变得密不可分,科技的进步,也使家电更加智能化和人性化。台灯作为家电中基础的,也是必不可少的,所以,提出PWM调光灯设计。本设计主要是将STC89C51RC单片机作为控制核心,这是将多种功能集于一体的智能LED台灯。该台灯具有手动、自动两种调节亮度的方式;主要的产品功能有呼吸模式、红外遥控操作等等。硬件的设计部分为单片机控制模块、按键控制模块、照明显示模块、光敏感应模块、LED灯指示报警模块、远程遥控模块等组成。单片机主要控制芯片型号选用STC89C51RC,LED指示报警模块选择三种颜色不同的LED指示灯来显示三种不同的工作模式,通过按键控制模块进行调整和控制工作模式和LED亮度程度,照明模块选用草帽型12白光LED,光敏感应模块采用可以对光敏信号的采集芯片ADC0832,并利用PWM调光技术对LED进行光度的自动调节。可以通过红外遥控远距离无线遥控,通过单片机C语言编程进行软件设计,将所需的设计要求全部可以进行功能的控制。关键词LED台灯光度PWM调光自动调节2AbstractLEDlampasLEDgreenlightingproducts,asthecountrytopromotetheuseofgreenlightingproducts.Withthedevelopmentofthetimes,energysavingandenvironmentalprotection,healthandthepeopledailylifeareinseparable,theprogressofscienceandtechnology,alsomakeshomeappliancesmoreintelligentandhumanized.Thelampashomeappliancesbased,soisalsoessential,,putforwardPWMdimmingthelightsdesign.ThedesignisbasedonSTC89C51RCSCMascontrolcoreandmultifunctionsinoneoftheintelligentLEDlamp.Thetablelamprealizesthebrightnesswithmanual,automatictwotypesofregulation;respiratorymodefunction,butalsohasthefunctionofinfraredremotecontrol.ThedesignofthehardwarepartconsistsofMCUcontrolmodule,keyboardmodule,lightingmodule,photosensitivemodule,LEDmodule,remotecontrolmoduleinstruction.TheMCUmaincontrolchipSTC89C51RC,LEDindicatingmodulewiththreekindsofdifferentcolorsofsmallLEDtoindicatedifferentworkingmodes,brightnessthroughthekeymoduletoadjusttheworkingmodeandtheLEDlightingmodule,using12strawhattypewhiteLED,photosensitivemoduleusesADC0832chipimplementationofasignalacquisition,automaticregulationandluminosityofLEDusingPWMdimmingtechnology.Throughtheinfraredremotecontrol,wirelessremotecontrol,softwaredesignoftheMCUClanguageprogramming,integratedcontrolfunctionsarerealizedby.KeywordLEDlampdimmingautomaticallyadjustluminosityofPWM3目录第1章绪论..................................................................................................................51.1课题研究背景.........................................................................................................51.2系统方案的提出.....................................................................................................51.2.1LED优势......................................................................................................51.2.2方案简述.......................................................................................................6第2章系统方案的选择...............................................................................................72.1控制芯片的选择方案.............................................................................................72.1.1STC89C51RC...............................................................................................72.1.2AVR单片机..................................................................................................72.1.3FPGA............................................................................................................82.1.4主控制芯片的确定.......................................................................................82.2照明模块的选择.....................................................................................................82.2.1三极管驱动...................................................................................................82.2.2PWM芯片控制............................................................................................92.2.3照明方案的确定.........................................................................................10第3章硬件设计........................................................................................................103.1单片机STC89C51芯片简介.............................................................................103.2LED驱动电路....................................................................................................143.3按键控制电路.......................................................................................................173.4LED指示电路....................................................................................................183.5自动控制电路........................................................................................................183.5.1光敏电路...................................................................................................183.5.2ADC0832模数转换.................................................................................19第4章软件设计........................................................................................................204.1KeilC51..............................................................................................................204.2Protel99SE..........................................................................................................214.3程序流程图...........................................................................................................22第5章调试................................................................................................................245.1硬件调试............................

1 / 39
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功