Skip to the content
2 layers53 × 56 mm7-segment display, the printed circuit board in 3D

This project features a custom ATmega328P microcontroller board programmed in C. It drives a 4-digit 7-segment display to implement a simple counter application.

Size
53 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
34
Pads
78
Tracks, vias
140, 0
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
22 Nov 2019
Updated
13 Jan 2025

Overview

7-segment display is an open-source printed circuit board by contispaulcristian, from the contispaulcristian/7-segment-display repository on GitHub. It is a 2-layer board of 53 × 56 mm with 18 parts on 34 nets, routed with 140 tracks and 0 vias.

It is built around the ATMEGA328P-PU. Its parts include 10 resistors, 3 capacitors, 2 ICs, 1 connector and 1 switch. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

4 Digit 7 Segment Display

This project features a custom ATmega328P microcontroller board programmed in C. It drives a 4-digit 7-segment display to implement a simple counter application.


Features:
  • Incremental Counter: Displays an incrementing value (0–9999) on the 4-digit 7-segment display.
  • Reset Control: Button resets the microcontroller and the counter to 0.

Hardware Design:

  • KiCad Schematic: Includes the schematic for easy replication.
  • Can be built on a breadboard, perfboard, or custom PCB.


  • Display pinout


Programming the Board:

  • For detailed instructions on how to program the ATmega328P microcontroller for this project (including fuse configuration and flashing the hex file), please refer to the programming guide in my other repository.

Software Details:

  • Multiplexing: The 4-digit 7-segment display is controlled using multiplexing for efficient pin usage.
  • Timer Interrupt: The counter increments every second using a timer interrupt.

This project demonstrates the use of multiplexed displays, timer interrupts, and basic button controls in embedded systems.

Parts

18
QtyValueFootprintReferences
81 KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3, R4, R5, R6, R7, R8, R9, R10
222 pFCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC1, C2
11 MResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2
110 KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
110 uFCapacitor_THT:CP_Radial_D4.0mm_P1.50mmC3
116 MHzCrystal:Crystal_HC49-4H_VerticalY1
1ATMEGA328P-PUdigikey-footprints:DIP-28_W7.62mmU1
1AVR ISPConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ1
1ResetButton_Switch_THT:SW_PUSH_6mm_H5mmSW1
1SH5461ASDisplay_7Segment:CA56-12SRWAU2

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 7-segment display PCB?

It measures 53 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 7-segment display use?

18 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 7-segment display KiCad files?

From the contispaulcristian/7-segment-display repository on GitHub, at the commit this page was made from: the board is Electronics/7_segment_display/7_segment_display.kicad_pcb and its schematic Electronics/7_segment_display/7_segment_display.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 7-segment display design in my own project?

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