基于单片机的汽车前照灯远近光自动切换系统

现代电子技术

Modern Electronics Technique

2015年11月1日第38卷第21期

Nov.2015Vol.38No.21

doi :10.16652/j.issn.1004?373x.2015.21.045

0引言

随着日益成熟的交通网络的发展,汽车成为了人类出行不可缺少的交通工具。交通事故的频繁发生成为了人们日渐担忧的问题,人们更加关心汽车的安全性能。根据报道的数据显示[1]

,我国夜间发生的交通事故中,70%左右是由于违章使用氙气灯造成灯光炫目,使驾驶员无法看清前方路况而发生的。照明系统是汽车主动安全的重要组成部分之一,如今汽车前照灯灯光光型单一的传统照明系统已经无法跟上当前汽车安全性能发展的趋势[1];所以,为了减少交通事故的发生,考虑到汽车的人性化设计。本文采用STC89C52单片机设计了一款自动切换远近光的汽车前照灯系统。这种前照灯系统更加智能化,能消除存在的安全隐患。

1基本原理及理论分析

目前市面上虽然有搭载AFS 系统(Adaptive Front?

lighting System ,自适应前照明系统)的汽车,但其功能仅局限于转向大灯辅助汽车转弯,而不能做到自动切换

前照灯的远近光模式。

本文设计的自动切换远近光汽车前照灯系统主要由光强检测系统和单片机系统组成。光强检测系统检测汽车前方环境的光强,当汽车行驶时,汽车前方的灯光将会照射在光强检测系统的接收器上,接收器将感测到的信号转化为可靠的数控直流电源,实现程控的功能,经过A/D 转换器转换为模拟电压[2],将该电压送给单片机,通过与内置参数的对比,发送控制指令控制汽车的远近灯光,从而实现最终的汽车前照灯的远近光的自动切换,其原理图如图1

所示。

图1远近光自动切换系统原理图

基于单片机的汽车前照灯远近光自动切换系统

泽,谢天怡

(南京邮电大学海外教育学院,江苏南京

210023)

要:考虑到汽车的安全性能,设计了一款采用STC89C52单片机为电子控制单元核心的汽车前照灯远近光自动切

换系统。该系统主要由光强检测系统和单片机系统组成。详细介绍了系统的基本原理、理论分析及硬件设计,并提出了软件的实现方法。其中,硬件系统模块包括处理器模块、通信模块、传感器模块、显示模块和电源模块。该前照灯系统较智能化,确保了汽车夜间行车的安全性。

关键词:STC89C52;光敏传感器;1602液晶显示屏;灯光自动切换中图分类号:TN710?34

文献标识码:A

文章编号:1004?373X (2015)21?0167?04

Microcontroller ?based automatic switching system of far

and near light for automobile headlights

XU Ze ,XIE Tianyi

(College of Overseas Education ,Nanjing University of Posts and Teleconmmunication ,Nanjing 210023,China )

Abstract :Considering the safety performance of the vehicle ,an automatic switching system of far and near light for automo?bile headlights was designed ,which is taken STC89C52microcontroller as the core of the electronic control unit.This system is consisted of light intensity detection system and microcontroller system.The fundamental principle ,theoretical analysis and hard?ware design of this system are introduced in detail ,and the software implementation method is proposed.The hardware system model is composed of processor module ,communication module ,sensor module ,display module and power module.This head?

lights system is intelligent ,and can ensure the safety performance of the vehicle on night driving.

Keywords :STC89C52;photosensitive sensor ;1602LCD ;automatic light switching

收稿日期:2015?05?14

167

相关主题
相关文档
最新文档