Skip to the content
2 layers166.4 × 181.6 mmCalculator ver1, the printed circuit board in 3D

The core 4-bit binary adder is implemented entirely using discrete transistor-resistor logic. The resulting 5-bit binary value is converted to BCD using 74HC-series logic and displayed on two 7-segment displays.

Size
166.4 × 181.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
308
Nets
278
Pads
861
Tracks, vias
1,170, 43
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
5 Sep 2026
Updated
9 Sep 2026

Overview

Calculator ver1 is an open-source printed circuit board by PhdWizards, from the PhdWizards/4-Bit-Discrete-Transistor-Adder repository on GitHub. It is a 2-layer board of 166.4 × 181.6 mm with 308 parts on 278 nets, routed with 1,170 tracks and 43 vias.

It is built around the CD4511BE, SN74HC08N and 74HC04N, with the CD74HC283E, SN74HC32N and MF-R075 among its other parts. Its parts include 178 resistors, 100 transistors, 10 ICs, 9 switches and 6 diodes. It belongs with the lEDs and displays boards of this library.

Main components

6

README

README.md

4-Bit Transistor Adder

A fully functional 4-bit binary adder built using discrete transistor-resistor logic and standard 74HC-series logic ICs. The project was developed from the initial logic design and transistor-level simulation to a custom two-layer PCB, PCB manufacturing, component assembly, and hardware testing. The final circuit accepts two 4-bit binary numbers, adds them together, converts the resulting 5-bit value into decimal digits, and displays the result on two 7-segment displays.

Overview

The main goal of this project was to design and build a physical digital calculator without relying on a microcontroller for the main arithmetic logic. The core 4-bit adder was developed using discrete transistor-resistor logic. The project includes:

  • 4-bit binary addition
  • Discrete transistor-based logic
  • 5-bit binary result
  • Binary-to-BCD conversion
  • Two 7-segment displays
  • CD4511 BCD-to-7-segment drivers
  • Manual binary input using switches
  • LED indicators for the binary result
  • Custom two-layer PCB
  • Complete KiCad schematic
  • PCB design and Gerber manufacturing files
  • Interactive Bill of Materials
  • Falstad and Tinkercad simulations

Specifications

ParameterValue
Operation4-bit + 4-bit binary addition
Input A4 bits
Input B4 bits
Result5 bits
Result range0–30
Supply voltage5 V
Power inputUSB-C
PCB2-layer
PCB size166.37 × 181.61 mm
Main transistorBC337-25
Transistors100
Resistors178
7-segment displays2
BCD drivers2 × CD4511
Binary input switches8
LEDs6
MicrocontrollerNone

How It Works

Two 4-bit binary values are entered using eight switches:

text
A3 A2 A1 A0
B3 B2 B1 B0

The values are added together by the transistor-based logic, producing a 5-bit result:

text
S4 S3 S2 S1 S0

The maximum possible result is:

text
1111₂ + 1111₂ = 11110₂

which corresponds to:

text
30₁₀

The 5-bit result is then converted into BCD:

text
        5-bit Binary Result
                  │
                  ▼
          Binary-to-BCD
           Conversion
                  │
          ┌───────┴───────┐
          ▼               ▼
      Tens BCD         Ones BCD
          │               │
          ▼               ▼
       CD4511           CD4511
          │               │
          ▼               ▼
      7-Segment        7-Segment
       Display           Display

For example:

text
10101₂ = 21₁₀

The two displays therefore show:

text
21

Hardware

Final Board

Final Calculator Working Calculator

PCB Design

The PCB was designed in KiCad as a two-layer board.

Front Side

PCB Front

Back Side

PCB Back

All Copper Layers

PCB All Layers

3D Model

PCB 3D Front PCB 3D Back

Schematic

The complete schematic was designed in KiCad and contains the transistor-based adder, logic ICs, BCD conversion, display drivers, inputs, indicators, and power circuitry. Sum-Schematic Rest-Schematic A PDF version of the schematic is included in the schematic directory. Open Schematic PDF

Bill of Materials

An Interactive BOM generated from KiCad is included in the repository. It provides:

  • Component references
  • Component values
  • Footprints
  • Quantities
  • Front and back PCB views
  • Component locations Open Interactive BOM

Simulation

Simulation was an important part of the development process. Two different simulation environments were used for different stages of the project.

Falstad

Falstad was used to learn and develop the transistor-based logic from the ground up. The 4-bit adder was built step by step, starting from transistor-level digital logic and gradually combining the individual stages into a complete working 4-bit adder. A downloadable Falstad simulation file is also included in the repository. Open Simulation Documentation

Tinkercad

Tinkercad was used to verify the digital logic and binary-to-BCD conversion. The interactive Tinkercad simulation can be accessed through the simulation documentation.

Development Process

The project was developed through the following stages:

text
Concept
   ↓
Logic Design
   ↓
Transistor-Level Development
   ↓
Falstad Simulation
   ↓
Working 4-Bit Adder
   ↓
Tinkercad Simulation
   ↓
KiCad Schematic
   ↓
PCB Layout
   ↓
PCB Manufacturing
   ↓
Component Assembly
   ↓
Hardware Testing

The purpose of this workflow was to validate the logic progressively before moving to the final physical implementation.

