Skip to content

🚦 Designing a two-way traffic signal using logic gates as a combinational logic circuit and flip-flops for sequential control.

Notifications You must be signed in to change notification settings

ZeeBee287/Two-way-Traffic-System-DLD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚦 Two-Way Traffic System (Multisim Design)

πŸ“Œ Overview

This project is a Digital Logic Design implementation of a two-way traffic signal control system using logic gates and D flip-flops in Multisim. The design simulates a traffic signal controlling two roads at an intersection, ensuring smooth traffic flow through alternating red, yellow, and green signals.

🎯 Objective

The goal is to design a traffic signal system using combinational logic circuits and flip-flops to regulate traffic flow efficiently at an intersection.

πŸ› οΈ Equipment & Software

  • Multisim Software
  • Logic Gates: NOT, XOR, NAND, AND gates
  • Flip-Flops: D flip-flops (7474N)
  • Traffic Light Indicators
  • Switches & Power Sources

πŸ”§ Design & Implementation

The traffic system follows a four-phase sequence:

  1. Road 1 Green, Road 2 Red β†’ Road 1 is open while Road 2 is stopped.
  2. Road 1 Yellow, Road 2 Red β†’ Warning before Road 1 stops.
  3. Road 1 Red, Road 2 Green β†’ Road 1 stops, Road 2 opens.
  4. Road 1 Red, Road 2 Yellow β†’ Warning before Road 2 stops.

Logic Expressions Used:

Boolean expressions were used to determine traffic light behavior:

  • AΜ… = AΜ…B + ABΜ… = A βŠ• B
  • BΜ… = BΜ…t + AΜ…BΜ… xΜ…y + ABΜ…xyΜ…
  • Output Logic:
    • Red1 = AΜ…BΜ…, Yellow1 = AΜ…B, Green1 = A
    • Red2 = ABΜ…, Yellow2 = AB, Green2 = AΜ…

πŸ“Œ Procedure in Multisim

  1. Open Multisim and place components:
    • Logic gates (74LS04N, 74LS86N, 74LS00N, 74LS10N, 74LS08N)
    • Flip-flops (7474N)
    • Traffic light signals
  2. Connect power sources (VCC, GND, Clock Voltage).
  3. Configure switches for manual input.
  4. Implement logic circuit wiring based on Boolean expressions.
  5. Attach probes to traffic light signals for output verification.
  6. Run the simulation to test traffic light transitions.

πŸ”¬ Observations

  • The system successfully controls traffic flow as expected.
  • Inputs trigger correct light transitions based on flip-flop states.
  • Traffic lights function in a cyclic manner, ensuring smooth alternation between roads.

🏁 Conclusion

The two-way traffic system was successfully implemented using logic gates and flip-flops in Multisim. The system accurately followed the four-phase sequence, validating the Boolean expressions and logical design.

πŸ“‚ Project Files Included:

  • Multisim Design File (.ms12) – Full circuit schematic.
  • Simulation Screenshots – Captures of the working model.
  • Project Report (.pdf) – Detailed documentation.

πŸš€ Feel free to explore and modify the design! 😊

About

🚦 Designing a two-way traffic signal using logic gates as a combinational logic circuit and flip-flops for sequential control.

Topics

Resources

Stars

Watchers

Forks