基于单片机的汽车转向灯设计摘要本设计采用单片机控制,在控制系统中,选择了6个开关、1个AT89C51单片机、6只发光二极管(用来模拟信号灯发光)
其中AT89C51单片机做为控制核心,当6个开关的状态发生改变后,单片机检测到开关信号后就通过软件输出相关信号,来驱动6个汽车信号灯根据开关的相应状态闪烁或长亮
信号灯由发光二极管模拟替代
通过这些,本控制系统能够很好的达到控制汽车转弯信号灯的目的,同时,所采用的单片机及其他元件的成本不高,还能很好的达到控制要求,不会增加汽车的制造成本
对生产厂家和消费者来说是非常好的选择
关键词:单片机汽车转弯信号灯AT89C51AbstractThisdesignusesthemicrocontrollerinthecontrolsystem,selectthesixswitches,AT89C51microcontroller,eightlight-emittingdiode(LEDlightstosimulate)
AT89C51microcontrollerasacontrolcenterwhich,whenthesixswitchchangesstate,themicrocontrollerdetectsthesignalafterswitchingtheoutputcorrelationsignalthroughsoftware,todrivetheeightcarlightsflashaccordingtothestatecorrespondingtotheswitchorlonglight
Analogsignalfromthelight-emittingdiodesinstead
Throughthese,thecontrolsystemcanturnagoodsignaltocontrolthecar'spurpo