PROGRAMING TRAFFIC LIGHT - PIC 16f877a Using Mplab XC8

Thread Starter

bangerous

Joined Jun 3, 2021
1
PROGRAMING TRAFFIC LIGHT - PIC 16f877a Using Mplab XC8

Can anyone help me. I'am freshman. This is my homework.

Design a traffic light controller in 2 directions perpendicular to each other with 3 light phases:

- Go straight direction 1

- Go straight direction 2

- Turn left to direction 1 and direction 2

The lighting time of the lamp cycles can be varied according to the time of day.

Each direction has LED lights with 7 countdown bars.
Simulation in Proteus.
 

Attachments

kaindub

Joined Oct 28, 2019
132
Step 1. Sit down
Step 2. Write out the control sequence
Step 3. Change this into a control diagram.
Step 4. Now you program your pic.
Step 5. Simulate and check logic.
This is just a problem based on a state machine.
 
Top