Skip to the content
4 layers60 × 60 mmATmega TMC2209 Driver, the printed circuit board in 3D

ATmega TMC2209 Driver

sbbxiii/The-Armadillo

The Armadillo: Custom Arduino-compatible ATmega328P stepper motor controller PCB with Trinamic TMC2209 silent driver and single-wire UART

Size
60 × 60 mm
Copper layers
4
Thickness
1.6 mm
Parts
52
Nets
58
Pads
204
Tracks, vias
450, 55
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
6 Oct 2026
Updated
6 Oct 2026

Overview

ATmega TMC2209 Driver is an open-source printed circuit board by sbbxiii, from the sbbxiii/The-Armadillo repository on GitHub, published under the MIT licence. It is a 4-layer board of 60 × 60 mm with 52 parts on 58 nets, routed with 450 tracks and 55 vias.

It is built around the ATMEGA328P-AU, CH340K and TMC2209-LA, with the SS14 among its other parts. Its parts include 20 capacitors, 12 resistors, 8 connectors, 4 ICs and 3 diodes. It belongs with the robots and motor control and interfaces and adapters boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

README.md

🛡️ The Armadillo: Custom ATmega328P + TMC2209 Stepper Motor Controller PCB

CAD: KiCad 10 MCU: Microchip ATmega328P Driver: Trinamic TMC2209 Fabrication: DRC 0 Violations [blocked] License: MIT Author


1. Executive Summary

The Armadillo is an open-source, Arduino-compatible motion control PCB designed from first principles in KiCad 10.0.1. It pairs the reliable Microchip ATmega328P 8-bit AVR microcontroller with the high-performance Trinamic TMC2209-LA silent bipolar stepper motor driver on a rugged $60.0\text{ mm} \times 60.0\text{ mm}$ 2-layer FR-4 board.

Featuring an onboard WCH CH340K USB-to-UART converter with automated DTR auto-reset, The Armadillo provides seamless plug-and-play programming directly through the Arduino IDE, PlatformIO, or AVR-GCC toolchains. Key features include silent stepper motion via StealthChop2™, sensorless homing via StallGuard4™, dynamic runtime current tuning over a single-wire PD_UART interface, and hardware RC-filtered sensor inputs.


2. 3D Raytraced Visualizations

The Armadillo 3D Perspective Raytrace
Figure 1: Raytraced 3D perspective view of The Armadillo motor controller board showing the ATmega328P core, TMC2209 driver, and screw terminal I/O.

Top View (Silicon, Connectors & SMT Layout)Bottom View (Solid Ground Return & Driver Thermal Vias)
Top ViewBottom View

3. Circuit Architecture & Block Diagram

mermaid
flowchart TD
    subgraph Power_Subsystem ["Power Distribution Network (PDN)"]
        VIN["Motor Power (4.75V - 29V)<br/>Terminal Block J8"] --> BulkCap["Bulk Decoupling<br/>100µF Radial + 2x 100nF"]
        BulkCap --> VMOT["VMOT Supply Rail"]
        VMOT --> LDO["NCP1117-5.0 LDO<br/>(Steps to +5V Logic)"]
        USB["USB Type-B Port (J2)"] --> Schottky["SS14 Schottky Diode (D3)"]
        Schottky --> VCC5["+5V System VCC Rail"]
        LDO --> VCC5
    end

    subgraph MCU_Subsystem ["Microcontroller & Communications"]
        VCC5 --> MCU["ATmega328P-A (TQFP-32)<br/>16.000 MHz Clock"]
        CH340["CH340K USB-UART (U2)"] <-->|"UART RX/TX + DTR Reset"| MCU
        ICSP["6-Pin AVR ISP Header (J1)"] <-->|"SPI MOSI/MISO/SCK/RST"| MCU
        MCU --> LEDS["Power & Diagnostic LEDs<br/>(D1, D2)"]
    end

    subgraph Motion_Subsystem ["Silent Motion Control"]
        VMOT --> TMC["Trinamic TMC2209-LA (U3)<br/>Silent Stepper Driver"]
        VCC5 --> TMC
        MCU -->|"M1_STEP / M1_DIR / EN"| TMC
        MCU <-->|"PD_UART (Single-Wire)"| TMC
        TMC --> SenseRes["Dual 0.11Ω 1210 Sense Resistors<br/>(R13, R14)"]
        TMC --> MotorOut["4-Phase Stepper Terminal (J7)<br/>(A1, A2, B1, B2)"]

4. Hardware Specifications & Feature Matrix

Electrical & Mechanical Metrics

