电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

基于单片机的交通灯控制系统设计样本

基于单片机的交通灯控制系统设计样本_第1页
1/36
基于单片机的交通灯控制系统设计样本_第2页
2/36
基于单片机的交通灯控制系统设计样本_第3页
3/36
基于单片机的交通灯控制系统设计 摘 要当你路过一个十字路口时, 你是否注意到各个方向车辆和行人有有条不紊的经过十字路口。这样井然有序的情境靠什么来实现的呢? 靠的是交通灯控制系统。在论文中我使用单片机 STC89C51 作为主控单元。经过单片机芯片 STC89C51 的 P1 口和 P2 口分别控制东西方向和南北方向红黄绿灯的点亮。经过单片机芯片 STC89C51 的 RXD 和 TXD控制数码管的显示时间。采纳发光二极管来实现交通灯的点亮, 由数码管实现时间的显示。该系统不但仅具有交通灯的基本功能还有倒计时, 还能够经过按键在紧急事件中设置为四个方向都为红灯的紧急模式, 也能够经过按键在夜晚设置为四个方向都为黄灯的夜间模式。当然也能够经过按键来设置交通灯的倒计时时间, 使系统更加符合实际交通情况。我设计的交通灯控制系统能够较好的模拟十字路口出现的交通状况, 使行人和车辆能有序的通行。我设计的系统成本低, 操作简单, 性能稳定, 有用性较强。关键词: 交通灯控制系统 单片机 AT89C51 数码管 LEDAbstractWhen you pass an intersection, have you noticed that vehicles and pedestrians through the intersection methodical .Such an orderly situation rely on to achieve it? Rely on the traffic light control system. This paper will intr-oduce a single-chip microcomputer ATC89C51 as the main control unit system. Thr-ough the STC89C51 microcontroller chip P1 and P2 port respectively control the east-west and north-south direction red yellow green light. Through STC89C51 microcontroller RXD and TXD control digital tube display time. Light emitting diode is used to realize traffic lights lit, achieved by the digital time display. The system not only has the basic function of the traffic lights and the countdown, you can also through the buttons in the event of an emergency is set to four directions for the red light in emergency mode, can also through the buttons in the night is set to the four directions of yellow light night mode, of course, also can through the butt...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

基于单片机的交通灯控制系统设计样本

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部