念慈菴

Course Design of Automotive Tail Light Controller

 
Overview

1. Design task requirements

1. Car taillight controller content

Basic design requirements: The design system simulates the signals on both sides of the car's taillights, with 3 signals on each side.

Indicator lights (simulated by LEDs) with the following modes:

( 1 ) When the car is moving forward, all the indicator lights are off.

( 2 ) When the car turns right, the three indicator lights on the right side light up in right cycle sequence.

( 3 ) When the car turns left, the three indicator lights on the left light up in left-turn sequence.

( 4 ) When the car brakes temporarily, the indicator light flashes at the same time.

The overall circuit requires double-panel wiring, and status transitions can be displayed with digital tubes (optional)

2. Design block diagram and overall machine overview

2.1 Car taillight controller

2.1.1 Design block diagram

 

Figure 1   Car taillight control circuit design block diagram

2.1.2 Overview of the whole machine

In the car taillight control circuit, the car taillight has four different states: normal operation, right turn, left turn and temporary braking. When driving normally, the left and right taillights of the car are all off; when the car turns right, the right taillights of the car light up sequentially from the inside to the outside; when the car turns left, the left taillights of the car light up sequentially from the inside out. Lights up cycle; when the car brakes temporarily, all tail lights flash simultaneously with CP .

 

3. Design scheme and principle description of each unit circuit

3.1 Car taillight control circuit unit (No. 5) (unit circuit diagram, design process and principle description)

3.1.1Ternary counter

The ternary counter consists of flip-flop 74ls161 . 74ls161 is a hexadecimal synchronous counter with a 4 -digit initial value that can be preset , as shown in Figure 3.1.1 :

 

Figure 3.1.1

Using the synchronous number setting method, the preset number is 1101. When CLK generates a rising edge, it starts counting. When the count reaches 1111 , it returns to the preset number and counts again. Thus, the 74ls161 hexadecimal counter realizes the ternary counter function, as shown in Figure 3.1.2 :

Figure 3.1.2

3.1.2 Decoding circuit

As shown in Figure 3.1.3 , the decoding circuit is composed of 3-8 decoders 74ls138 and 6 NAND gates 74ls00 . The three input terminals A , B , and C of 74ls138 are connected to S1 , Q1 , and Q0 respectively , among which Q1 and Q0 are the output terminals of the ternary counter. When S1=0 , enable signal A=E1=1 , and the counting status is 00 , 01 , and 10 , Y1 , Y2 , and Y3 output low levels in order ( Y5 , Y6 , Y7 , and output high levels are invalid). The NAND gate outputs high levels in sequence; when S1 =1 and enable A=E1=1, Y5 , Y6 , and Y7 output low levels in order ( Y1 , Y2 , Y3 output high levels are inactive), after the NAND After the gate, the output is high level in sequence; when E1=0 and A=1 , all the outputs of 74ls138 are all high level, and after passing through the NAND gate, they are all low level; when G=0 , A=CP , the NAND gate The output flashes with the frequency of CP pulses.

Figure 3.1.3

3.3.3 Switch control circuit, switches S1 and S0

List the logical function table of switches, signal CP and enable signals E1 and A

Table 3.1.1

switch control

CP

enable signal

S1

S0

E1

A

0

0

×

0

1

0

1

×

1

1

1

0

×

1

1

1

1

CP

0

CP

After organizing the logical function table, we get

E1=S1 XOR S0 ,

A=((S1S0)(S1S0CP)’)’

如图3.1.4画出开关控制电路与开关

3.1.4

3.1.4 LED、数码管驱动显示电路

如图3.1.53.1.6所示,LED显示电路由LED300欧电阻组成,数码管由74ls48驱动。当S1S0都没有按下时,LED灯全灭,74ls48输入端为0000,数码管显示数字0。当按下S0时,D3D2D1前的与非门依次高电平输出,实现D3D2D1依次从里向外点亮;74ls48输入端为0001,数码管显示数字1;。当按下S1时,D4D5D6前的与非门依次高电平输出,实现D4D5D6依次从里向外点亮;74ls48输入端为0010,数码管显示数字2;。当S0S1都按下时D1D2D3D4D5D6随着CP的频率闪烁,74ls48输入端为0011,数码管显示数字3

3.1.5

3.1.6

四、调试过程及结果分析

1)、汽车尾灯控制器三进制计数器设计时。使用4位二进制74ls161通过预置数法改成。方案一是预置数0000Q1Q0输出000110。方案二是预置数1101,输出011011。最后选择使用方案二,使用方案一需要Q1Q0通过非门、与非门给预置数控制端(LOAD)置数控制。使用方案二只需要使用一个与非门便能完成置数控制。方案二可以减少非门的使用,从而降低PCB布线难度。

2)、汽车尾灯控制器设计译码电路74ls138时。若三进制计数器使用方案一,LED驱动电路接入的是74ls138输出端Y0Y1Y2Y4Y5Y6。但最终三进制计数器的选择方案二,那么我们LED驱动电路接入的便是Y1Y2Y3Y5Y6Y7。同时由于需要LED从里向外依次闪烁,所以LED1驱动接的是Y3LED3驱动接的Y1

( 3 ) When designing the switch control circuit of the automobile taillight controller. The original plan one is to use a 74ls10 , a 74ls00 , a 74ls04 , a 74ls32 and a 74ls86 . Finally, I chose to use option 2, which uses two 74ls10 and one 74ls86 . Using option two can reduce the use of chips and simplify the circuit diagram.

 

5. Simulation diagram of the whole machine logic circuit

 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 23:12:59
  • Do you know the eight types of power management ICs?
  • Weekly plan submission
  • Is there any software to edit the registry under 5.0 simulator?
  • What is the difference between Allegro Sigrity SI and PCB SI?
  • Recruitment of part-time MCU software programming
  • 4X4 matrix keyboard

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号