毕业论文声控和光控路灯的设计系别专业年级学号姓名指导教师摘要随着科技的飞速发展,自动化已经运用在了生活中的方方面面,而路灯就是一个很好的例子。如何能够利用51单片机作为中央处理器实现路灯的节能是本设计的主要内容。通过书本知识学习、指导老师的辅导以及资料文献的查阅,确定51单片机为主要芯片,然后因为要实现声光控功能,那就必须使用到光敏电阻和驻极体话筒电阻来实现光和声音转换为电信号,利用单片机最小系统模块、声控模块、光控模块等几大模块为主的硬件来实现本次设计。本设计分别通过利用声控和光控模块的驻极体话筒和光敏电阻将声音信号和光信号通过转换为51单片机能够识别的电信号来实现声光控功能。通过运用所学知识和必要绘图仿真编程软件绘制出系统原理图、整体电路图、程序流程图,完成系统电路设计、光敏传感器模电变换设计、声控整流滤波放大并进行程序编写、仿真、硬件调试等,终于设计实现了利用51单片机使白天由光控电路起作用控制灯不亮,晚上由声控电路起作用控制开关闭合灯亮,并且延时一段时间熄灭。从而达到节能环保的目的,最终达到本次论文的要求。关键词:51单片机光控电路声控电路光敏电阻驻极体话筒IIDesignOfAcousticAndElectricLampABSTRACTWiththerapiddevelopmentofscienceandtechnology,automationhasbeenusedineveryaspectoflife,butthestreetisagoodexampleof.Howtorealizetheenergysavinglampasthecentralprocessoristhemaincontentofthisdesignusing51single-chipmicrocomputer.Throughthebookknowledgelearning,teacher'sguidanceandliteraturedataaccess,todeterminethe51microcontrollerasthemainchip,thenbecauseoftheneedtoachievesoundandlightcontrolfunction,itmustusethephotosensitiveresistanceandtheelectretmicrophoneresistancetorealizetheconversionoflightandsoundintoelectricalsignals,usetheMCUminimumsystemmodule,voicemodule,opticalmoduleseveralmodulesofhardwaretoimplementthedesign.Thedesignofsoundandlightcontrolmodulerespectivelythroughtheelectretmicrophoneandphotosensitiveresistancewillsoundsignalsandopticalsignalsareconvertedtoelectricalsignalsby51singlechipcomputercanrecognizetoachievesoundandlightcontrolfunction.Throughtheuseofdrawingthesystemprinciplediagram,thewholecircuitdiagram,programflowchartoftheknowledgeandthenecessarygraphicssimulationsoftware,completethesystemcircuitdesign,molddesign,thephotosensitivesensorelectrictransformvoicerectifierfilteramplifierandprogramming,simulation,hardwaredebugging,finallydesignedandimplementedbyusing51singlechipcomputerthatdaybythelightcontrolcircuitfunctioncontrollightdoesnotshine,thenightbythesoundcontrolcircuitfunctioncontrolswitchlights,andadelaytimeout.Soastoachievethepurposeofenergysavingandenvironmentalprotection,ultimatelyachievetherequirements.Keywords:51SinglechipLight-operatedcircuitSound-controlcircuitphotoresistorElectretmicrophoneII目录第一章绪论1.1论文选题的目的和意义.........................................11.2国内外关于该论题的研究现状和发展趋势.........................1第二章论文设计概述2.1论文主要要求.............................................32.2论文设计思路及说明.......................................32.3论文设计方案.............................................32.4方案选择.................................................4第三章系统硬件设计3.1AT89C52.....................................................53.2单片机的原理.................................................53.3驻极体话筒...................................................73.4光敏电阻.....................................................83.5双电压比较集成器LM393.......................................93.6系统主要模...