Skip to the content
2 layers134.6 × 70.9 mm2waytraffic, the printed circuit board in 3D

This project is a two-way traffic light controller designed using basic digital electronics ICs. The circuit controls the Red, Yellow, and Green signals for two roads, Road A and Road B, in a fixed cyclic sequence.

Size
134.6 × 70.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
41
Pads
210
Tracks, vias
329, 4
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Jun 2026
Updated
12 Jun 2026

Overview

2waytraffic is an open-source printed circuit board by parasmane111-ai, from the parasmane111-ai/Traffic-Light-Controller-PCB repository on GitHub. It is a 2-layer board of 134.6 × 70.9 mm with 30 parts on 41 nets, routed with 329 tracks and 4 vias.

It is built around the 74LS04PC, 74LS32SC and 74LS74PC, with the 74LS86 among its other parts. Its parts include 13 ICs, 8 resistors, 7 diodes and 2 capacitors.

Main components

4

README

README.md

Traffic Light Controller using 555 Timer, 7490 Counter, 74LS74 and Logic Gates

This project is a two-way traffic light controller designed using basic digital electronics ICs.
The circuit controls the Red, Yellow, and Green signals for two roads, Road A and Road B, in a fixed cyclic sequence.

The main purpose of this project is to understand how timing, counting, decoding, flip-flop state control, and output logic can be combined to build a practical digital control system.


Project Overview

In this project, a 555 timer is used in astable mode to generate continuous clock pulses.
These clock pulses are applied to a 7490 decade counter, which is configured as a MOD-10 counter.

The MOD-10 counter counts from 0 to 9 and then resets back to 0, creating a repeated timing cycle.
The output bits of the counter are decoded using logic gates such as NOT, AND, OR, and XOR gates.
These decoded signals are then used with 74LS74 D flip-flops to control the traffic light states.

Finally, the output logic drives LEDs representing the traffic lights for Road A and Road B.


Working Principle

The working of the circuit can be divided into the following stages:

  1. Clock Generation

    The 555 timer is configured in astable mode.
    It produces continuous square wave clock pulses.
    The timing of these pulses depends on external components such as resistors, capacitors, and diode.

  2. MOD-10 Counting

    The clock pulses are given to the 7490 counter.
    The 7490 is configured as a MOD-10 decade counter, so it counts from 0 to 9 repeatedly.
    This count sequence is used as the timing base for the traffic light operation.

  3. Logic Decoding

    The counter outputs are connected to logic gates.
    The combination of 74LS04, 74LS08, 74LS32, and 74LS86 ICs is used to decode specific count conditions.
    These decoded outputs decide which traffic signal should be ON at a particular state.

  4. State Control

    The 74LS74 D flip-flop is used for stable state control.
    It helps in maintaining proper switching between the traffic light states.

  5. Output Indication

    LEDs are used to represent Red, Yellow, and Green signals for both roads.
    Current-limiting resistors are connected with LEDs to protect them from excess current.


Traffic Light Sequence

The traffic light controller follows a four-state sequence:

StateRoad ARoad B
S0GreenRed
S1YellowRed
S2RedGreen
S3RedYellow

After state S3, the sequence returns to S0 and repeats continuously.


Main Components Used

ComponentPurpose
NE555 TimerGenerates clock pulses in astable mode
7490 CounterWorks as MOD-10 counter for timing sequence
74LS74 D Flip-FlopStores and controls logic states
74LS04 NOT GateProvides signal inversion
74LS08 AND GateUsed for logic decoding and gating
74LS32 OR GateCombines logic conditions
74LS86 XOR GateUsed for logic operation and decoding
LEDsIndicate Red, Yellow, and Green signals
220Ω ResistorsLimit LED current
R1, R2, C1, C2, D1Timing components for 555 timer

Software and Tools Used

  • Proteus – Circuit schematic and simulation
  • KiCad – Schematic design, footprint assignment, PCB layout
  • Digital Logic ICs – 555, 7490, 74LS74, 74LS04, 74LS08, 74LS32, 74LS86

PCB Design

The PCB layout was designed in KiCad using through-hole components.
All major ICs and output LEDs are placed in a structured layout for easy understanding and hardware implementation.

