Skip to the content
2 layersSpi project, the printed circuit board in 3D

ATmega32_SPI_Output_Expansion project report for Dr. crallet

Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
62
Pads
120
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 9.0 (file 20241229)
Created
6 Jun 2026
Updated
1 Jul 2026

Overview

Spi project is an open-source printed circuit board by Barazabytes, from the Barazabytes/ATmega32_SPI_Output_Expansion repository on GitHub. It is a 2-layer board with 30 parts on 62 nets.

It is built around the ATMEGA32A-PU and 74HC595. Its parts include 12 resistors, 8 diodes, 4 switches, 2 capacitors and 2 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

ATmega32 SPI Output Expansion

Overview

This project demonstrates SPI-based output expansion using the ATmega32 microcontroller. The system utilizes the Serial Peripheral Interface (SPI) protocol to control multiple output devices through external expansion hardware. The project includes firmware development, hardware design files, simulation resources, technical documentation, and demonstration media.

The repository is organized to support embedded systems development workflows including firmware programming, PCB design, simulation, testing, and documentation.


Project Structure

text
ATmega32_SPI_Output_Expansion/
│
├── README.md
│
├── firmware/
│   ├── src/
│   ├── include/
│   └── hex/
│
├── kicad/
│   ├── schematic/
│   ├── pcb/
│   └── gerber/
│
├── simulide/
│   ├── circuit/
│   └── screenshots/
│
├── documentation/
│   ├── block_diagram.png
│   ├── flowchart.png
│   ├── spi_configuration.md
│   ├── pin_mapping_table.md
│   └── test_results.md

Directory Description

firmware/

Contains all embedded software files for the ATmega32 microcontroller.

src/

Stores source code files such as:

  • main.c
  • SPI driver implementation
  • Peripheral control logic

include/

Contains header files:

  • Register definitions
  • Function prototypes
  • Macro definitions
  • Configuration files

hex/

Compiled firmware output files:

  • .hex
  • .elf
  • Binary images ready for flashing

kicad/

Contains hardware design resources created using KiCad.

schematic/

Circuit schematic files:

  • .kicad_sch
  • PDF schematic exports

pcb/

PCB layout design files:

  • Board routing
  • Component placement
  • PCB design assets

gerber/

Manufacturing-ready Gerber files:

  • Copper layers
  • Silkscreen
  • Drill files
  • Fabrication outputs

simulide/

Simulation resources for testing and demonstration.

circuit/

SimulIDE project files and circuit simulations.

screenshots/

Images captured from simulation runs and testing.


documentation/

Technical documentation and supporting project materials.

block_diagram.png

High-level system architecture diagram.

flowchart.png

Program execution and logic flow representation.

spi_configuration.md

Detailed explanation of SPI setup and register configuration.

pin_mapping_table.md

ATmega32 pin assignments and external device connections.

test_results.md

System testing observations, validation results, and performance analysis.


media/

Stores demonstration and presentation resources.

demonstration_video_link.txt

Contains the link to the project demonstration video.


Features

  • SPI communication using ATmega32
  • Output expansion through serial interface
  • Embedded C firmware development
  • Hardware schematic and PCB design
  • Simulation support using SimulIDE
  • Technical documentation and testing resources

Tools and Technologies

  • ATmega32 Microcontroller
  • AVR-GCC
  • KiCad
  • SimulIDE
  • Embedded C
  • SPI Protocol

Applications

This project can be used for:

  • GPIO expansion
  • LED matrix control
  • Embedded systems learning
  • Peripheral interfacing
  • Industrial output control systems
  • Educational laboratory demonstrations

Author

Developed as an embedded systems and SPI communication project using the ATmega32 microcontroller platform.

Parts

30
QtyValueFootprintReferences
8200Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7, R8
8LEDLED_THT:LED_D3.0mmD1, D2, D3, D4, D5, D6, D7, D8
410kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR9, R10, R11, R12
4SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2, SW3, SW4
222pCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC1, C2
174HC595Package_DIP:DIP-16_W7.62mmU2
18MHzCrystal:Crystal_HC49-4H_VerticalY1
1ATmega32A-PPackage_DIP:DIP-40_W15.24mmU1
1Barrel_JackConnector_BarrelJack:BarrelJack_GCT_DCJ200-10-A_HorizontalJ1

Similar boards

  • 2 layers347.7 × 146.6 mmMysterium pcb, the printed circuit board in 3D

    Mysterium pcb

    coseyfannitutti/mysterium

    TKL keyboard that can be entirely assembled using only through hole components, including usb type-c

    227 parts541GPL-3.0
  • 2 layers344.4 × 130.8 mmSesame, the printed circuit board in 3D

    Sesame

    str-dst/sesame

    Alice type ergo keyboard using only THT parts

    168 parts331
  • 2 layers364.4 × 167.3 mmRedherring, the printed circuit board in 3D

    Redherring

    dcpedit/redherring

    Red Herring Keyboard PCB and case files

    226 parts253CC-BY-4.0
  • 2 layers228 × 114 mmPlanck thk, the printed circuit board in 3D

    Planck thk

    olkb/planck_thk

    Planck Through Hole Kit

    134 parts169GPL-3.0
  • 2 layers371.5 × 145.3 mmBasketweave, the printed circuit board in 3D

    Basketweave

    null-ll/basketweave

    Through-hole Alice-style keyboard with arrow keys and a rotary encoder

    177 parts129GPL-2.0
  • 2 layers439 × 141.6 mmAek2 usb, the printed circuit board in 3D

    Aek2 usb

    str-dst/aek2_usb

    drop-in replacement pcb for the AEK II

    241 parts55
  • 2 layers317.3 × 154.8 mmLCK75, the printed circuit board in 3D

    LCK75

    lyso1/LCK75

    a 75% through-hole keyboard designed by myself with inspiration from the CFTKB Discipline and Yiancar Gingham

    207 parts45
  • 2 layers285.8 × 124.6 mmPunk75, the printed circuit board in 3D

    Punk75

    dsanchezseco/punk75

    Ortholinear keyboard with 75 keys and all components through hole

    194 parts44GPL-3.0

Questions

What parts does the Spi project use?

30 parts, built around the ATMEGA32A-PU and 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 Spi project KiCad files?

From the Barazabytes/ATmega32_SPI_Output_Expansion repository on GitHub, at the commit this page was made from: the board is kicad/pcb/spi_project.kicad_pcb and its schematic kicad/schematic/spi_project.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Spi project design in my own project?

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