资源描述:
《基于-51单片机的声控和光控路灯的设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、
2、 毕业论文声控和光控路灯的设计系别专业年级学号姓名指导教师
3、摘要随着科技的飞速发展,自动化已经运用在了生活中的方方面面,而路灯就是一个很好的例子。如何能够利用51单片机作为中央处理器实现路灯的节能是本设计的主要内容。通过书本知识学习、指导老师的辅导以及资料文献的查阅,确定51单片机为主要芯片,然后因为要实现声光控功能,那就必须使用到光敏电阻和驻极体话筒电阻来实现光和声音转换为电信号,利用单片机最小系统模块、声控模块、光控模块等几大模块为主的硬件来实现本次设计。本设计分别通过利用声控和光控模块的驻极体话筒和光敏电阻将声音信号和光信号通过转换为51单片机能够识别的电信号来实
4、现声光控功能。通过运用所学知识和必要绘图仿真编程软件绘制出系统原理图、整体电路图、程序流程图,完成系统电路设计、光敏传感器模电变换设计、声控整流滤波放大并进行程序编写、仿真、硬件调试等,终于设计实现了利用51单片机使白天由光控电路起作用控制灯不亮,晚上由声控电路起作用控制开关闭合灯亮,并且延时一段时间熄灭。从而达到节能环保的目的,最终达到本次论文的要求。关键词:51单片机光控电路声控电路光敏电阻驻极体话筒
5、DesignOfAcousticAndElectricLampABSTRACTWiththerapiddevelopmentofscienceandtechnology
6、,automationhasbeenusedineveryaspectoflife,butthestreetisagoodexampleof.Howtorealizetheenergysavinglampasthecentralprocessoristhemaincontentofthisdesignusing51single-chipmicrocomputer.Throughthebookknowledgelearning,teacher'sguidanceandliteraturedataaccess,todeterminethe51microcontrolleras
7、themainchip,thenbecauseoftheneedtoachievesoundandlightcontrolfunction,itmustusethephotosensitiveresistanceandtheelectretmicrophoneresistancetorealizetheconversionoflightandsoundintoelectricalsignals,usetheMCUminimumsystemmodule,voicemodule,opticalmoduleseveralmodulesofhardwaretoimplementt
8、hedesign.Thedesignofsoundandlightcontrolmodulerespectivelythroughtheelectretmicrophoneandphotosensitiveresistancewillsoundsignalsandopticalsignalsareconvertedtoelectricalsignalsby51singlechipcomputercanrecognizetoachievesoundandlightcontrolfunction.Throughtheuseofdrawingthesystemprinciple
9、diagram,thewholecircuitdiagram,programflowchartoftheknowledgeandthenecessarygraphicssimulationsoftware,completethesystemcircuitdesign,molddesign,thephotosensitivesensorelectrictransformvoicerectifierfilteramplifierandprogramming,simulation,
10、hardwaredebugging,finallydesignedandimplementedb
11、yusing51singlechipcomputerthatdaybythelightcontrolcircuitfunctioncontrollightdoesnotshine,thenightbythesoundcontrolcircuitfunctioncontrolswitchlights,andadelaytimeout.Soastoachievethepurposeofenergysavingandenvironmentalprotection,ultimatelyachievetherequirements.Ke