Design details:

  • 2-layer PCB layout
  • Through-hole DIP IC packages
  • Separate LED outputs for Road A and Road B
  • Current-limiting resistors for each LED
  • ERC completed with 0 errors
  • Footprints assigned for all components

Folder Structure

text
Traffic-Light-Controller/
│
├── README.md
│
├── Proteus_Schematic/
│
├── KiCad_PCB/

Parts

30
QtyValueFootprintReferences
6220RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3, R4, R5, R6, R7, R8
474LS08Package_DIP:DIP-14_W7.62mmU4, U5, U11, U12
374LS04Package_DIP:DIP-14_W7.62mmU6, U7, U10
272RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2
274LS32Package_DIP:DIP-14_W7.62mmU8, U13
2LED_GREENLED_THT:LED_D5.0mmD4, D7
2LED_REDLED_THT:LED_D5.0mmD5, D6
11N914Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1
17490Package_DIP:DIP-14_W7.62mmU2
174LS74Package_DIP:DIP-14_W7.62mmU3
174LS86Package_DIP:DIP-14_W7.62mmU9
1C_Small_USCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1
1C_Small_USCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC2
1LED_LEDLED_THT:LED_D5.0mmD3
1LED_YELLOWLED_THT:LED_D5.0mmD2
1SMD 555Package_DIP:DIP-8-16_W7.62mmU1

Similar boards

  • 4 layers337.6 × 105.7 mmISA CGA, the printed circuit board in 3D

    ISA CGA

    hkzlab/CGA_Redux

    The Color Graphics Adapter Redux board is a more or less faithful clone of the original IBM CGA, based on the original schematics

    170 parts56
  • 4 layers194.5 × 188.6 mmMyCpu, the printed circuit board in 3D

    MyCpu

    fortinsylvain/MyCpu

    Home brew CPU Hardware with 1-bit ALU implementation using 74LSxx, a micro-code and assembler coded in C#.

    162 parts18MIT
  • 2 layers236.8 × 169.8 mmTK2000, the printed circuit board in 3D

    TK2000

    clemarfolly/Microdigital-TK2000

    Reprodução da PCB do TK-2000 da Microdigital, clone do Micro-Professor MPF-II

    212 parts17
  • 2 layers221.5 × 149.5 mmZX1, the printed circuit board in 3D

    ZX1

    misterblack1/zenith_zt1

    Information gathered on the Zenith ZT-1 / ZT-10 / ZT-11 and ZTX/ZT-x-A variants

    140 parts5
  • 2 layers244 × 244 mm6809PC-6U, the printed circuit board in 3D

    6809PC-6U

    danwerner21/6809PC

    6809 PC

    167 parts2
  • 2 layersRogelio Pineda part 7-AMLDC-2044B, the printed circuit board in 3D

    Rogelio Pineda part 7-AMLDC-2044B

    ForgottenMachines/Entrex

    The technologies documented here will include all like-kind systems manufactured by Nixdorf, Redifon, ROCC & Mera, all originally designed by Entrex Inc, Burlington, MA USA.

    332 parts1
  • 4 layers254 × 137.7 mmS100 ColorMagic-1.1-006, the printed circuit board in 3D

    S100 ColorMagic-1.1-006

    RichCini/LomasBoards

    Small repository of files/data related to Lomas Data Products S-100 boards.

    150 parts1
  • 2 layers486 × 306.3 mmMonacoGP, the printed circuit board in 3D

    MonacoGP

    stonedDiscord/MonacoGP

    Sega MonacoGP TTL Boards

    257 parts1

Questions

How big is the 2waytraffic PCB?

It measures 134.6 × 70.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 2waytraffic use?

30 parts, built around the 74LS04PC, 74LS32SC, 74LS74PC and 74LS86. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the 2waytraffic KiCad files?

From the parasmane111-ai/Traffic-Light-Controller-PCB repository on GitHub, at the commit this page was made from: the board is PCB_Design/2waytraffic.kicad_pcb and its schematic PCB_Design/2waytraffic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 2waytraffic design in my own project?

Its repository states no licence, so its author keeps all rights: ask parasmane111-ai before reusing the design.