You have no items in your shopping cart.

Subtotal: 0.00

User Manual for Traffic Light Controller

PART NO: PS-ACC-TRAFFIC

PS-ADD-ON Traffic light controller card consist of 12 Nos. point LEDs arranged by 4-wayLanes. Each lane has Go (Green), Listen (Yellow) and Stop (Red) LED is being placed. Each LED has provided for current limiting resistor to limit the current flows to the LEDs. All LED lines and power lines are terminated by the 20pin connector, to interface development kits.

SPECIFICATIONS

  • 4-Way Traffic Management
  • RED / Green / Yellow LED’s arranged by Lane
  • 20-pin Box Header All LED’s and Power lines terminated at box connector
  • 20-pin FRC Cable To connect host boards (Microcontroller/Processor/FPGA Kits)

 

CARD FEATURES

  • 4way Traffic Lane sections
  • 20-pin Box Connector

 

POINT LEDS

  • The Super Bright Red source color devices are made with Gallium Aluminum Arsenide Red Light Emitting Diode.
  • Dice - Super Bright Red (GaAlAs)
  • Lenses - RED DIFFUSED
  • Iv (mcd) [2] @ 20mA - (min 380 - max 700)
  • Viewing Angle [1] - (2θ1/2) 60°
  • Low power consumption.
  • Versatile mounting on p.c. Board or panel.
  • T-1 3/4 diameter flangeless package.
  • Reliable and rugged.

 

KIT INCLUDES

 

TRAFFIC LIGHT CONTROLTRAFFIC LIGHT CONTROL

Traffic lights, which may also be known as stoplights, traffic lamps, traffic signals, signal lights, robots or semaphore, are signaling devices positioned at road intersections, pedestrian crossings and other locations to control competing flows of traffic.

ABOUT THE COLORS OF TRAFFIC LIGHT CONTROL ABOUT THE COLORS OF TRAFFIC LIGHT CONTROL

Traffic lights alternate the right of way of road users by displaying lights of a standard color (red, yellow/amber, and green), using a universal color code (and a precise sequence to enable comprehension by those who are color blind).

In the typical sequence of colored lights:

  • Illumination of the green light allows traffic to proceed in the direction denoted,
  • Illumination of the yellow/amber light denoting, if safe to do so, prepare to stop short of the intersection, and
  • Illumination of the red signal prohibits any traffic from proceeding. Usually, the red light contains some orange in its hue, and the green light contains some blue, for the benefit of people with red-green color blindness, and "green" lights in many areas are in fact blue lenses on a yellow light (which together appear green).

 

HARDWARE DESCRIPTION OF TRAFFIC LIGHT INTERFACE





Traffic light controller card consist of 12 Nos. point led arranged by 4Lanes. Each lane has Go(Green), Listen(Yellow) and Stop(Red) LED is being placed. Each LED has provided for current limiting resistor to limit the current flows to the LEDs. LED1 to LED12 are terminated by the 20pin box header.

HARDWARE CONFIGURATION OF TRAFFIC LIGHT WITH 8051/8086/8085





PROGRAMS ON PS-ADDON TRAFFIC LIGHT CONTROLLER

a) TRAFFIC LIGHT CONTROLLER INTERFACING WITH 8051 TRAINER KIT

GPIO- I (8255) J1 CONNECTOR

PORTS

ADDRESS

Control REG

4003

PORT A

4000

PORT B

4001

PORT C

4002

 



PROGRAM : 1

AIM

Interface Traffic light controller with 8051 using 8255

PROGRAM:

ADDRESS

OPCODE

MNEMONICS

9100

90 92 00

START: MOV DPTR,#9200

9103

7A 0C

MOV R2,#0C

9105

E0

MOVX @DPTR,A

9106

C0 83

PUSH DPH

9108

C0 83

PUSH DPL

910A

90 40 03

MOV DPTR,#4003

910D

F0

MOVX @DPTR,A

910E

D0 82

POP DPL

9110

D0 83

POP DPH

9112

A3

INC DPTR

9113

E0

LOOP1: MOVX @DPTR,A

9114

C0 83

PUSH DPH

9116

C0 82

PUSH DPL

9118

90 40 00

MOV DPTR,#4000

911B

F0

MOVX @DPTR,A

911C

D0 82

POP DPL

911E

D0 83

POP DPH

9120

A3

INC DPTR

9121

E0

MOVX @DPTR,A

9122

C0 83

PUSH DPH

9124

C0 82

PUSH DPL

9126

90 40 01

MOV DPTR,#4001

9129

F0

MOVX @DPTR,A

912A

12 91 36

LCALL DELAY

912D

D0 82

POP DPL

912F

D0 83

POP DPH

9131

A3

INC DPTR

9132

DA DF

