Family project • Launched November 2022 • Testing in progress

AIS — Automated build-plate swapping for a 3D printer farm

AIS is our internal automation project, inspired by the Prusa Pro Automated Farm System (AFS): a robotic setup designed to swap full build plates for empty ones so that a group of printers can run for longer without human intervention.

AIS — Automated build-plate swapping system for a 3D printer farm

Project at a glance

Type
Family project
Launched
November 2022
Status
Testing in progress
My role
Electronics & control
Technologies
Mechatronics 3D printer farm automation Fusion 360 Electronics & control Arduino / TMC2209 Functional PETG

Project origin

The AIS project took shape in November 2022, following our visit to Formnext in Frankfurt — the major international trade fair for additive manufacturing. There we discovered the Prusa Pro AFS (Automated Farm System) concept, a robotic system capable of automatically swapping build plates across a printer farm. The idea immediately seemed transposable to our own setup.

Why this project matters to us

At home we run around ten 3D printers. Internal tracking revealed a striking fact: despite the time spent manually restarting prints, actual printing accounts for only about 20 % of available time. The rest is idle time — full plate, printer waiting. AIS aims to fix that and move toward 24/7 production.

  • Goal: keep printers productive overnight and during unsupervised periods
  • Constraint: robust mechanics + safe handling of warm build plates
  • Approach: modular structure + robotic arm + sensors + reliable power distribution
Prusa Pro AFS on display at Formnext 2022

Prusa Pro AFS at the Formnext 2022 trade fair (Frankfurt)

Team and responsibilities

Frédéric Berlocher

  • Full mechanical design in Fusion 360
  • Parts sourcing and supplier coordination
  • Organising 3D printing of functional parts
  • Mechanical assembly of the frame and arm

Maxime Berlocher

  • Power distribution architecture and sizing
  • Axis control strategy (drivers, homing, limit switches)
  • Wiring and electrical schematic documentation
  • Arduino programming of motion cycles
  • First motor tests and gripper test on bench

Functional analysis

Before any development work, I carried out a structured functional analysis of the system, identifying the main functions (FP) the robot must fulfil and the constraint functions (FC) it must respect.

Main functions

FP1: The robot must pick up full plates from the printer and bring them to a storage area.
FP2: The robot must retrieve an empty plate and position it correctly on the printer.

Constraint functions:

  • FC1: Must not interfere with printer operation or block access
  • FC2: All movements stay within the defined envelope
  • FC3: Grips and releases plates without damaging them
  • FC4: Retrieves printer status via API
  • FC5: Emergency stop on obstacle or human presence detection
  • FC6: Manages a series of prints without human intervention
  • FC7: Repeats cycles without errors at adequate precision
  • FC8: Stays within budget
  • FC9: Integrates a manual control interface and storage status display
AIS functional analysis — FP/FC mind-map

Functional analysis document — click to enlarge

Solution research

I conducted a comparative research phase to select the electronics and control strategy. For each sub-system I evaluated several options based on performance, cost, and ease of integration.

Motor drivers

BIGTREETECH TMC2209 (UART, microstepping, thermal protection)

Microcontroller

Arduino UNO — prototype; Teensy 4.1 compared for final version

Motors

NEMA 17 (4-wire) — 34 mm version

Encoder

AS5048A optical encoder studied

Power supply

24 V DC — Mean Well LRS-350-24 / NES-350-24 compared — a 3D printer power supply is used for now

L298N

Discarded

Classic H-bridge — excessive heat losses, no native microstepping

Why we chose the TMC2209

Compared to the L298N, the TMC2209 offers microstepping (up to 1/256), UART communication for dynamic configuration, automatic load detection (StallGuard) usable for sensorless homing, and built-in thermal protection — decisive advantages for a system running unattended.

Detailed comparison

Transcribed from my research document. Each block opens to show the comparison table for one sub-system.

Motor drivers: L298N vs TMC2130
Motor drivers
FeatureL298NTMC2130
Supported motor typeDC motors or bipolar stepper motors (poor performance)Bipolar stepper motors (NEMA 17, etc.)
TechnologyDual H-bridge (older technology)Smart driver with silent control (StealthChop / SpreadCycle)
Supply voltage5–35 V5–46 V
Max current~2 A (per channel, but heats up quickly)Up to 2.5 A peak (with good cooling)
Current controlNoYes, digital and adjustable
Control interfaceSimple logic inputs (IN1, IN2, etc.)Step/Dir (like 3D printers) + SPI
MicrosteppingNoYes, up to 1/256
Advanced featuresNoneStep-loss detection, virtual end stop, dynamic current
Noise / smoothnessNoisy, not smoothVery quiet and smooth (StealthChop)
Ease of useEasy (but low performance)More complex, but far more capable
PriceVery cheap (~€1–3)More expensive (~€6–10)
Typical applicationsSmall robots, RC cars3D printers, CNC, precision robots

