Skip to the content
2 layers68.8 × 53.6 mmSimple counter, the printed circuit board in 3D

A complete embedded device example in Rust using an Arduino, KiCad, and Fusion360.

Size
68.8 × 53.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
8
Nets
55
Pads
90
Tracks, vias
222, 1
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
15 Feb 2025
Updated
7 Mar 2025

Overview

Simple counter is an open-source printed circuit board by sephynox, from the sephynox/simple-counter-rs repository on GitHub, published under the MIT licence. It is a 2-layer board of 68.8 × 53.6 mm with 8 parts on 55 nets, routed with 222 tracks and 1 via.

It is built around the 74HC595. Its parts include 2 capacitors and 2 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Simple 7-Segment Display Controller

A Rust-based PlatformIO Arduino project for controlling a 4-digit 7-segment display with incrementing counter functionality. The purpose of this project is to develop a simple PCB, software, and case design as a template for developing hardware devices from ideation to production.

Features

  • Efficient multiplexed display using 74HC595 shift registers
  • Safe interrupt handling with Mutex
  • Hardware abstraction layer for Arduino integration

Circuit Diagram

Circuit Diagram

Breadboard Design

Breadboard Design

PCB Design

PCB Design Front PCB Design Back

PCB Assembled

PCB Assembled

Case Design

Case Design Case Design

Hardware Setup

  • Arduino Uno R3
  • 2x 74HC595 shift registers
  • 4-digit 7-segment display (common cathode)
  • 2x Ceramic capacitors (100nF)
  • 1x 5-pin header for Arduino pins

Prerequisites

  • PlatformIO Core (CLI) or PlatformIO IDE
    bash
    cargo install cargo-pio
  • Rust toolchain with AVR target:
    bash
    rustup override set nightly
    rustup target add avr-unknown-gnu-atmega328
  • AVR-GCC toolchain
    bash
    sudo apt-get install -y gcc-avr binutils-avr avr-libc

Install Dependencies

bash
sudo apt-get install -y python3-venv # If not already installed
cargo install cargo-pio

Building and Flashing

  1. Clone the repository:

    bash
    git clone https://github.com/sephynox/simple-counter-rs
    cd simple-counter-rs
  2. Build the project:

    bash
    cargo pio build
  3. Flash the firmware to your Arduino Uno:

    bash
    cargo pio exec -- run --target upload

How to Create a New Project

bash
cargo pio new --board uno your-project-name

License

This project is licensed under the MIT License - see the LICENSE file for details.

Parts

8
QtyValueFootprintReferences
2100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1, C2
274HC595Package_DIP:DIP-16_W7.62mm_LongPadsU1, U2
17 Segment LED 3641BH (4Digits)Imported:LEDSEG_0.36_4DS1
1Arduino_Uno_R3_ShieldImported:Arduino_Uno_R3_Shield_TWA1
1GitHubImported:simple-counter-rs-qrGraphic_QR
1KiCad-Logo2_5mm_SilkScreenSymbol:KiCad-Logo2_5mm_SilkScreenGraphic_KiCad

Similar boards

  • 2 layers45.7 × 31.8 mmLEDx16 board, the printed circuit board in 3D

    LEDx16 board

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    36 parts803MIT
  • 2 layers228.6 × 100 mmMongus48, the printed circuit board in 3D

    Mongus48

    ChrisChrisLoLo/beyblock20

    The magnetic, modular, 20-key macropad that can join together to form an ortholinear board

    124 parts335GPL-3.0
  • 2 layers245.1 × 160 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64x4-Home-Computer

    My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

    139 parts326
  • 2 layers100 × 95.1 mmProtoboard-6x4-breakout, the printed circuit board in 3D

    Protoboard-6x4-breakout

    electroniceel/protoboard

    Advanced protoboard layout with 1.27mm pitch for smd parts

    4,745 parts311CC-BY-4.0
  • 4 layers140 × 100 mmDc usv, the printed circuit board in 3D

    Dc usv

    TobleMiner/DC-UPS

    A small DC UPS, designed to keep small appliances like consumer network equipment running during power outages

    351 parts223CERN-OHL-P-2.0
  • 2 layers100.5 × 218.3 mmTraktorino, the printed circuit board in 3D

    Traktorino

    silveirago/traktorino

    The open-source DIY MIDI Controller for DJs.

    96 parts220
  • 2 layers287.8 × 126.7 mmNoName, the printed circuit board in 3D

    NoName

    AlaaSaadAbdo/battoota

    Keyboards

    267 parts188
  • 2 layers100 × 100 mmTommyPROM32-595, the printed circuit board in 3D

    TommyPROM32-595

    TomNisbet/TommyPROM

    Simple Arduino-based EEPROM programmer

    36 parts187

Questions

How big is the Simple counter PCB?

It measures 68.8 × 53.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Simple counter use?

8 parts, built around the 74HC595. 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 Simple counter KiCad files?

From the sephynox/simple-counter-rs repository on GitHub, at the commit this page was made from: the board is schematic/simple-counter.kicad_pcb and its schematic schematic/simple-counter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Simple counter design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).