Pinout
- This page lists the pinout of the FLY-D7 motherboard after flashing Klipper firmware. Pin numbers are based on the motherboard schematic.
UART/CSare the driver communication pins: used as UART with TMC2209, and as chip selectCSwith SPI drivers such as the TMC5160. The same pin is multiplexed.ENis the enable pin, typically active low in Klipper configuration (enable_pinwith!prefix).DIAGis the driver diagnostic signal pin. When using sensorless homing, configure the correspondingdiag_pinaccording to the table below.
Driver Pins
The FLY-D7 provides 7 driver ports:
| Driver | STEP | DIR | EN | UART/CS | DIAG |
|---|---|---|---|---|---|
| DRIVER0 | PC14 | PC13 | PC15 | PB7 | PB3 |
| DRIVER1 | PA1 | PA0 | PA2 | PC3 | PD2 |
| DRIVER2 | PA5 | PA4 | PA6 | PA3 | PA9 |
| DRIVER3 | PC5 | PC4 | PB0 | PA7 | PB4 |
| DRIVER4 | PB10 | PB2 | PB11 | PB1 | NC |
| DRIVER5 | PC12 | PB5 | PC11 | PB6 | NC |
| DRIVER6 | PA15 | PA14 | PA13 | PC10 | NC |
Before starting, completely shut down the printer and disconnect the power supply. Do not plug or unplug wiring harnesses, arrange interface wiring, or touch terminals while the power is on.
In the table, rows where Corresponding Driver DIAG is not - indicate that the driver's DIAG pin is connected to the corresponding main controller input. When enabling sensorless homing, configure diag_pin directly according to the table. The corresponding input will be occupied by the DIAG signal; do not connect mechanical or optical endstops simultaneously. Drivers without a listed DIAG mapping cannot be configured for sensorless homing directly according to the table.
SPI Bus
SPI drivers such as the TMC5160 use the motherboard's hardware SPI bus. Configure spi_bus: spi2 in the configuration; there is no need to configure MOSI/MISO/SCLK pins separately:
[tmc5160 stepper_x]
spi_bus: spi2
cs_pin: corresponding driver's UART/CS pin
For detailed instructions on software SPI and SPI speed, etc.: SPI Configuration Method
Endstops and Probe
| Function | Pin | Corresponding Driver DIAG |
|---|---|---|
| Endstop Port 0 / IO0 | PB3 | DRIVER0 |
| Endstop Port 1 / IO1 | PD2 | DRIVER1 |
| Endstop Port 2 / IO2 | PA9 | DRIVER2 |
| Endstop Port 3 / IO3 | PA10 | - |
| Probe | PB4 | DRIVER3 |
Heating
| Function | Pin |
|---|---|
| Heater Port 0 | PC6 |
| Heater Port 1 | PC7 |
| Heater Port 2 | PB12 |
Temperature Sensors
| Function | Pin |
|---|---|
| Thermistor Port 0 | PC0 |
| Thermistor Port 1 | PC1 |
| Thermistor Port 2 | PC2 |
The thermistor ports support NTC thermistors (100K) by default. The recommended sensor_type configuration is Generic 3950.
For the list of built-in
sensor_typeoptions that can be directly connected in Klipper and their applicable scenarios: 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-D7 provides 1 PWM output, which can be used for servos, fan speed control, etc.:
| Pin | Notes |
|---|---|
| PA8 | Servo / BLTouch control |
BL-Touch
| Function | Pin |
|---|---|
| Servo Signal | PA8 |
| Probe Signal | PB4 |