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.
Project at a glance
- Type
- Family project
- Launched
- November 2022
- Status
- Testing in progress
- My role
- Electronics & control
- Technologies
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 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
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
DiscardedClassic 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
| Feature | L298N | TMC2130 |
|---|---|---|
| Supported motor type | DC motors or bipolar stepper motors (poor performance) | Bipolar stepper motors (NEMA 17, etc.) |
| Technology | Dual H-bridge (older technology) | Smart driver with silent control (StealthChop / SpreadCycle) |
| Supply voltage | 5–35 V | 5–46 V |
| Max current | ~2 A (per channel, but heats up quickly) | Up to 2.5 A peak (with good cooling) |
| Current control | No | Yes, digital and adjustable |
| Control interface | Simple logic inputs (IN1, IN2, etc.) | Step/Dir (like 3D printers) + SPI |
| Microstepping | No | Yes, up to 1/256 |
| Advanced features | None | Step-loss detection, virtual end stop, dynamic current |
| Noise / smoothness | Noisy, not smooth | Very quiet and smooth (StealthChop) |
| Ease of use | Easy (but low performance) | More complex, but far more capable |
| Price | Very cheap (~€1–3) | More expensive (~€6–10) |
| Typical applications | Small robots, RC cars | 3D 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
| Feature | Arduino Uno | Teensy 4.1 (for example) |
|---|---|---|
| Processor | ATmega328P at 16 MHz | ARM Cortex-M7 at 600 MHz |
| RAM | 2 KB | 1024 KB (1 MB) |
| Flash memory | 32 KB | 8 MB |
| Computing speed | Very limited | Very fast (600 MHz) |
| Number of I/O | 14 digital, 6 analog | 55 I/O, including 18 analog |
| Communication | UART, I2C, SPI | Multiple UART, I2C, SPI, USB HS, CAN, etc. |
| Native USB | No (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 type | Advantages of the NEMA 17 over them |
|---|---|
| Standard DC motor | More precise, built-in position control, no encoder needed |
| RC servo | Cheaper for long travel, no angle limit, sturdier |
| NEMA 23/34 motor | Smaller, 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
| Use case | TMC2130 alone | TMC2130 + external encoder |
|---|---|---|
| Sensorless homing (simple) | Yes | Not needed |
| Stall detection | Yes | Yes |
| Absolute position tracking | No | Yes |
| Precision control (closed loop) | No | Yes |
| Reliable, responsive robotic arm | Low | Strongly recommended |
| Need | Recommended option |
|---|---|
| Simple and effective | NEMA 17 motor with built-in encoder |
| Very high resolution, can be retrofitted | External optical encoder (HKT22, AMT102) |
| Maximum compactness, no friction | Magnetic encoder (AS5048A) |
| Beginner project | Quadrature 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
| Model | Power | Max current | Fan | Quiet | Verdict |
|---|---|---|---|---|---|
| LRS-200-24 | 200 W | 8.5 A | No | Yes | Yes (sufficient, quiet) |
| LRS-350-24 | 350 W | 14.6 A | Yes (light) | Medium | Yes (to keep some headroom) |
| NES-350-24 | 350 W | 14.6 A | Yes (noisy) | No | Not recommended unless on a tight budget |
| SE-600-24 | 600 W | 25 A | Yes (noisy) | No | Oversized for the current project |
LRS-350-24 and NES-350-24 circled in green.
Also needed
| Equipment | Why |
|---|---|
| Fuses or circuit breakers | Overload protection |
| Terminal block or XT60/XT30 connector | Clean, secure connection |
| 100 µF capacitors on Vmot (TMC2130) | Protection against voltage spikes |
| Enclosure ventilation | If the enclosure is closed |
| Equipment | Role |
|---|---|
| Fuses or circuit breakers | Short-circuit protection |
| Screw terminal / Wago / XT60 | Reliable power-line connections |
| 24 V → 5 V step-down | Powers the Raspberry Pi |
| Capacitors on TMC2130 | Spike suppression, stability |
| Heatsinks + fan | Cooling for the motor drivers |
| Main switch | Safety shutdown |
| Wires of adequate gauge | No 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.
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.
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.
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.
Gallery
Additional project visuals (structure, workshop, assembly).
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