L298N max current circled in red; TMC2130 column and its applications circled in green.

Control board: Arduino Uno vs Teensy 4.1
Control board
FeatureArduino UnoTeensy 4.1 (for example)
ProcessorATmega328P at 16 MHzARM Cortex-M7 at 600 MHz
RAM2 KB1024 KB (1 MB)
Flash memory32 KB8 MB
Computing speedVery limitedVery fast (600 MHz)
Number of I/O14 digital, 6 analog55 I/O, including 18 analog
CommunicationUART, I2C, SPIMultiple UART, I2C, SPI, USB HS, CAN, etc.
Native USBNo (goes through a serial chip)Yes (high speed, more reliable)
Price€3–8~€25–35 (depending on model)

“Board used: Raspberry Pi + Teensy 4.1”; Arduino UNO R3; Teensy 4.1.

“Board used in the i3 MK3S+ (complicated to use here): Einsy RAMBo (MK3/S/+)”.

Motor: why the NEMA 17
Motor: NEMA 17 type (4-wire)
Motor typeAdvantages of the NEMA 17 over them
Standard DC motorMore precise, built-in position control, no encoder needed
RC servoCheaper for long travel, no angle limit, sturdier
NEMA 23/34 motorSmaller, cheaper, uses less power
Small stepper (NEMA 14)More torque, more stable, more common

Two lengths compared, NEMA 17 (34 mm) and NEMA 17 (48 mm).

Encoder: why and which one
Encoder: why add one
Use caseTMC2130 aloneTMC2130 + external encoder
Sensorless homing (simple)YesNot needed
Stall detectionYesYes
Absolute position trackingNoYes
Precision control (closed loop)NoYes
Reliable, responsive robotic armLowStrongly recommended
Encoder: options
NeedRecommended option
Simple and effectiveNEMA 17 motor with built-in encoder
Very high resolution, can be retrofittedExternal optical encoder (HKT22, AMT102)
Maximum compactness, no frictionMagnetic encoder (AS5048A)
Beginner projectQuadrature encoder, 600–1000 PPR, mounted or built-in

Optical and magnetic options circled in green; photos of a NEMA 17 with encoder, HKT22 encoder, AS5048A, 600–1000 PPR encoder.

24 V power supply
Power supply
ModelPowerMax currentFanQuietVerdict
LRS-200-24200 W8.5 ANoYesYes (sufficient, quiet)
LRS-350-24350 W14.6 AYes (light)MediumYes (to keep some headroom)
NES-350-24350 W14.6 AYes (noisy)NoNot recommended unless on a tight budget
SE-600-24600 W25 AYes (noisy)NoOversized for the current project

LRS-350-24 and NES-350-24 circled in green.

Also needed
Also needed (1/2)
EquipmentWhy
Fuses or circuit breakersOverload protection
Terminal block or XT60/XT30 connectorClean, secure connection
100 µF capacitors on Vmot (TMC2130)Protection against voltage spikes
Enclosure ventilationIf the enclosure is closed
Also needed (2/2)
EquipmentRole
Fuses or circuit breakersShort-circuit protection
Screw terminal / Wago / XT60Reliable power-line connections
24 V → 5 V step-downPowers the Raspberry Pi
Capacitors on TMC2130Spike suppression, stability
Heatsinks + fanCooling for the motor drivers
Main switchSafety shutdown
Wires of adequate gaugeNo heating or voltage drop

Fusion 360 model — printer rack and plate-handling arm concept

Mechanical architecture

The first phase laid the foundations: a rigid frame to support the printers and an arm concept capable of handling plates in a repeatable way. The structure combines metal extrusions for rigidity and 3D-printed connectors/brackets for rapid iteration.

Frame structure

Aluminium extrusion + custom-printed connectors

Arm parts

Mainly 3D-printed in PETG

Iteration

CAD → print → test cycles, fast redesign

Assembly

Metal + PETG-printed interface parts

Electronics and control — my contribution

This is the core of my work on this project. I designed the power distribution architecture, established the connections between all system components, produced the wiring schematics, and programmed the first axis control cycles on Arduino.

AXE_PINCE_PLAQUE wiring schematic — Arduino UNO, TMC2209, stepper motors, limit switches

Wiring schematic — AXE_PINCE_PLAQUE sub-system (click to enlarge)

