您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 其它相关文档 > 基于51单片机的智能台灯设计
摘要LED台灯作为LED绿色照明光源产品,作为国家绿色照明推广使用的产品。随着时代发展,节能环保、健康与人们的日常生活变得密不可分,科技的进步,也使家电更加智能化和人性化。台灯作为家电中基础的,也是必不可少的,所以,提出PWM调光灯设计。该设计是以STC89C51RC单片机为控制核心的集多种功能于一体的智能LED台灯。该台灯实现了光亮度具有手动、自动两种调节方式;具有呼吸模式功能,还具有红外遥控功能。硬件设计部分分为单片机控制模块、按键模块、照明模块、光敏模块、LED指示模块、遥控模块等多个部分。单片机主控制芯片选用STC89C51RC,LED指示模块选用三种不同颜色的小LED来指示不同的工作模式,通过按键模块来调整工作模式和LED的亮度,照明模块选用12草帽型白光LED,光敏模块选用ADC0809芯片实现对光敏信号的采集,并利用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,photosensitivemoduleusesADC0809chipimplementationofasignalacquisition,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照明方案的确定.........................................................................................102.3遥控模块的选择...................................................................................................102.3.1超再生无线模块.........................................................................................102.3.2红外遥控....................................................................................................112.3.3遥控方案的确定.........................................................................................11第3章硬件设计........................................................................................................123.1单片机STC89C51芯片简介.............................................................................123.2LED驱动电路....................................................................................................163.3按键控制电路.......................................................................................................183.4LED指示电路....................................................................................................193.5自动控制电路........................................................................................................193.5.1光敏电路...................................................................................................203.5.2ADC0809模数转换.................................................................................203.6遥控电路................................................................................................................21第4章软件设计........................................................................................................234.1KeilC51........................................
本文标题:基于51单片机的智能台灯设计
链接地址:https://www.777doc.com/doc-6841226 .html