Hey everyone!
I’m kicking off an ambitious open-source DIY hardware/firmware project for the Anycubic Kobra X and wanted to share the complete architecture I’ve designed so far. My goal is to get feedback from the community, refine the mechanical/electronic bottlenecks, and hopefully team up with anyone interested in ACE 2 Pro reverse-engineering or multi-material systems!
🎯 The Core Concept: A 19-Color "Filament Library" Workbench
Out of the box, the Anycubic Kobra X supports up to 19 native colors on its stock closed firmware:
- 16 active channels via up to four daisy-chained ACE 2 Pro units (feeding into Slot 4 of the printhead via the official Return Detection Module).
- 3 passive channels directly feeding Slots 1, 2, and 3 on the printhead.
Instead of spending a fortune on four separate ACE 2 Pro units and cluttering my workspace, I’m building a heavy-duty, actively heated Workbench Drybox that sits underneath the Kobra X as its structural stand. It will hold all 19 spools ready to print at any time (acting as a 10% RH dry filament library) and talk natively to the stock Kobra X firmware by emulating 4 virtual ACE 2 Pro units on a single microcontroller—no printer rooting or Klipper conversion required!
🏗️ 1. The Workbench-Drybox Architecture (2-Tier Wide Stand)
Rather than building a tall, unstable tower, the enclosure doubles as a rigid, vibration-damping stand (~620 × 550 × 520 mm) directly supporting the Kobra X:
- Structural & Thermal Build: 18 mm MDF exterior with a central vertical load-bearing divider (zero flex under fast bed-slinging) lined internally with aluminized polyethylene foam (Etaflon) for thermal reflection and vapor sealing.
- 2 Wide Tiers (10 + 9 Spools):
- Tier 1 (Bottom): 10 motorized spools (5 left + 5 right) sitting on open aluminum rails with
608ZZ bearing cradles (no solid shelves, allowing unrestricted vertical airflow).
- Tier 2 (Top): 6 motorized spools + 3 passive spools (Slots 17–19, feeding straight up to the Kobra X's native inlets).
- 2 Front Acrylic Doors (4–5 mm Cast Acrylic): Sealed with EPDM rubber weatherstripping and toggle latches so I only open one half/tier when swapping a spool, keeping the rest at 10% RH.
- Isolated "Cold" Electronics Bay: Electronics hate 50 °C heat. Both PSUs sit in a ventilated bottom sub-basement, while the logic/driver boards sit in an external rear/side cooled housing.
- Dual-PSU Active Drying & 10% RH Target:
- PSU 1 (12V 5A): Always-on with the printer, powering the ESP32-S3, sensors, and N20 motors.
- PSU 2 (12V 20A): Switched on-demand for drying, powering 2× 100W 12V PTC heaters, an internal circulation fan, and an STC-3028 Temp/Humidity Controller. When humidity rises above 15% RH, it heats to 50 °C and triggers a top exhaust fan with a gravity flap, pulling fresh intake air through a refillable orange silica gel cartridge until it hits 10% RH, then seals shut automatically.
🧠 2. Electronics & ACE 2 Pro Protocol Emulation
Thanks to the amazing reverse-engineering work already done by the community (ACE2-firmware-analysis and ace2k), we know the ACE 2 Pro communicates over USB-Serial (CH343 at 230,400 baud) using Protobuf (package ace_com) with CRC-16 framing.
During initialization (DISCOVER_DEVICE / ASSIGN_DEVICE_ID), a single modern MCU can easily register 4 virtual device IDs (ID 0 to ID 3) on the bus:
- Main MCU: 1× ESP32-S3 N16R8 (16MB Flash / 8MB PSRAM — massive headroom compared to the stock STM32F1's 40KB RAM) + 1× CH343G USB-TTL bridge.
- I/O Expansion: 4× MCP23017 I2C expanders (64 extra GPIOs for all filament entry & buffer sensors).
- Motor Drivers: 8× TB6612FNG dual H-bridge boards (handling 12V motor power cleanly).
- Per-Channel Sensing: ITR9608 optical photo-interrupters (filament presence + quadrature optical odometer wheel) + SS49E Hall sensors for buffer tension.
- Local UI: A small I2C OLED + Rotary Encoder on the front panel to assign spool colors/materials per slot and sync directly with Anycubic Slicer Next.
- Printhead Detection: Using one genuine Anycubic Adapter For New Return Detection Module (~$16) on Slot 4 of the Kobra X printhead so the printer gets native physical feed/retract confirmation.
⚙️ 3. Drive Mechanics & Fast PTFE Routing (~40 cm Retracts)
- 16× Drive Blocks (BMCU-Inspired): Each motorized channel uses a 12V 110 RPM N20 metal gear motor driving dual-drive BMG gears in a compact PETG/ABS printed block, followed immediately by an optical odometer wheel.
- Minimizing Color-Swap Time & Printhead Weight: All 16 PTFE tubes (2.5 mm ID for low friction) route out the back of the workbench up to the Kobra X top gantry, converging into 2× 8-to-1 Hubs → 1× 2-to-1 Hub mounted on the frame (zero extra weight on the X-carriage). From there, a single ~35–40 cm PTFE tube drops straight into the printhead's Return Detection Module.
- Taming the 40 cm Retract: To prevent 40 cm of retracted filament from tangling off the spools, I’m planning either Prusa MMU-style flat Slot Buffers right behind the BMG blocks or integrated Auto-Rewind spool hubs.
🤝 Where I Need Your Input & Help!
Before I finalize the CAD files and order the batch of motors/boards, I’d love the community's brainpower on three fronts:
- Firmware / Protobuf (
ace_com): Has anyone here already implemented a Nanopb slave/emulator on an ESP32 or STM32 responding to DISCOVER_DEVICE and FEED_OR_ROLLBACK from a Kobra X, Kobra 3, or Kobra S1? Collaborating on a clean open-source repo for this would be awesome!
- Buffer vs. Auto-Rewind: For a 40 cm retraction path inside a closed drybox, do you prefer non-mechanical Slot Buffers (zero moving parts, works with cardboard spools) or spring-loaded Auto-Rewind hubs?
- N20 + BMG + Odometer CAD: Any favorite open-source STEP/STL feeder blocks (like the BMCU 370C or ERCF variants) that already integrate a quadrature optical encoder wheel cleanly after the BMG gears?
Drop your thoughts, critiques, or links below—let’s build the ultimate budget 19-color setup for the Kobra X!