DJNZ R2,LOOP1

9134

80 CA

SJMP START

9136

7F 10

DELAY: MOV R7,#10H

9138

7D FF

LOOP4 : MOV R5,#0FFH

913A

7E FF

LOOP3: MOV R6,#0FFH

913C

00

LOOP2: NOP

913D

00

NOP

913E

DE FC

DJNZ R6, LOOP2

9140

DD F8

DJNZ R5, LOOP3

9142

DF F4

DJNZ R7, LOOP4

9144

22

RET

 



DATA

9200 DATA 80H

9201 21H 09H 10H 00H (SOUTH WAY)

9205 0CH 09H 80H 00H (EAST WAY)

9209 64H 08H 00H 04H (NOURTH WAY)

920D 24H 03H 02H 00H (WEST WAY)

9211END

b) TRAFFIC LIGHT CONTROLLER INTERFACING WITH 8086 TRAINER KIT

IN 8086 WE HAVE TWO 8255 IC’S

 

PORTS

ADDRESS

Control port

FF26

PORT A

FF20

PORT B

FF22

PORT C

FF24

 



GPIO- II (8255)

PORTS

ADDRESS

Control port

FF36

PORT A

FF30

PORT B

FF32

PORT C

FF34

 



PROGRAM: 1

AIM

Interface Traffic light controller with 8086 using 8255

PROGRAM: 1

 

ADDRESS

OPCODE

MNEMONICS

1100

BB 00 11

START: MOV BX, 1200H

1103

B9 08 00

MOV CX, 0008H

1106

8A 07

MOV AL,[BX]

1108

BA 36 FF

MOV DX, CONTRL PORT

110B

EE

OUT DX, AL

110C

43

INC BX

110D

8A 07

NEXT: MOV AL,[BX]

110F

BA 30 FF

MOV DX, PORT A

1112

EE

OUT DX,AL

1113

43

INC BX

1114

8A 07

MOV AL,[BX]

1116

BA 32 FF

MOV DX,PORT B

1119

EE

OUT DX,AL

111A

E8 07 00

CALL DELAY

111D

43

INC BX

111E

E2 F1

JNZ NEXT

1120

EB E4

JMP START

1122

51

DELAY: PUSH CX

1124

B9 00 05

MOV CX,0005

1126

BA FF FF

REPAT: MOV DX,0FFFFH

1129

4A

LOOP2: DEC DX

112A

75 FD

JNZ LOOP2

112C

E2 F8

LOOP REPAT

112E

59

POP CX

112F

C3

RET

 



LOOKUP TABLE

1200 DATA 80H

1201 21H 09H 10H 00H (SOUTH WAY)

1205 0CH 09H 80H 00H (EAST WAY)

1209 64H 08H 00H 04H (NOURTH WAY)

120D 24H 03H 02H 00H (WEST WAY)

1211END

c) TRAFFIC LIGHT CONTROLLER INTERFACING WITH 8085 TRAINER KIT

IN 8085 WE HAVE TWO 8255 IC’S

GPIO- I (8255) J1 Connector

PORTS

ADDRESS

Control port

23

PORT A

20

PORT B

21

PORT C

22

 



GPIO- I (8255) J4 Connector

PORTS

ADDRESS

Control port

33

PORT A

30

PORT B

31

PORT C

32

 



PROGRAM : 1

AIM:

Interface Traffic light controller with 8085 using 8255

PROGRAM:

ADDRESS

OPCODE

MNEMONICS

9100

21 00 92

START :LXI H, 9200

9103

0E 08

MVI C, 08

9105

7E

MOV A, M

9106

D3 23

OUT CONTRL

9108

23

INX H

9 109

7E

LOOP1:MOV A,M

910A

D3 20

OUT PORTA

910C

23

INX H

910D

7E

MOV A,M

910E

D3 21

OUT PORTB

9110

CD 1B 91

CALL DELAY

9113

23

INX H

9114

0D

DCR C

9115

C2 09 91

JNZLOOP1

9118

C3 00 91

JMP START

911B

C5

DELAY:PUSH B

911C

0E 05

MVI C,05

911E

11 FF FF

LOOP3 :LXI D, FFFF

9121

1B

LOOP2 :DCX D

9122

7A

MOV A,D

9123

B3

ORA E

9124

C2 21 91

JNZ LOOP2

9127

0D

DCR C

9128

C2 1E 91

JNZ LOOP3

912B

C1

POP B

912C

C9

RET



DATA

9200 DATA 80H

9201 21H 09H 10H 00H (SOUTH WAY)

9205 0CH 09H 80H 00H (EAST WAY)

9209 64H 08H 00H 04H (NOURTH WAY)

920D 24H 03H 02H 00H (WEST WAY)

9211END