1、 声光控路灯控制系统声光控路灯控制系统设计设计 摘摘 要:要:本文介绍了一个单片机控制模拟路灯控制系统的解决方案。本方案以 宏晶公司的 MCU 芯片 STC12C5410AD 为核心,加以简单的外围电路,实现了模拟 路灯控制系统所要求的全部技术内容。选用廉价的单片机芯片,还采用了廉价 的红外对射传感器,大大降低了系统成本。整个系统的电路简单,结构紧凑, 经过多次测试,证实该系统能长时间稳定工作,满足设计指标要求。 关键词:关键词:单片机;控制系统;恒流源;路灯 Abstract: This paper introduces a MCU control the simulated road la
2、mp control system solutions. The program to the Hong Jing MCU STC12C5410AD chip as the core, to be a simple peripheral circuit, realizes the simulation of street lamp control system requires all the technical contents. This is a low cost lighting control solutions, in addition to the selection of ch
3、eap MCU chip, also uses an inexpensive infrared sensor, greatly reduces the cost of the system. The system has the advantages of simple circuit, compact structure, after repeated testing, confirmed that the system can work stably for a long time, meet the design requirement. Keywords: Single chip mi
4、crocomputer,control system, current source, load lamp II 目目 录录 1.1.前言前言 1 2.2.整体方案设计整体方案设计 2 2.1 方案论证 . 2 2.2 方案的比较 . 3 3.3.单元模块的设计单元模块的设计 4 3.1 电源电路 . 4 3.2 单片机的最小系统 4 3.3 光控模块框图. 5 3.4 电流源驱动 . 5 3.5 开关延时电路. 5 4.4.软件设计软件设计 .7 5.5.系统总体调试系统总体调试 8 6.6.结论结论 9 参考文献参考文献. 10 附录一附录一 11 附录二附录二 . 12 1 1.1.前言前言 针对目前社会上很多地方使用长明灯照明,不能实现灯光的照明智能化造 成电能的巨大浪费。为响应科学减排和节能科学发展的号召而设计了声光控路 灯控制系统。而运用单片机与单片机构成的控制系统,具有较高的稳定性! 本系统采用咪头、光敏电阻构成光照信号和声音采集信号电路。通过单片 机对信号采样并同时运用运放进行模拟放大,进行逻辑控制,给出是否亮灯的 信号,由 RC 充放及开关电路执行,通过控制继电