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

  • Thread starter Thread starter Electro
  • Start date Start date
  • Tags Tags
    Project
AI Thread Summary
The discussion focuses on troubleshooting a traffic light controller project involving a 555 timer, a 74163 counter, and logic gates. The main issue is that the LEDs do not function according to traffic light rules, indicating a problem with the logic design. Suggestions include using specific logic gate configurations to control the red, yellow, and green lights based on the counter's output. The provided advice includes detailed steps for wiring the gates to achieve the desired light sequence. The user seeks further clarification on defining the logic for the circuit to ensure proper operation.
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:
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Back
Top