用户通过发送短信给GSM模块,GSM模块将收到的信息传送给单片机,单片机根据收到的信息来判断LED灯是开还是关,并作出相关的控制信息
用ATMEga8实现的键盘按键与led点亮同步。
------------交通灯控制系统-----------------------
资源包括keil5C语言程序和proteus软件仿真,仿真实现了51单片机控制LED实现流水灯效果。
如图所示:在P1.0端口上接一个发光二极管L1,使L1在不停地一亮一灭,一亮一灭的时间间隔为0.2秒。
交通灯状态表:status全局变量。状态0:南北绿灯,东西红灯;状态1:南北黄灯,东西红灯;状态2:南北红灯,东西绿灯;状态3:南北红灯,东西黄灯。 可以实现双向绿灯通行时间设置,以及双向黄灯暂缓通行
用单片机实现单个小灯循环亮! 采用单片机原版格式,下载后既可以运行!
看看我的新作品,用单片机控制的交通灯。
单片机课设,本人作业。很好的资源,请大家批评指正。
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