Pinout
- This page lists the pinout of the FLY-D5 motherboard after flashing Klipper firmware. Pin numbers are based on the motherboard schematic.
UART/CSis the driver communication pin: used as UART with TMC2209, and as chip selectCSwhen using SPI drivers such as TMC5160. The same pin is multiplexed.ENis the enable pin. In Klipper configuration, it is typically active-low (with the!prefix inenable_pin).DIAGis the driver diagnostic signal pin. When using sensorless homing, configure the correspondingdiag_pinaccording to the table below.
Driver Pins
The FLY-D5 provides 5 driver ports:
| Driver | STEP | DIR | EN | UART/CS | DIAG |
|---|---|---|---|---|---|
| DRIVER0 | PC15 | PC14 | PC2 | PC13 | PB4 |
| DRIVER1 | PA1 | PA0 | PA2 | PC3 | PB3 |
| DRIVER2 | PA5 | PA4 | PA6 | PA3 | PD2 |
| DRIVER3 | PC5 | PC4 | PB0 | PA7 | PB5 |
| DRIVER4 | PB10 | PB2 | PB11 | PB1 | NC |
Before starting, completely turn off the printer and disconnect the power supply. Do not plug or unplug cables, rearrange connector wiring, or touch terminals while the power is on.
In the table, rows where the corresponding driver DIAG is not - indicate that the DIAG signal of that driver is already connected to the corresponding input port on the main controller. When enabling sensorless homing, configure the diag_pin directly according to the table. The corresponding input port will be occupied by the DIAG signal. Do not connect mechanical or optical endstops simultaneously. Drivers without a listed DIAG correspondence cannot be directly configured for sensorless homing according to the table.
SPI Bus
SPI drivers such as the TMC5160 use the motherboard's hardware SPI bus. In the configuration, simply set spi_bus: spi2. There is no need to configure the MOSI/MISO/SCLK pins separately:
[tmc5160 stepper_x]
spi_bus: spi2
cs_pin: UART/CS pin of the corresponding driver
Detailed instructions on software SPI and SPI speed, etc.: SPI Configuration Method
Endstops and Probe
| Function | Pin | Corresponding Driver DIAG |
|---|---|---|
| Endstop Port 0 / IO3 | PB4 | DRIVER0 |
| Endstop Port 1 / IO2 | PB3 | DRIVER1 |
| Endstop Port 2 / IO1 | PD2 | DRIVER2 |
| General Input / IO0 | PD3 | - |
| Probe / IO4 | PB5 | DRIVER3 |
Heating
| Function | Pin |
|---|---|
| Heater Port 0 | PC6 |
| Heater Port 1 | PC7 |
Temperature Sensors
| Function | Pin |
|---|---|
| Thermistor Port 0 | PC0 |
| Thermistor Port 1 | PC1 |
The thermistor ports support NTC thermistors (100K) by default. The recommended sensor_type configuration is Generic 3950.
List of Klipper's built-in
sensor_typeoptions that can be connected directly, and suitable applications for each model: Thermistor Configuration Method
K-type thermocouples, PT100, etc., require additional conversion chips and cannot be connected directly to the thermistor ports.
Fans
| Function | Pin |
|---|---|
| Fan Port 0 | PC8 |
| Fan Port 1 | PC9 |
PWM
The FLY-D5 provides 1 PWM output, which can be used for servos, fan speed control, etc.:
| Pin | Remarks |
|---|---|
| PA8 | Servo / BLTouch control |
BL-Touch
| Function | Pin |
|---|---|
| Servo Signal | PA8 |
| Probe Signal | PB5 |
EXP Interface
- The EXP header is commonly used for displays such as the Mini12864 or for expanding peripherals.
- If a pin is already used by SPI, UART, endstop, fan, or other functions, do not configure it redundantly for EXP peripherals.
EXP1
| Function | Pin |
|---|---|
| EXP1_1 | NC |
| EXP1_2 | PA15 |
| EXP1_3 | PC11 |
| EXP1_4 | PA14 |
| EXP1_5 | PC10 |
| EXP1_6 | PA13 |
| EXP1_7 | NC |
| EXP1_8 | NC |
| EXP1_9 | GND |
| EXP1_10 | 5V |
EXP2
| Function | Pin |
|---|---|
| EXP2_1 | PB14 |
| EXP2_2 | PB13 |
| EXP2_3 | PC12 |
| EXP2_4 | PB12 |
| EXP2_5 | PB6 |
| EXP2_6 | PB15 |
| EXP2_7 | NC |
| EXP2_8 | RST |
| EXP2_9 | GND |
| EXP2_10 | NC |