资源描述:
《基于51单片机的彩色光源的设计与实现 毕业设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于51单片机的彩色光源的设计与实现摘要随着国民经济的发展,人们渐渐追求更高的生活水平,更美观的生活环境、娱乐环境等等,已经不仅仅局限于对无色灯光的追求,彩色LED灯也已经逐步走入寻常百姓的生活中来。伴随着科技的发展,LED的技术不断提高,用普通的发光二极管组成的彩色二极管光源被广泛应用于舞台灯、广告灯、电视墙背景灯等各个方面,并很快在各领域占有一席之地。本设计研究了一款简单的可调制彩色光源系统。大家都知道,自然界中的绝大多数颜色都可以通过R(红)、G(绿)、B(蓝)三原色按照不同的比例合成而来,按照此理论,本设计便采用了三种颜色(R、G、B)的LED
2、灯,并通过单片机设置的按键来控制当前三原色各个灯光的高电平占空比,从而改变三种颜色灯光的亮暗程度,而将三色灯通过棱镜合成起来便可以得到任何一种颜色的灯光。彩色光源的设计灵感便由此而来。本文介绍了单片机的特点和功能,并与按键、显示器LCD组成一个简易的可调制光源系统,在Proteus仿真软件的基础上,给出了硬件电路图,软件流程图,主要的程序和实测结果。关键词:STC89C52单片机;显示器LCD;Proteus仿真软件;硬件电路。Designandachieveof51MCUofcoloredlightsourcesbasedonABSTRACTWith
3、thedevelopmentofthenationaleconomy,peoplegraduallypursuitofhigherlivingstandards,morebeautifullivingenvironment.Entertainmentenvironmentandsoon.Ithasnotonlylimitedtothepursuitofacolorlesslight,colorLEDlightshavealsobeengraduallyintoordinarypeoplelives.Withthecontinuousimprovemen
4、tofLEDtechnology.Colorlight-emittingdiodeordinarydiodelightsourceiswidelyusedinvariousaspectsofstagelights,advertisinglights,TVwallbackgroundlights,etc.Anditwillhaveaplaceinthevariousfieldssoon.Thedesignstudyofasimplecolorcanbemodulatedlightsourcesystem.Asweallknow,thevastmajori
5、tynaturalcolorscansynthesizedbyR(red),G(green)andB(blue)primarycolorsfromdifferentproportionsaccordingto,accordingtothistheory,thedesignwillbeadoptedinthreecolors(R,G,B)oftheLEDlights,andthroughtheMCUsetbuttontocontrolthecurrenthighlevelofthedutycycleofthethreeprimarycolorsofeac
6、hlighttochangehowlightordarkthelightsofthreecolors,andthethree-colorlightthroughtheprismsynthesisitcangetanycoloroflight.Designinspirationwillbetheresultingcolorofthelightsource.ThisarticledescribesthefeaturesandfunctionsoftheMCU,andwiththebuttons,LCDdisplayconsistingofasimpleli
7、ghtsourcecanbemodulatedsystem,basedontheProteussimulationsoftware.Thehardwarecircuit,softwareflowchart,themainprogramandthemeasuredresults.Keywords:STC89C52MCU;adisplayLCD;Proteussimulationsoftware;hardwarecircuit.I目录摘要IABSTRACTII1绪论11.1课题背景11.2国内外相关研究情况及研究意义11.2.1国内研究状况11.2.2国外
8、研究状况21.3课题的设计目的21.4课题的主要工作22系统概述32.1系统目标功能32.2系