Skip to the content
4 layers60 × 47 mmStepper controller, the printed circuit board in 3D

4-layer KiCad PCB: Arduino-compatible stepper motor controller (ATmega328P + DRV8825)

Size
60 × 47 mm
Copper layers
4
Thickness
1.6 mm
Parts
63
Nets
71
Pads
250
Tracks, vias
583, 38
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
15 Oct 2026
Updated
15 Oct 2026

Overview

Stepper controller is an open-source printed circuit board by abdallah-yasser, from the abdallah-yasser/stepper-motor-controller-pcb repository on GitHub, published under the MIT licence. It is a 4-layer board of 60 × 47 mm with 63 parts on 71 nets, routed with 583 tracks and 38 vias.

It is built around the ATMEGA328P-AU, CH340G and DRV8825PWP, with the SS34 among its other parts. Its parts include 24 capacitors, 18 resistors, 8 connectors, 4 ICs and 4 diodes. It belongs with the robots and motor control boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

README.md

Stepper Motor Controller PCB

An Arduino-compatible stepper motor controller board: ATmega328P + DRV8825 on a compact 4-layer PCB

KiCad Layers MCU License

3D render of the controller board

Table of Contents

Overview

A single-board solution for driving a bipolar stepper motor. It combines a microcontroller, a USB interface, a stepper driver and power conditioning on one 60 × 47 mm PCB. Because the board is Arduino Uno compatible, it can be programmed from the Arduino IDE over USB. Typical uses include small CNC axes, 3D-printer-style mechanisms, camera sliders and robotic joints.

Key Features

  • ATmega328P microcontroller with a 16 MHz crystal, reset button and ISP header for bootloader flashing.
  • DRV8825 stepper driver:
    • Up to 1/32 microstepping
    • Adjustable current limit through the on-board potentiometer
    • 4-pin motor output terminal
  • USB-to-UART through a CH340G and a Micro-USB connector, for programming and serial communication.
  • Robust power input:
    • Screw terminal for the motor supply
    • SS34 Schottky diode for reverse-polarity protection
    • NCP1117 5 V LDO regulator
    • Resettable polyfuse on USB
  • 4 filtered analog inputs on 3-pin headers, each with an RC low-pass filter (1.6 kΩ / 100 nF, fc ≈ 1 kHz) for clean sensor readings.
  • Power and indicator LEDs.

Specifications

ParameterValue
Board size60 × 47 mm, rounded corners
Layer stack4 layers: F.Cu / In1.Cu / In2.Cu / B.Cu
Component count63 footprints, mostly SMD
MicrocontrollerATmega328P-A (TQFP-32) @ 16 MHz
Motor driverTI DRV8825
USB bridgeWCH CH340G
Logic supply5 V (NCP1117-5.0)
EDA toolKiCad 10

Schematic

Full schematic

The design is organized into clearly separated functional blocks:

BlockMain componentsFunction
Stepper motor driverDRV8825, sense resistors, bulk capacitorsDrives the stepper coils with current regulation
Power regulationNCP1117-5.0, SS34, filter capacitorsProtected 5 V logic rail
MicrocontrollerATmega328P-A, 16 MHz crystal, reset, ISPControl logic
USB / UARTCH340G, Micro-USB, polyfuseProgramming and serial link
Low-pass filters4 × RC networksSensor signal conditioning

PCB Layout

Front copperAll layers
Front copper layerAll layers

Layout notes:

  • The 4-layer stack-up has copper pour zones on the inner layers (In1.Cu / In2.Cu), with signal routing mainly on the top layer.
  • Most components are SMD on the top side, which keeps assembly single-sided.
  • The power input, motor terminal, USB and sensor headers are placed along the board edges for easy cabling.

Getting Started

  1. Install KiCad 10 or newer.
  2. Clone the repository:
    bash
    git clone https://github.com/abdallahnafady54321-bit/stepper-motor-controller-pcb.git
  3. Open hardware/stepper_controller.kicad_pro.
  4. The custom DRV8825 symbol lives in hardware/my_project_lib.kicad_sym, and the included sym-lib-table links it automatically.

Manufacturing: generate Gerber and drill files from the PCB editor (File → Fabrication Outputs). The board can be ordered from any standard 4-layer PCB service.

Project Structure

text
stepper-motor-controller-pcb/
├── hardware/
│   ├── stepper_controller.kicad_pro   # KiCad project
│   ├── stepper_controller.kicad_sch   # Schematic
│   ├── stepper_controller.kicad_pcb   # PCB layout
│   ├── my_project_lib.kicad_sym       # Custom DRV8825 symbol
│   └── sym-lib-table                  # Project symbol library table
└── images/                            # Renders and screenshots

Future Work

  • Add jumpers for selecting the microstepping mode and break out the DRV8825 FAULT pin.
  • Add limit-switch inputs with optional optical isolation.
  • Assemble a prototype and validate it with firmware, for example AccelStepper.

