How Can I Fix the Logic in My Traffic Light Controller Project?

  • Thread starter Thread starter Electro
  • Start date Start date
  • Tags Tags
    Project
Click For Summary
SUMMARY

The discussion focuses on designing a traffic light controller using a 555 timer, a 74163 counter, and logic gates. The user encountered issues with the logic implementation, specifically ensuring the LEDs follow the correct traffic light sequence. Solutions provided include using NAND gates for red light control and specific AND gate configurations for yellow and green lights. The user is advised to finalize the timing components after establishing the logic circuit.

PREREQUISITES
  • Understanding of 555 timer functionality
  • Knowledge of 74163 counter operation
  • Familiarity with basic logic gates (AND, OR, NOT, NAND)
  • Ability to create and interpret truth tables
NEXT STEPS
  • Research the configuration of NAND gates in traffic light control circuits
  • Learn about timing calculations for 555 timer circuits
  • Explore advanced logic gate combinations for complex control systems
  • Study the design of PLC-based traffic light systems for additional insights
USEFUL FOR

Electrical engineering students, hobbyists designing control systems, and anyone interested in digital logic design for traffic management solutions.

Electro
Messages
48
Reaction score
0
Hello,
I am finishing my first semester as an electrical engineer. Thus, we have to do a final project. The problem is that I didn't have to much time in the lab to finish it up, so it is a little bit difficult to solve it theoretically. If anyone can help, I would be grateful.

The project is to design a simple traffic light controller using a power supply, a 555 timer, a 74163 counter, 6 LEDs , 6 330 Ohm resitors, 2 capacitors and logic gates (Later some other resistors and capacitors should be used in order to specify an exactly 1 sec. time for each count)

I went up OK with the 555 timer and counter. I connected them and the LED s too. The problem is with the logic. The LEDs do not obey the law of the traffic light. In other words there is a problem which I can't solve if I don't have the circuit in front of me. I used an AND gate, a NOT gate and I plan to use an OR one. Can you please help me to define a logic for the circuit? I tried several times but with no success. I have attached the truth table for the whole 16 sec. cycle. This is the main concern; after that I can figure out what capacitor and resistor to use so that I will have exactly 1 sec. counts.
Thank You
 

Attachments

Last edited:
Engineering news on Phys.org
This is similar to a project I did years ago while learning to program PLC's. Ours included sensing for advanced left turn lanes.

I see your post is a few days old so I may be too late but here goes a try;

Let's call the north-south lights (M)ain street and east-west (S)ide street, along with r, y and g.
Take counter bit 1 directly to Sr, and through an invertor (both inputs of a NAND) to Mr, to give 8 seconds red alternately.
For My, take bit 1 after the same NAND, then AND it with bit 2, then AND the output with the output of ANDed 3 & 4. That will be true in step 7.
For Sy invert bit 4, then AND it with bit 3, then AND that output with the output of ANDed bit 1 & 2. (True in step 15)
Green will be on when you NOR a y and r on the corresponding street, you should be able to work that part out from here.
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
3K
  • · Replies 49 ·
2
Replies
49
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
10
Views
6K
  • · Replies 9 ·
Replies
9
Views
3K