SpecificationParameter ValueEngineering Notes
Board Footprint$60.00\text{ mm} \times 60.00\text{ mm}$Compact square profile with 3.0 mm radius rounded corners
Mounting Pattern4× M3 Mounting HolesPositioned at corners for rigid enclosure mounting
Layer Stackup2-Layer FR-4 (1.6 mm thickness)Top signal/routing + solid bottom GND return plane
Motor Input Voltage ($V_S$)4.75V to 29.0V DCAccepts standard 12V or 24V industrial/3D-printer power supplies
Motor Peak Current2.8A Peak / 2.0A RMSConfigurable in software via TMC2209 internal registers
Current Sense ResistorsDual $0.11\ \Omega \pm 1%$ (1210 SMT)High power dissipation footprint for thermal stability
Microstepping ModesUp to 1/256Native 1/16 with MicroPlyer™ interpolation to 1/256
MicrocontrollerATmega328P-A (TQFP-32)32 KB Flash, 2 KB SRAM, 1 KB EEPROM @ 16 MHz
USB InterfaceCH340K (SSOP-10)Built-in clock, requires no external crystal
Design Rule Check (DRC)0 Errors, 0 Unconnected Items100% compliant with standard 2-layer PCB fabrication rules

5. Trinamic TMC2209 Key Technologies

  1. StealthChop2™: Voltage-regulated chopper providing completely silent motor movement at low and medium velocities. Eliminates motor whine.
  2. SpreadCycle™: Highly dynamic current control chopper mode that delivers high torque and precise microstepping at high step frequencies.
  3. StallGuard4™: Real-time sensorless load measurement that detects mechanical endstops by monitoring motor back-EMF, eliminating mechanical limit switches.
  4. Single-Wire PD_UART: Allows the ATmega328P to dynamically tune drive current, chopper thresholds, microstep resolution, and read motor diagnostics via one GPIO pin.

6. Pinout & Peripheral Mapping

Microcontroller Pin Mapping

ATmega328P PinNet NameHardware Function / Target Peripheral
Pin 1 (PD3)M1_STEPStep pulse command to TMC2209 Pin 16
Pin 2 (PD4)M1_DIRDirection pulse command to TMC2209 Pin 17
Pin 9 (PB6)XTAL116.000 MHz Crystal Oscillator ($Y1$)
Pin 10 (PB7)XTAL216.000 MHz Crystal Oscillator ($Y1$)
Pin 11 (PD5)ENMotor output enable/disable (active low) to TMC2209 Pin 18
Pin 12 (PD6)PD_UARTHalf-duplex single-wire UART communication with TMC2209 Pin 20
Pin 13 (PD7)DIAGNOSTICStallGuard / fault flag input from TMC2209 Pin 22
Pin 15 (PB1)DIGITAL_IN1Filtered digital input via header $J5$ (RC filtered)
Pin 16 (PB2)DIGITAL_IN2Filtered digital input via header $J6$ (RC filtered)
Pin 17 (PB3)MOSISPI Master Out / In-System Programming ($J1$)
Pin 18 (PB4)MISOSPI Master In / In-System Programming ($J1$)
Pin 19 (PB5)SCKSPI Clock / In-System Programming ($J1$)
Pin 23 (PC0)ANALOG_IN3Filtered analog/digital input via header $J3$
Pin 24 (PC1)ANALOG_IN4Filtered analog/digital input via header $J4$
Pin 29 (PC6)RESETActive-low reset tied to tactile switch $SW1$ and CH340K DTR line
Pin 30 (PD0)RXD (UART-)Hardware UART receive from CH340K USB bridge
Pin 31 (PD1)TXD (UART+)Hardware UART transmit to CH340K USB bridge

External Connectors

ConnectorTypeNet ConnectionsFunction
J12×3 2.54mm HeaderMOSI, MISO, SCK, RESET, VCC, GNDStandard AVR ICSP programming port
J2USB Type-B FemaleVBUS, D-, D+, GNDPC programming and USB serial communication
J31×3 2.54mm HeaderVCC, ANALOG_IN3 (filtered), GNDSensor / Potentiometer input
J41×3 2.54mm HeaderVCC, ANALOG_IN4 (filtered), GNDSensor / Limit switch input
J51×3 2.54mm HeaderVCC, DIGITAL_IN1 (filtered), GNDOptical / Mechanical Endstop input
J61×3 2.54mm HeaderVCC, DIGITAL_IN2 (filtered), GNDOptical / Mechanical Endstop input
J74-Pin 2.54mm Screw TerminalMotor Coils: A1, A2, B1, B2Stepper motor phase output
J82-Pin 3.5mm Screw TerminalVIN ($4.75\text{V} - 29\text{V}$), GNDMain motor power supply input

7. Deliverables & Production Assets