Author

Abdallah Yasser, Mechatronics Engineering GitHub

License

This project is licensed under the MIT License. See LICENSE for details.

Parts

63
QtyValueFootprintReferences
15100nFCapacitor_SMD:C_0805_2012MetricC4, C6, C7, C8, C9, C12, C13, C14, C15, C22, C25, C26, C27, C28, C29
41.6kΩResistor_SMD:R_0805_2012MetricR1, R2, R3, R4
422pFCapacitor_SMD:C_0805_2012MetricC1, C2, C10, C11
4Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1, J3, J5, J7
3LEDLED_SMD:LED_1206_3216MetricD2, D3, D4
20.1ΩResistor_SMD:R_0805_2012MetricR17, R21
2100ΩResistor_SMD:R_0805_2012MetricR18, R19
21MΩResistor_SMD:R_0805_2012MetricR15, R20
21kΩResistor_SMD:R_0805_2012MetricR5, R6
24.7uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC23, C24
2510ΩResistor_SMD:R_0805_2012MetricR13, R16
110KΩResistor_SMD:R_0805_2012MetricR25
110nFCapacitor_SMD:C_0805_2012MetricC3
110uFCapacitor_Tantalum_SMD:CP_EIA-3216-12_Kemet-SC5
112MHzCrystal:Crystal_SMD_HC49-SDY1
116MHzCrystal:Crystal_SMD_HC49-SDY2
11KΩResistor_SMD:R_0805_2012MetricR14
12.2KΩResistor_SMD:R_0805_2012MetricR24
1470nFCapacitor_SMD:C_0805_2012MetricC30
1ATmega328P-APackage_QFP:TQFP-32_7x7mm_P0.8mmU6
1CH340GPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU4
1Conn_01x04_SocketConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ8
1DRV8825Package_SO:HTSSOP-28-1EP_4.4x9.7mm_P0.65mm_EP3.4x9.5mm_ThermalViasU3
1ISP portConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ6
1NCP1117-5.0_SOT223Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Polyfuse_SmallFuse:Fuse_1206_3216MetricF1
1PotentiometerPotentiometer_SMD:Potentiometer_Bourns_TC33X_VerticalR7
1Power_inputTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_HorizontalJ2
1Reset_buttonButton_Switch_THT:SW_PUSH_6mmSW1
1SS34Diode_SMD:D_SMAD1
1USB_B_MicroConnector_USB:USB_Micro-B_Molex_47346-0001J9
1~Jumper:SolderJumper-2_P1.3mm_Bridged_Pad1.0x1.5mmJP1

Similar boards

  • 2 layers80 × 130 mmKuluckaMakinesi, the printed circuit board in 3D

    KuluckaMakinesi

    emrah1982/KuluckaMakinesi

    ESP32 tabanlı, 11 hayvan profili destekleyen çok evreli kuluçka kontrol sistemi. 3.2" TFT dokunmatik ekran, web arayüzü ve OTA güncelleme içerir.

    61 parts
  • 4 layers90 × 90 mmActionneur, the printed circuit board in 3D

    Actionneur

    EUROBOT-27/MECANIQUE

    82 parts
  • 2 layers50.5 × 128.5 mmOpenThereminV45, the printed circuit board in 3D

    OpenThereminV45

    GaudiLabs/OpenThereminV4

    Open Source Theremin Instrument

    107 parts249GPL-3.0
  • 2 layers60 × 50 mmVx8 gps prototype v2.0, the printed circuit board in 3D

    Vx8 gps prototype v2.0

    4x1md/vx8_gps

    DIY GPS module for Yaesu VX-8DR/VX-8DE handheld transceiver.

    56 parts66MIT
  • 2 layers120 × 70 mmBRNG, the printed circuit board in 3D

    BRNG

    valerionew/Banana-Random-Number-Generator

    Random number generator based on radioactivity from bananas

    93 parts37
  • 4 layers50 × 50 mmDUINO, the printed circuit board in 3D

    DUINO

    elVucko/Duino_Coin_AVR

    This is the simplest DUINO coin mining board design with four Atmega328p and CH340 connected to the FE1.1S USB hub.

    93 parts7MIT
  • 4 layers102 × 49 mmCURSO PCB DRONE, the printed circuit board in 3D

    CURSO PCB DRONE

    ArduProject/PCB_DRONE_C8

    En este repositorio encontrareis los archivos de fabricación y las listas de montaje del PCB con STM32F103C8 que hemos visto en el curso.

    153 parts1MIT

Questions

How big is the Stepper controller PCB?

It measures 60 × 47 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Stepper controller use?

63 parts, built around the ATMEGA328P-AU, CH340G, DRV8825PWP and SS34. 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 Stepper controller KiCad files?

From the abdallah-yasser/stepper-motor-controller-pcb repository on GitHub, at the commit this page was made from: the board is hardware/stepper_controller.kicad_pcb and its schematic hardware/stepper_controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stepper controller 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).