AXE_PINCE_PLAQUE sub-system architecture

This schematic represents the first sub-system I fully wired and tested: the axis controlling the plate-gripping mechanism. It uses the following components, all selected after the solution research phase:

  • Arduino UNO — main microcontroller for the prototype
  • 24 VDC / 10 A power supply — power bus for actuators
  • 2× BIGTREETECH TMC2209-V1.1 — stepper motor drivers (UART mode)
  • 2 NEMA 17 stepper motors — axis actuators
  • 2 limit switch sensors — end-stops for axis homing

Connection detail

The Arduino digital pins (range D2–D13) are connected to the TMC2209 drivers for direction (DIR), step (STEP), and enable (EN) signals. Limit switches are wired to dedicated digital inputs. The 24 V supply is distributed directly to the drivers (motors); the Arduino is powered separately via USB during development.

AIS frame in workshop — assembled chassis, before electronics integration

Physical frame — assembled chassis; next step: arm fabrication and electronics integration

Axis control strategy

Beyond wiring, I defined the motion control strategy to ensure reliable and safe operation across unsupervised cycles:

  • Automatic homing: each axis re-calibrates to its limit switch on startup
  • TMC2209 microstepping: fine movement resolution, reduced vibration
  • UART mode: dynamic motor current configuration and temperature monitoring from Arduino
  • Software emergency stop: immediate cut-off if a sensor detects an anomaly (FC5)
  • Schematic documentation: annotated wiring with wire and connector labelling

Electronics priorities

Long-term reliability and maintainability: clearly identified failure modes, clean wiring with identification markers, ability to service a sub-system without dismantling the whole assembly.

Tests carried out

Concrete tests have already been run: bench motor drive, Arduino motion-cycle programming, and a first test of the plate-gripping mechanism.

Plate gripper test — prototype (click to enlarge)

Plate gripper test

The video shows the first functional test of the build-plate gripping mechanism, carried out off the final structure to validate the gripping concept before full mechanical integration.

Test objective

[TO FILL: describe the precise objective — gripping validation, force, positioning?]

Results

[TO FILL: observed results and conclusions from IMG_4190 test]

Electronics test bench

To validate motor control before integration into the frame, I set up a table test bench. This setup allowed me to verify connections, develop the Arduino program, and observe actual motor behaviour (steps, direction, current).

  • Arduino UNO connected to laptop for development and upload
  • TMC2209 drivers on breadboard, wired per the AXE_PINCE_PLAQUE schematic
  • Two to three NEMA 17 motors connected (one with lead screw)
  • Multimeter to check voltages and wiring consistency
  • Arduino program development: step cycles, limit-switch homing, direction control

Testing approach

Goal → Setup → Observations → Corrections → Iteration. Every anomaly found on the bench is documented and fixed before mechanical integration. This approach greatly reduces the risk of having to disassemble the full system later.

Electronics test bench with Arduino, TMC2209 drivers, NEMA 17 motors and multimeter

Test bench — Arduino UNO, TMC2209 drivers, NEMA 17 motors, multimeter visible in the background

Progress and next steps

Phase 1 — Inspiration and feasibility ✓

Observed the Prusa Pro AFS concept at Formnext (Nov. 2022), adapted it to our farm's constraints and workflow. Functional analysis completed (FP/FC) and feasibility confirmed.

Phase 2 — Mechanical design and sourcing ✓

Fusion 360 modelling of the rack and arm, selection of aluminium extrusions, preliminary chassis assembly. Functional PETG parts printed and tested.

Phase 3 — Electronics specifications and first tests ✓ (partial)

Comparative component research, AXE_PINCE_PLAQUE wiring schematic produced, test bench assembled. First motor drive tests and gripper test completed.

Phase 4 — Full build and integration (in progress)

Printing remaining PETG arm parts, installing motors and sensors in the final structure, full wiring, and system validation: repeatability tests, multi-axis homing, and complete plate-swap cycle.

Key takeaways

  • A printer farm's productivity is often limited by handling time, not print speed — automating plate swapping changes the equation entirely.
  • A structured functional analysis (FP/FC) before touching any mechanics or electronics prevents costly architectural mistakes later.
  • Choosing TMC2209 drivers over classic H-bridges illustrates the value of picking components with built-in features (StallGuard, UART, microstepping) rather than reimplementing them yourself.
  • Bench testing before mechanical integration — even simple setups — reveals wiring and logic issues that would be very costly to fix once the system is assembled.
  • Automation is only robust if failure modes are identified at design time (emergency stop, reliable homing, wiring documentation).

Other project

BERLOCHER ORIGINAL BERLOCHER
Loading