Smooth and quiet
Each coil gets regulated current instead of open-loop microstep tables, so the motor runs smoothly and quietly.
A standard stepper driver counts steps and hopes the rotor followed. FOCI reads the motor’s encoder and regulates the phase currents against the rotor’s actual position, many thousands of times per second, on the MCU itself. The result is smoother, quieter motion and an axis that knows where it is.
FOCI is firmware for the board plus a small Python module for Klipper and Kalico. Klipper’s planner, G-code and macros work as they always have.
Smooth and quiet
Each coil gets regulated current instead of open-loop microstep tables, so the motor runs smoothly and quietly.
Klipper and Kalico compatible
The board speaks Klipper’s MCU protocol. Steppers, kinematics and macros
stay in your existing printer.cfg.
Commissions itself
FOCI_SELFTEST checks wiring and encoder, FOCI_SETUP identifies the
motor’s resistance and inductance, and the foci-tune web UI measures each
axis and guides you to its control gains. You approve each gain, and the
result pastes into printer.cfg.
Sensorless homing
Your printer homes by detecting a stall with the motor encoders. No endstop switches required.
Control runs on the board
The control loops run in the firmware, not across a USB link to the host. This allows higher sampling rates, tighter timing and more accurate control than a host alone can deliver.
Real-time by design
Written in Rust on the RTIC real-time operating system, with scheduling guarantees. Urgent work always preempts the rest, so timing stays predictable. Rust catches whole classes of memory and concurrency bugs at compile time, before they can reach a motor.
Ouroboros
Ouroboros drives two motors from one board, with up to 15 A peak per motor. An STM32H723 runs the firmware.
OpenFFBoard
OpenFFBoard is an open source motor controller with a TMC4671. It drives one motor, and an STM32F407 runs the firmware.
klipper-foci module, and
add a [foci <stepper>] section with your run current and encoder
resolution.FOCI_SETUP to identify the
motor, then tune each axis in the foci-tune web UI.FOCI is alpha software. The implementation, commands, features and API can change. Source and issues are on GitHub.