Scientific Journal of Information Engineering December 2015, Volume 5, Issue 6, PP.190-195
Automotive Lighting Control Circuit Design Based on MCU Ruonan Sun †, Jian Xu Beijing University of Agriculture, Beijing 102206, China †
Email: 597369409@qq.com
Abstract This design is based on MCU, using stepper motor machine to control car’s light. And there are two kinds of modes to turn on the lights, automatic and manual. The external light made by automatic mode detects converts digital quantity and inputs it to the MCU through the A/D converter. In manual code the button is used to select whether the car’s lights are on. The design of hardware circuit includes: MCU minimum system circuit, reset circuit, independent key circuit, the stepper motor and driving circuit, relay control lamp and driving circuit, and photosensitive resistance detection and A/D converter circuit. The part of software includes: the main function, the system initialization function, delay function, TLC549 collection function, automatic control function, manual control function and motor control function. In this design, we use Proteus software and Keil C51 software to simulate the circuit design. The light controlled circuit based on MCU is simple. It has low production costs, and it is easy to detect and maintain in the future. Keywords: AT89C51; Stepper Motor; Relay; TLC549; ULN2003
基于单片机的汽车灯光控制电路设计 孙若男,徐践 北京农学院,北京 102206 摘 要:以单片机作为平台,利用步进电机控制汽车的远近灯光,并有自动与手动两种模式来开启灯光。在自动模式下, 通过光敏电阻检测外界光强,并将检测到的模拟电压值经过 A/D 转换器转换成数字量输入到单片机,从而控制汽车是否 亮灯;在手动模式下,利用按键选择汽车是否亮灯。本设计硬件电路部分包括:单片机最小系统电路、复位电路、独立 按键电路、步进电机及驱动电路、继电器控制灯及驱动电路和光敏电阻检测及 A/D 转换电路。软件部分包含有:主函 数、系统初始化函数、延时函数、检测按键函数、TLC549 采集函数、自动控制函数、手动控制函数和电机控制函数。 运用 Proteus 软件及 Keil C51 软件的联调对该电路设计进行仿真。基于单片机的汽车灯光控制电路设计,其电路设计比较 简单,制作成本较低,便于后期的检测与维护。 关键词:AT89C51;步进电机;继电器;TLC549;ULN2003
引言 当今社会,随着科学技术的发展,人们生活质量的提高,汽车的数量在大大增加,由此引起的安全问 题也逐渐严重。汽车的灯光控制对安全行驶有着十分重要的作用。所以,对于解决交通安全问题来说,研 究和改进汽车的灯光控制就是一种好的方式。 传统的汽车工业使用的电路为纯硬件设计,电路不仅仅是复杂,而且检测维修也耗费时间,花费精 力。由于纯硬件电路的局限性,其功能和性能无法随意更改,所以汽车的控制系统正在朝着智能化的方向 发展,使得传统的电路设计更加简单、更加智能。随着电子技术的发展,电子器件在汽车系统中的广泛应 - 190 http://www.sjie.org