Manufacturing Files

The repository contains the files required to reproduce the PCB. The pcb directory includes:

  • KiCad PCB files
  • Gerber manufacturing files The schematic directory contains the KiCad schematic and PDF documentation.

Repository Structure

text
4-Bit-Transistor-Adder/
│
├── 📁 bom/
│   └── Interactive BOM
│
├── 📁 images/
│   ├── Project photos
│   ├── PCB renders
│   ├── PCB layers
│   ├── Schematic images
│   └── Simulation screenshots
│
├── 📁 pcb/
│   ├── KiCad PCB files
│   └── Gerber files
│
├── 📁 schematic/
│   ├── KiCad schematic
│   └── Schematic PDF
│
├── 📁 simulation/
│   ├── README.md
│   └── Falstad simulation file
│
└── README.md

Tools Used

  • KiCad — schematic and PCB design
  • Falstad Circuit Simulator — transistor-level logic development
  • Tinkercad Circuits — digital logic simulation

Parts

308
QtyValueFootprintReferences
1561kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R10, R11, R100, R101, R102, R103, R104, R105, R106, R107, R108, R109, R110, R111, R112 +140
100NPNPackage_TO_SOT_THT:TO-92Q1, Q2, Q10, Q11, Q12, Q13, Q14, Q15, Q16, Q17, Q18, Q19, Q20, Q21, Q22, Q100 +84
14330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR165, R166, R167, R168, R169, R170, R171, R172, R173, R174, R175, R176, R177, R178
9MTS-102MTS-102:MTS-102SW1, SW2, SW3, SW4, SW5, SW6, SW7, SW8, SW9
6330RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R160, R161, R162, R163, R164
6LEDLED_THT:LED_D5.0mmD1, D2, D3, D4, D5, D6
3SN74HC08NSN74HC08N:DIP794W45P254L1969H508Q14U2, U3, U4
25.1kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3
2CD4511BECD4511BE:DIP794W45P254L1969H508Q16U7, U8
2D148KDisplay_7Segment:D1X8KU9, U10
1100nFCapacitor_THT:C_Radial_D5.0mm_H5.0mm_P2.00mmC1
1100uFCapacitor_THT:CP_Radial_D12.5mm_P7.50mmC2
174HC04N74HC04N:DIP764W47P254L1920H431Q14U1
1CD74HC283ECD74HC283E:DIP794W45P254L1969H508Q16U6
1LOGOfootprints:logocatg
1MF-R075Fuse:Fuse_Bourns_MF-RHT070F1
1SN74HC32NSN74HC32N:DIP794W45P254L1969H508Q14U5
1USB_C_Receptacle_PowerOnly_24PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

Similar boards

  • 2 layersSchematics, the printed circuit board in 3D

    Schematics

    jamestiotio/compstruct

    SUTD 2020 50.002 Computation Structures Code Dump

    13 parts3MIT
  • 2 layers100 × 140 mmFULL PC, the printed circuit board in 3D

    FULL PC

    Iluhaprog/IN-machine

    Homemade computer architecture. Schemes, model and tools.

    97 parts
  • 4 layers207 × 78.7 mmRpihw, the printed circuit board in 3D

    Rpihw

    quorten/rpihw

    Raspberry Pi SPI devices board design

    101 partsUnlicense
  • 2 layers100 × 100 mmAbcPcClk, the printed circuit board in 3D

    AbcPcClk

    sarocs/Atanasoff-Berry-Computer

    60 parts
  • 2 layers390 × 120 mmDisplays c, the printed circuit board in 3D

    Displays c

    JuanPoueriet/automatic-spork

    Máquina de ruleta física de casino. 6 PCBs: pic32main (cerebro), wheel (rueda de LEDs), displaysa/b/c (paneles de 7 segmentos en cascada) y buttons (botonera).

    49 parts
  • 4 layers48.5 × 32 mmPotsToUSBPCB, the printed circuit board in 3D

    PotsToUSBPCB

    trfaa001/Potentiometer-pedals-to-USB

    Arduino project that uses potentiometers as game pedals.

    32 partsGPL-3.0
  • 2 layers59.6 × 65.9 mmREF1011, the printed circuit board in 3D

    REF1011

    RWeick/REF1011-Sega-GameGear-Pro-Action-Replay

    The JEDEC PAL dump, ROM dump, and Kicad PCB files for the Sega GameGear Pro Action Replay.

    18 parts5GPL-3.0
  • 6 layers313 × 259.5 mmOpen8-vga motherboard, the printed circuit board in 3D

    Open8-vga motherboard

    adham404/Open8-VGA

    An 8-bit computer from 74HC logic: microcoded CPU, VGA, PS/2, on-board editor and assembler. Play it in your browser.

    322 parts3MIT

Questions

How big is the Calculator ver1 PCB?

It measures 166.4 × 181.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Calculator ver1 use?

308 parts, built around the CD4511BE, SN74HC08N, 74HC04N and CD74HC283E. 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 Calculator ver1 KiCad files?

From the PhdWizards/4-Bit-Discrete-Transistor-Adder repository on GitHub, at the commit this page was made from: the board is pcb/Calculator_ver1.kicad_pcb and its schematic schematic/Calculator_ver1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Calculator ver1 design in my own project?

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