Asset CategoryFile PathDescription
Schematic Vector PDFschematic/ATmega_TMC2209_Schematic.pdfHigh-resolution printable schematic
Schematic Vector SVGschematic/ATmega_TMC2209_Schematic.svgScalable vector graphic of complete circuit
Bill of Materialsmanufacturing/ATmega_TMC2209_BOM.csvFull component list with footprints and quantities
Fabrication Packagemanufacturing/ATmega_TMC2209_Gerbers_Rev1.zipProduction gerbers & Excellon drill file
KiCad 10 Projecthardware/Native .kicad_pro, .kicad_sch, and .kicad_pcb CAD files

8. Author & License

Parts

52
QtyValueFootprintReferences
16100nFCapacitor_SMD:C_0805_2012MetricC1, C3, C4, C5, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C18, C20
51kΩResistor_SMD:R_0805_2012MetricR2, R3, R10, R11, R12
4R_FILTER 1.5kΩResistor_SMD:R_0805_2012MetricR6, R7, R8, R9
20.11ΩResistor_SMD:R_1210_3225MetricR13, R14
222pFCapacitor_SMD:C_0805_2012MetricC2, C6
2MountingHoleMountingHole:MountingHole_2.2mm_M2_PadH3, H4
1100uFCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC19
110kΩResistor_SMD:R_0805_2012MetricR1
116MHzCrystal:Crystal_SMD_5032-2Pin_5.0x3.2mmY1
14.7uFCapacitor_SMD:CP_Elec_4x5.3C17
1ATmega328P-APackage_QFP:TQFP-32_7x7mm_P0.8mmU1
1CH340KPackage_SO:SSOP-10-1EP_3.9x4.9mm_P1mm_EP2.1x3.3mmU2
1DIAGNOSTICLED_SMD:LED_0805_2012MetricD2
1ISPConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ1
1J_IN1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1J_IN2Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1J_IN3Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1J_IN4Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4
1LOGOLOGOG***
1NCP1117-5.0_SOT223Package_TO_SOT_SMD:SOT-223-3_TabPin2U4
1Output_PhasesTerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-4-2.54_1x04_P2.54mm_HorizontalJ7
1POWER_LEDLED_SMD:LED_0805_2012MetricD1
1Power_InputTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ8
1Reset_ButtonButton_Switch_SMD:SW_SPST_TS-1088-xR020SW1
1SS14Diode_SMD:D_SMAD3
1TMC2209-LAPackage_DFN_QFN:VQFN-28-1EP_5x5mm_P0.5mm_EP3.7x3.7mm_ThermalViasU3
1USB_BConnector_USB:USB_B_OST_USB-B1HSxx_HorizontalJ2

Similar boards

  • 4 layersPantiltslide integrated, the printed circuit board in 3D

    Pantiltslide integrated

    AMOVFC/PanTilt

    Three projects live in this folder. They share NewLibrary.kicadsym, TMC2209.pretty and the same philosophy: nothing on the board needs precision placement, every active part is a module in a socket.

    86 parts
  • 2 layers266.7 × 81 mmStepper synth, the printed circuit board in 3D

    Stepper synth

    udu3324/stepper-synth

    An electronic instrument that uses stepper motors to make music

    224 partsGPL-3.0
  • 2 layers101.4 × 60 mmAtmega328p Spot welder, the printed circuit board in 3D

    Atmega328p Spot welder

    ANSHUMANDOCX/Spot-Welder-with-MCU

    this is a spot welder for 18650 batteries made using mosfets along with a atemga328p and rotary encoder along with a display and a 12v lead acid battery

    100 parts
  • 4 layers36 × 18.2 mmATMEGA328P, the printed circuit board in 3D

    ATMEGA328P

    Tert2/KiCAD

    KiCAD data

    19 parts
  • 2 layers39.9 × 46.4 mmCrealityDryerV1, the printed circuit board in 3D

    CrealityDryerV1

    Ermakov/CrealitySpacePiAutomation

    Creality Space Pi Plus CFS mod automation (PCB and sketch for Arduino IDE)

    20 parts33
  • 2 layersHB LC Dim6PWM CV, the printed circuit board in 3D

    HB LC Dim6PWM CV

    stan23/myPCBs

    Verschiedene Platinen für HomeMatic, AskSinPP und SmartHome

    57 parts21

Questions

How big is the ATmega TMC2209 Driver PCB?

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

What parts does the ATmega TMC2209 Driver use?

52 parts, built around the ATMEGA328P-AU, CH340K, TMC2209-LA and SS14. 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 ATmega TMC2209 Driver KiCad files?

From the sbbxiii/The-Armadillo repository on GitHub, at the commit this page was made from: the board is hardware/ATmega_TMC2209_Driver.kicad_pcb and its schematic hardware/ATmega_TMC2209_Driver.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ATmega TMC2209 Driver 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).