题 目: 基于单片机的智能路灯设计 专 业: 电气工程及其自动化 摘 要随着现代化城市的发展,路灯照明规划已经成为了各国发展进程中避不开的一项工程。在让城市成为平安都市、有序城市方面,路灯所起的影响是相当大的这让路灯的不断创新变成了世界瞩目的焦点。本设计以 STC89C52 单片机作为设计的核心,利用 DS1302 来充当一个时钟,然后将路灯的开启时间和关闭时间与实时时间比较来判断路灯该怎么操作从而达到定时控制路灯开启关闭的要求,设计了一个路灯自动控制系统,实现对路灯的智能控制。该系统将路灯分为 3 种情况,根据路灯所处的情况以及外界光线强弱的情况和声音变化的情况来判断路灯是否开启和怎么开启。在故障检测方面,使用光敏电阻对路灯的状态进行检查,然后进行判断路灯是否有故障出现。关键词:STC89C52 单片机;时钟芯片 DS1302;光敏电阻 ABSTRACT With the development of modern cities, the planning of street lighting has become an inevitable project in the process of the development of countries. In making the city become a safe and orderly city, the influence of street lamps is quite large, which makes the innovation of street lamps become the focus of world attention. The design takes STC89C52 single-chip as the core and takes DS1302 as a clock. We compare the lamp of the opening time or closing time and then determine how to operate the lamp. Therefore, we achieve the function of timing control and use this function to control the street lights are turned on and off. So,we design an automatic control system of a street lamp. The system realizes intelligent control of street lights. The system divides the street lamp into 3 cases and judges whether the street lamp is open and how to open by the situation of the external light intensity and the sound change. In the fault detection, we use photosensitive resistor to check the status of the lamp, and then determine whether the street lamp failure occurs.Key w...