Skip to the content
2 layers71.3 × 40.8 mmATmega8 dev board, the printed circuit board in 3D

🚦 KiCad PCB design for a Model Railway Traffic Light Controller using an ATmega328P, with schematic, routed PCB layout, 3D preview, and complete project files.

Size
71.3 × 40.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
33
Pads
73
Tracks, vias
157, 0
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
15 May 2026
Updated
15 May 2026

Overview

ATmega8 dev board is an open-source printed circuit board by Hirusha785, from the Hirusha785/model-railway-traffic-light-controller-pcb repository on GitHub. It is a 2-layer board of 71.3 × 40.8 mm with 23 parts on 33 nets, routed with 157 tracks and 0 vias.

It is built around the ATMEGA328P-PU. Its parts include 7 capacitors, 6 diodes, 5 resistors, 2 connectors and 1 IC. It belongs with the microcontroller boards boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

🚦 Model Railway Traffic Light Controller PCB

A professional PCB design project for a Model Railway Traffic Light Controller designed using KiCad. The circuit is based on an ATmega328P microcontroller and controls three railway signal LEDs: red, amber, and green.

This repository includes the complete KiCad project files, schematic design, PCB layout, routed board, and 3D PCB preview.


📌 Project Overview

This project demonstrates the design of a microcontroller-based railway signal controller PCB.
The board is designed to operate using a 5V DC power input and uses an ATmega328P to control LED signal outputs.

The PCB includes:

  • Power input section
  • ATmega328P microcontroller circuit
  • Crystal oscillator circuit
  • Reset circuit
  • Serial programming header
  • Red, amber, and green LED outputs
  • Complete PCB routing
  • 3D board visualization

🧰 Tools Used

  • KiCad
  • KiCad Schematic Editor
  • KiCad PCB Editor
  • KiCad 3D Viewer

⚙️ Main Components

ComponentDescription
ATmega328P-PUMain microcontroller
Red LEDRed railway signal output
Amber LEDAmber railway signal output
Green LEDGreen railway signal output
Crystal OscillatorClock source for the microcontroller
ResistorsLED current limiting and circuit support
CapacitorsFiltering and oscillator support
1N4007 DiodePower protection
Screw Terminal5V DC power input
Pin HeaderSerial/programming connection

🖼️ Project Images

Schematic Design

Screenshot 2026-05-14 181206

Figure 1: Schematic design of the Model Railway Traffic Light Controller.


PCB Layout and Routing

Screenshot 2026-05-14 181310 Screenshot 2026-05-14 210840

Figure 2: PCB layout showing component placement and routed tracks.


3D PCB Preview

Screenshot 2026-05-14 181333 Screenshot 2026-05-14 181415 Screenshot 2026-05-14 181454 Screenshot 2026-05-14 181521

Figure 3: 3D visualization of the completed PCB.


🔌 How It Works

The circuit uses an ATmega328P microcontroller to control three LED outputs representing railway traffic signals:

  • 🟢 Green
  • 🟠 Amber
  • 🔴 Red

The board receives power through a 5V DC screw terminal input.
The crystal oscillator provides the clock signal for the microcontroller, while the programming header provides access to GND, +5V, TX, RX, and DTR pins for serial programming and communication.


Parts

23
QtyValueFootprintReferences
4100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC2, C3, C6, C7
21N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1, D3
2220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3, R4
222pFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC4, C5
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
110uFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC1
1330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
1ATmega328P-PPackage_DIP:DIP-28_W7.62mmU1
1AmberLED_THT:LED_D8.0mmD5
1Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_HorizontalJ3
1CrystalCrystal:Crystal_HC49-U_VerticalY1
1GreenLED_THT:LED_D8.0mmD6
1LED_SmallLED_SMD:LED_1206_3216MetricD2
1R_SmallResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
1RedLED_THT:LED_D8.0mmD4
1Screw_Terminal_01x02TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ1

The 22 most common of 23 parts.

Similar boards

  • 2 layers68.8 × 53.6 mmZArduino, the printed circuit board in 3D

    ZArduino

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    46 parts269
  • 2 layers76.3 × 122.8 mmDiscipad pcb, the printed circuit board in 3D

    Discipad pcb

    coseyfannitutti/discipad

    17-key numpad assembled with only through hole components, including usb type-c

    63 parts221GPL-3.0
  • 2 layers111.3 × 106.4 mmSuper Sixteen v1, the printed circuit board in 3D

    Super Sixteen v1

    matthewcieplak/super-sixteen

    Code and schematics for the Super Sixteen Eurorack sequencer

    141 parts171
  • 2 layers247.6 × 99.2 mmRomeo pcb, the printed circuit board in 3D

    Romeo pcb

    coseyfannitutti/romeo

    Staggered 40% keyboard pcb that can be assembled with only through hole components, including USB Type-C

    138 parts148GPL-3.0
  • 2 layers90 × 140 mmDrumkid, the printed circuit board in 3D

    Drumkid

    mattybrad/drumkid

    Version 4 was the first successful working design, with full code, schematics, Gerbers, etc available on GitHub.

    70 parts137
  • 2 layers238.1 × 375.5 mmFramework, the printed circuit board in 3D

    Framework

    stevennguyen/framework

    Ortholinear keyboard with a knob

    197 parts131
  • 2 layersLM80C R6, the printed circuit board in 3D

    LM80C R6

    leomil72/LM80C

    A Z80-based homebrew computer withTMS9918, AY-3-8910, Z80 CTC, Z80 PIO, and Z80 SIO

    153 parts123GPL-3.0
  • 2 layers145.3 × 44.5 mmScout, the printed circuit board in 3D

    Scout

    oskitone/scout

    3D-printed, Arduino-compatible, 17-key mono synth. Squeeeee!

    48 parts114

Questions

How big is the ATmega8 dev board PCB?

It measures 71.3 × 40.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ATmega8 dev board use?

23 parts, built around the ATMEGA328P-PU. 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 ATmega8 dev board KiCad files?

From the Hirusha785/model-railway-traffic-light-controller-pcb repository on GitHub, at the commit this page was made from: the board is ATmega8_dev_board.kicad_pcb and its schematic ATmega8_dev_board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ATmega8 dev board design in my own project?

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