基于单片机节能路灯毕业设计 - 图文 联系客服

发布时间 : 星期一 文章基于单片机节能路灯毕业设计 - 图文更新完毕开始阅读

五邑大学本科毕业设计

摘 要

本设计完成了以AT89S52单片机和DAC0832数模转换芯片为核心的LED路灯低功耗智能控制装置。该设计由供电模块、LED恒流驱动电源模块、单片机控制模块、路灯信号检测模块、LCD显示模块、声光报警模块、按键模块、温度感应模块组成。单片机根据声光传感器对路边状况的检测和时钟芯片DS12C887设置的时间来控制D/A转换芯片,与LED恒流驱动共同实现LED路灯亮度的自动调节,通过控制继电器实现LED路灯的开关,并用二极管组成保护电路。开灯、关灯时间以及即时时间动态显示。当路灯出现电路故障时,还会出现声光报警。

论文详细论述了控制系统的组成、相关硬件和软件的设计、工作原理。重点介绍了如何运用AT89S52控制DAC0832芯片实现LED驱动电路。

关键词 恒流驱动;电路故障;液晶显示;保护电路;声光控制

I

五邑大学本科毕业设计

Abstract

The core LED street lamp low power consumption intelligent control device is completed with AT89S52 SCM and DAC0832 analog-to-digital conversion chips. The design is composed of power supply module, LED by constant current drive power supply module and single-chip microcomputer control module, street lamp signal detection module, LCD display module, sound and light alarm module, key module, temperature sensing module. SCM is according to sound and light sensor to curb status of detection and clock chip DS12C887 setup time to control the D/A conversion chip and LED constant current driver together to accomplish the street lamp brightness LED the automatic adjustment,through the realization of the control realy LED lamp switch,and of the diode protection circuit. Turn on the light, turn off the lights and instant time to get the time dynamic display.When street light appeared circuit fault, the design also can appear sound and light alarm.

The control system of the composition, the hardware and software of the relate design and work principle are introduced in the paper. And the method of how to use AT89S52 devices control chip realize DAC0832 LED drive circuit is emphasized.

Key words Constant Current Drive Circuit Fault LCD Display The Protection Circuit

Sound And Light Control

II

五邑大学本科毕业设计

目 录

摘要 .................................................................................................................................................. I Abstract .......................................................................................................................................... II

第1章

1.1 1.2 1.3 第2章

2.1 2.2

绪论 ............................................................................................................................... 1 课题来源及研究的目的和意义 ................................................................................... 1 国内外在该方向的研究现状及分析 ........................................................................... 1 本课题研究的主要内容 ............................................................................................... 2 本设计用到的主要元器件 ........................................................................................... 3 数模转换芯片 ............................................................................................................... 3 52单片机 ...................................................................................................................... 4 2.2.1 2.2.2

AT89S52的特点 ................................................................................................. 4 管脚说明 ............................................................................................................. 5

2.3 2.4 2.5 2.6 2.7 第3章

3.1 3.2 3.3 3.4 3.5 3.6

驻极体话筒 ................................................................................................................... 6 光敏电阻 ....................................................................................................................... 7 电磁继电器 ................................................................................................................... 7 时钟芯片 ....................................................................................................................... 7 本章小结 ....................................................................................................................... 9 硬件电路的原理与设计 ............................................................................................. 10 概述 ............................................................................................................................. 10 系统设计原理框图 ..................................................................................................... 10 供电模块 ..................................................................................................................... 11 单片机控制模块 ......................................................................................................... 11 LED恒流驱动电源模块 ............................................................................................. 12 路灯信号检测模块 ..................................................................................................... 13 3.6.1 3.6.2 3.6.3

时钟驱动电路 ................................................................................................... 13 声控电路 ........................................................................................................... 14 环境光线及故障检测电路 ............................................................................... 14

3.7 3.8 3.9 第4章

4.1 4.2 4.3

声光报警模块 ............................................................................................................. 15 按键模块 ..................................................................................................................... 15 显示模块 ..................................................................................................................... 16 软件设计 ..................................................................................................................... 17 概述 ............................................................................................................................. 17 程序设计步骤 ............................................................................................................. 17 软件开发环境 ............................................................................................................. 17

III

3.10 本章小结 ...................................................................................................................... 16

五邑大学本科毕业设计

4.4 4.5 第5章

5.1 5.2

软件总体设计框架 ..................................................................................................... 18 本章小结 ..................................................................................................................... 19 系统安装调试 ............................................................................................................. 20 概述 ............................................................................................................................. 20 系统的安装 ................................................................................................................. 20 5.2.1 5.2.2 5.3

5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.4 5.5

电路板制作 ....................................................................................................... 20 元器件焊接技术 ............................................................................................... 20 供电电路检测 ................................................................................................... 21 各元件之间连接情况检测 ............................................................................... 21 按键功能检测 ................................................................................................... 21 声控功能的检测 ............................................................................................... 21 光控功能的检测 ............................................................................................... 21

硬件电路调试 ............................................................................................................. 21

软硬件联调 ................................................................................................................. 21 本章小结 ..................................................................................................................... 22

结论 ............................................................................................................................................... 23 参考文献 ....................................................................................................................................... 24 致谢 ............................................................................................................................................... 25 附录1 部分程序 .......................................................................................................................... 26 附录2 总电路图 .......................................................................................................................... 28 附录3 PCB图 .............................................................................................................................. 29 附录4 实物图 .............................................................................................................................. 30

IV