BY SUDHAKAR NATH CHOWDHURY
YEAR-2025
This is to certify that Sudhakar Nath Chowdhury, a student of Kendriya Vidyalaya, has successfully completed the investigatory project titled 'To design an automatic traffic signal system using suitable combination of logic gates' during the year 2025, as prescribed by the teachers.
I would like to express my sincere gratitude to my teachers, for their invaluable guidance, constant encouragement, and support throughout this project. Their insights were crucial in understanding the complex aspects of digital logic and circuit design. I am also thankful to my parents and friends for their continuous motivation. Finally, I extend my thanks to the school laboratory staff for providing the necessary resources and environment to complete this project.
Aim: "This project aims to design an automatic traffic signal system for a two-way intersection using fundamental digital logic gates and sequential logic concepts."
Method: "The design process involved defining the system's states, creating a state diagram, and deriving Boolean expressions for the traffic light outputs. A counter and decoder approach was utilized to manage the sequential operation, transitioning through different light phases. The proposed circuit was then simulated using a digital logic simulator (e.g., Logisim/TinkerCAD) to verify its functionality."
Findings: "The simulation successfully demonstrated that the designed system accurately controls the traffic lights, cycling through the defined Red, Yellow, and Green phases for both intersecting roads, thereby ensuring organized traffic flow. The project effectively illustrates the practical application of logic gates in real-world control systems."
In the rapidly urbanizing world, efficient traffic management has become a paramount concern for cities globally. The increasing number of vehicles on roads often leads to congestion, delays, and a heightened risk of accidents. To mitigate these challenges, traffic signal systems play a critical role in regulating vehicle and pedestrian movement at intersections, ensuring an orderly and safe flow of traffic. Historically, traffic control was often manual, but with advancements in technology, automated systems have become the standard, offering greater precision, responsiveness, and efficiency.
At the heart of these automated systems lies the field of digital electronics. Digital circuits, built from fundamental components known as logic gates, are capable of performing complex decision-making processes based on binary inputs. These gates—such as AND, OR, NOT, NAND, and NOR—are the basic building blocks that allow electronic systems to process information and control various operations. Their ability to implement Boolean logic makes them ideal for designing control systems that respond to specific conditions, much like the changing phases of a traffic light.
This investigatory project delves into the principles of digital electronics to design a foundational automatic traffic signal system. By utilizing a suitable combination of logic gates, along with sequential logic elements, this project aims to demonstrate how simple logical operations can be combined to create a practical and effective solution for managing traffic flow at a typical two-way intersection. The primary objective is to conceptualize, design, and simulate a traffic light controller that cycles through the necessary red, yellow, and green phases, thereby illustrating the powerful application of digital logic in real-world control mechanisms.
Digital electronics forms the backbone of modern control systems, including the sophisticated traffic management solutions seen in cities today. At its core, digital electronics operates on binary values, typically represented as '0' (low voltage) and '1' (high voltage). The fundamental components that process these binary signals are known as logic gates.
A logic gate is an elementary building block of a digital circuit that performs a basic logical function. It takes one or more binary inputs and produces a single binary output. Each gate operates based on a specific Boolean function, which dictates its output for every possible combination of inputs.
---A---\ | D--O--- Output ---B---/
A | B | Output (A AND B) |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
---A---\ | >--O--- Output ---B---/
A | B | Output (A OR B) |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
---A--o--- Output
A | Output (NOT A) |
---|---|
0 | 1 |
1 | 0 |
---A---\ | D--o--- Output ---B---/
A | B | Output (A NAND B) |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
---A---\ | >--o--- Output ---B---/
A | B | Output (A NOR B) |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 0 |
---A---\ | =--O--- Output ---B---/
A | B | Output (A XOR B) |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
---A---\ | =--o--- Output ---B---/
A | B | Output (A XNOR B) |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Boolean algebra is a branch of algebra in which the values of the variables are the truth values `true` and `false`, usually denoted with `1` and `0` respectively. It is fundamental to the design and analysis of digital circuits.
Karnaugh Maps provide a graphical method for simplifying Boolean expressions, especially for up to 4 or 5 variables. They arrange the truth table values in a way that allows for easy identification of adjacent terms that can be combined to eliminate variables, leading to a minimized Boolean expression and thus a simpler circuit (fewer gates).
Digital circuits are broadly categorized into two types based on their dependence on past inputs:
These are essential components for building sequential logic circuits, particularly for state machines like a traffic light controller.
A flip-flop is a fundamental 1-bit memory element in digital electronics. It can store a binary '0' or '1' and maintain that state until triggered to change by a clock pulse or specific input conditions.
D ----| | | |--- Q Clock --|>| | |--- /Q
Clock | D | Q (next) |
---|---|---|
$\uparrow$ | 0 | 0 |
$\uparrow$ | 1 | 1 |
0, 1, $\downarrow$ | X | Q (current) |
J ----| | | |--- Q Clock --|>| | |--- /Q K ----| |
Clock | J | K | Q (next) |
---|---|---|---|
$\uparrow$ | 0 | 0 | Q (current) |
$\uparrow$ | 0 | 1 | 0 |
$\uparrow$ | 1 | 0 | 1 |
$\uparrow$ | 1 | 1 | $\bar{Q}$ (current) |
A counter is a sequential logic circuit that counts the number of clock pulses applied to its input. It cycles through a predefined sequence of states. For a traffic light system, a counter is used to generate the sequence of states that correspond to the different light phases.
A decoder is a combinational logic circuit that converts binary information from N input lines to a maximum of $2^N$ unique output lines. In the context of a traffic light system, a decoder takes the binary output of a counter (representing the current state) and activates a specific output line corresponding to that state. This activated line then triggers the appropriate traffic lights. For example, a 2-to-4 line decoder would take a 2-bit input (00, 01, 10, 11) and activate one of four output lines.
This section details the systematic approach taken to design the automatic traffic signal system using digital logic gates. The methodology involves defining the system's requirements, outlining its operational states, and translating these into a functional digital circuit.
For this project, a simplified two-way intersection has been considered. This intersection consists of two perpendicular roads:
Each road is equipped with a standard set of traffic lights: Red, Yellow, and Green. The objective is to ensure that traffic flows smoothly and safely by allowing one road's traffic to proceed (Green light) while the perpendicular road's traffic is halted (Red light), with a brief Yellow light phase for transition.
A state diagram is a graphical representation that illustrates the different states a system can be in and the transitions between these states. For our traffic signal system, we define four distinct operational states, which cycle continuously.
The system transitions from one state to the next upon the reception of a clock pulse, after a predefined duration for each state.
Figure 3.1: State Diagram of the Automatic Traffic Signal System
A timing diagram visually represents the changes in the logic levels of the inputs and outputs over time, synchronized with a clock signal. This diagram helps in understanding the sequence and duration of each traffic light phase.
For simplicity in design and simulation, we will assume a fixed duration for each phase, controlled by a clock signal and a counter. The counter will increment with each clock pulse, and its output will determine the current state.
Clock Cycle | Counter Output (Q1 Q0) | NS Green | NS Yellow | NS Red | EW Green | EW Yellow | EW Red |
---|---|---|---|---|---|---|---|
1 | 00 | HIGH | LOW | LOW | LOW | LOW | HIGH |
2 | 01 | LOW | HIGH | LOW | LOW | LOW | HIGH |
3 | 10 | LOW | LOW | HIGH | HIGH | LOW | LOW |
4 | 11 | LOW | LOW | HIGH | LOW | HIGH | LOW |
5 | 00 | HIGH | LOW | LOW | LOW | LOW | HIGH |
... | ... | ... | ... | ... | ... | ... | ... |
Table 3.1: Timing Sequence of Traffic Lights
To implement the sequential logic required for the traffic signal, the following conceptual digital components are selected:
The design process involves deriving the Boolean expressions for each traffic light output based on the counter's state outputs (Q1 and Q0).
Clock
: A periodic pulse signal.Q1
, Q0
: Outputs from the 2-bit counter, representing the current state (Most Significant Bit, Least Significant Bit).NS_Green
(North-South Green Light)NS_Yellow
(North-South Yellow Light)NS_Red
(North-South Red Light)EW_Green
(East-West Green Light)EW_Yellow
(East-West Yellow Light)EW_Red
(East-West Red Light)Based on the state diagram and timing sequence, we construct a truth table mapping the counter outputs (Q1, Q0) to the desired state of each traffic light. A '1' indicates the light is ON (HIGH), and '0' indicates it is OFF (LOW).
Q1 | Q0 | NS_Green | NS_Yellow | NS_Red | EW_Green | EW_Yellow | EW_Red |
---|---|---|---|---|---|---|---|
0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 |
1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
Table 3.2: Truth Table for Traffic Light Outputs
For each output, a K-Map is used to simplify the Boolean expression.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 1 | 0 |
1 | 0 | 0 |
K-Map for NS_Green
Simplified Expression: $NS\_Green = \bar{Q1} \cdot \bar{Q0}$
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 1 |
1 | 0 | 0 |
K-Map for NS_Yellow
Simplified Expression: $NS\_Yellow = \bar{Q1} \cdot Q0$
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 0 |
1 | 1 | 1 |
K-Map for NS_Red
Simplified Expression: $NS\_Red = Q1$
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 0 |
1 | 1 | 0 |
K-Map for EW_Green
Simplified Expression: $EW\_Green = Q1 \cdot \overline{Q0}$
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 0 |
1 | 0 | 1 |
K-Map for EW_Yellow
Simplified Expression: $EW\_Yellow = Q1 \cdot Q0$
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 1 | 1 |
1 | 0 | 0 |
Grouping: The two '1's in the row where Q1=0 form a group, leading to the term $\overline{Q1}$.
Based on the simplified Boolean expressions, the complete digital circuit can be constructed. The circuit will consist of a 2-bit counter, which generates the state signals (Q1, Q0). These signals are then fed into various logic gates (AND, NOT) to produce the control signals for each of the six traffic lights.
Figure 3.2: Conceptual Circuit Diagram for the Automatic Traffic Signal System
Note: In a practical implementation, the NS_Red
and EW_Red
lights would typically be controlled by the inverse of the green/yellow signals for their respective roads, ensuring that when one is green/yellow, the other is red. However, for simplicity and direct mapping to the K-Map results, the expressions derived directly from the truth table are used here. The NOT
gates are used for $\bar{Q1}$ and $\bar{Q0}$ signals which are then fed into the AND gates.
After designing the logic circuit for the automatic traffic signal system, the next crucial step was to verify its functionality through simulation. A digital logic simulator (e.g., Logisim, TinkerCAD Circuits, or a similar online tool) was used to construct and test the proposed circuit. The simulation allowed for real-time observation of the logic levels at various points in the circuit and confirmed the intended sequential operation of the traffic lights.
The designed circuit, comprising a 2-bit counter, NOT gates, and AND gates (as derived from the simplified Boolean expressions), was assembled within the chosen simulation environment. A clock generator was configured to provide continuous pulses, acting as the system's timing mechanism. LEDs were connected to the output lines (NS_Green
, NS_Yellow
, NS_Red
, EW_Green
, EW_Yellow
, EW_Red
) to visually represent the state of each traffic light.
Upon running the simulation, the following observations were made:
The simulation results are best summarized by the observed state of the traffic lights corresponding to the counter's output, which perfectly matched the theoretical timing table.
Clock Cycle | Counter Output (Q1 Q0) | NS Green | NS Yellow | NS Red | EW Green | EW Yellow | EW Red |
---|---|---|---|---|---|---|---|
1 | 00 | ON | OFF | OFF | OFF | OFF | ON |
2 | 01 | OFF | ON | OFF | OFF | OFF | ON |
3 | 10 | OFF | OFF | ON | ON | OFF | OFF |
4 | 11 | OFF | OFF | ON | OFF | ON | OFF |
5 | 00 | ON | OFF | OFF | OFF | OFF | ON |
... | ... | ... | ... | ... | ... | ... | ... |
Table 4.1: Observed Traffic Light Status during Simulation
Instead of a static screenshot, the functionality of the designed automatic traffic signal system will be demonstrated through a live simulation. This simulation will be accessible via a dedicated webpage, allowing for an interactive and dynamic visualization of the circuit in operation. The live demonstration will clearly show the sequential transitions of the traffic lights (Red, Yellow, Green) for both the North-South and East-West roads as the underlying digital logic circuit processes the clock pulses and counter states. This approach provides a more engaging and comprehensive understanding of the system's real-time behavior.
The simulation confirmed that the designed logic circuit accurately implements the desired traffic light sequence, effectively demonstrating the application of sequential and combinational logic in a practical control system.
The successful simulation of the automatic traffic signal system provides compelling evidence for the efficacy of digital logic in designing practical control solutions. This section analyzes the results obtained from the simulation, discusses how the design met its objectives, highlights the key learnings, and acknowledges the inherent limitations of the current model.
The simulation results, as presented in Table 4.1 and demonstrated through the live simulation, clearly validate the theoretical design. The system consistently cycled through the four predefined states (NS Green/EW Red, NS Yellow/EW Red, NS Red/EW Green, NS Red/EW Yellow) in the correct sequence and timing.
The project successfully met its primary objective: "To design and analyze a basic automatic traffic signal system using a combination of digital logic gates." The design process involved a thorough understanding of logic gates, Boolean algebra, and sequential circuit principles. The simulation provided a robust platform to verify the theoretical design, demonstrating a functional and predictable traffic light sequence. This project effectively illustrated the practical application of digital electronics in solving real-world control problems.
Through the course of this project, significant learning was achieved in several key areas:
While the current design successfully demonstrates the core principles of an automatic traffic signal system, it has certain limitations:
This investigatory project successfully achieved its aim of designing and analyzing a basic automatic traffic signal system using a suitable combination of digital logic gates. Through a systematic approach, the project demonstrated the practical application of fundamental concepts in digital electronics, including Boolean algebra, combinational logic, and sequential logic.
The design process involved defining the operational states of a two-way intersection, translating these states into a state diagram and timing diagram, and subsequently deriving simplified Boolean expressions for each traffic light's control using Karnaugh Maps. The core of the system's automation was realized through the implementation of a 2-bit synchronous counter, which reliably sequenced through the defined states.
The simulation of the designed circuit proved invaluable in verifying its functionality. Observations from the live simulation confirmed that the traffic lights transitioned precisely as intended, cycling through the Red, Yellow, and Green phases for both intersecting roads in a synchronized manner. This validation underscores the power of digital logic in creating predictable and efficient control systems.
While the current model effectively illustrates the core principles, it operates under certain limitations, such as fixed timing, the absence of real-time traffic sensing, and a simplified intersection layout. Nevertheless, this project provided a comprehensive learning experience, deepening the understanding of how abstract logical operations can be translated into tangible electronic circuits that govern real-world applications.
The foundational design developed in this project opens several avenues for future enhancements and exploration:
This section lists all the sources, including books, articles, and online resources, that were consulted and referenced during the preparation of this investigatory project.
http://www.cburch.com/logisim/
https://www.tinkercad.com/circuits
https://www.geeksforgeeks.org/
https://www.tutorialspoint.com/digital_electronics/index.htm
https://en.wikipedia.org/wiki/Logic_gate
https://en.wikipedia.org/wiki/Boolean_algebra
https://en.wikipedia.org/wiki/Flip-flop
https://en.wikipedia.org/wiki/Counter
This section contains supplementary material that supports the main body of the project report. It includes detailed calculations, additional diagrams, or any raw data that might be too extensive for the main text but is relevant for a complete understanding of the project.
This sub-section provides the full, step-by-step Karnaugh Map (K-Map) derivations for each traffic light output, showing the grouping of terms and the resulting simplified Boolean expressions.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 1 | 0 |
1 | 0 | 0 |
Grouping: The '1' at (0,0) forms a group of one, leading to the term $\overline{Q1} \cdot \overline{Q0}$.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 1 |
1 | 0 | 0 |
Grouping: The '1' at (0,1) forms a group of one, leading to the term $\overline{Q1} \cdot Q0$.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 0 |
1 | 1 | 1 |
Grouping: The two '1's in the row where Q1=1 form a group, leading to the term $Q1$.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 0 |
1 | 1 | 0 |
Grouping: The '1' at (1,0) forms a group of one, leading to the term $Q1 \cdot \overline{Q0}$.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 0 | 0 |
1 | 0 | 1 |
Grouping: The '1' at (1,1) forms a group of one, leading to the term $Q1 \cdot Q0$.
Q1\Q0 | 0 | 1 |
---|---|---|
0 | 1 | 1 |
1 | 0 | 0 |
Grouping: The two '1's in the row where Q1=0 form a group, leading to the term $\overline{Q1}$.
This section would contain any additional screenshots from the digital logic simulator that further illustrate the circuit's operation at different states or provide a more detailed view of specific circuit components.
If a physical prototype were to be built, this section would include the datasheets for the specific Integrated Circuits (ICs) used, such as:
These datasheets provide crucial information regarding pin configurations, electrical characteristics, and operating conditions of the components.
← Back to Projects