摘要:随着社会的不断进步,人们对低碳生活逐步认识和接受,并从很多方面开始关注,尤其是在环保上做出了很多努力。因此,声光控制开关,在我们的低碳生活中,将起到重要作用。
本课题针对目前的情况而设计了一个基于单片机的路灯控制系统。该系统通过声音和光线来控制继电器的断开闭合,实现路灯的自动断开、闭合,其具有很强的适用性。该设计主要由STC89C52单片机、±12V和5V的电压源电路、声音的接收放大控制电路、光信号的接收放大控制电路以及继电器的驱动电路组成。用声光控制开关代替一般的开关,只有在天黑以后,并且有声音时才能使继电器导通,使得电路导通,否则延迟一段时间继电器就会自动断开,而白天开关总是断开的。测试结果证明该系统性能稳定、操作方便,具有较高的实用价值。76754
毕业论文关键词:单片机;声音控制;光控制;自动开关
Abstract:With the continuous progress of society, people gradually understand and accept low carbon life, and began to pay attention to many aspects, especially in environmental protection has made a lot of efforts。 Therefore, the sound and light control switch, in our low carbon life, will play an important role。
According to the present situation, this paper designs a street lamp control system based on single chip microcomputer。 The system through sound and light to control the disconnection of the relay, to achieve automatic disconnection of street lights, which has a strong applicability。 The design is mainly composed of STC89C52 microcontroller, + 12V and 5V voltage source circuit, sound receiving and amplifying control circuit, optical signal receiving and amplifying control circuit and relay driving circuit。 With sound and light control switch to replace the general switch, only after dark, and there are voices to relay turn-on, the circuit conduction, or delay a period of time relay can automatically cut off, and switch to daytime always disconnect。 The test results show that the system is stable and easy to operate, and has high practical value。
Key words: Single chip microcomputer Sound Control Light Control Automatic switch
目录
1 前言 5
2 系统方案设计 6
2。1 系统设计的原理框图 6
2。2 系统设计的原理框图解析 6
3 系统硬件设计 7
3。1 单片机最小系统设计 7
3。2 声控电路设计 9
3。3 光控电路设计 12
3。4 路灯开关控制电路设计 14
3。5 电源电路设计 16
3。6 小结 17
4 系统软件设计 18
4。1 简介 19
4。2 程序设计步骤 19
4。3 软件开发环境 19
4。4 主程序设计 21
4。5 声光信号采集程序设计 22
4。6 仿真调试 22
4。7 小结 25
结 论 26
参 考 文 献 26
致 谢 28
附录1