Skip to main content

Pin Mapping

Note
  • This page lists the pin mapping of the FLY-Super5 motherboard after flashing the Klipper firmware. Pin numbers are based on the motherboard schematic.
  • UART/CS is the driver communication pin: used as UART when using TMC2209, and as chip select CS when using SPI drivers such as TMC5160. The same pin is shared between these functions.
  • EN is the enable pin. In Klipper configurations, it is typically active-low (with the ! prefix in enable_pin).
  • DIAG is the driver diagnostic signal pin. When using sensorless homing, configure the corresponding diag_pin according to the table below.
Loading...

Driver Pins

The FLY-Super5 provides 5 driver ports:

DriverSTEPDIRENUART/CSDIAG
DRIVER0PE14PE15PB11PB10PB7
DRIVER1PE11PE12PE13PE10PC13
DRIVER2PE7PE8PE9PA4PC7
DRIVER3PE4PE5PC1PC0PC14
DRIVER4PE1PE2PE3PE0PC6
Power Off Before Operation

Before starting, completely turn off the printer and disconnect the power supply. Do not plug or unplug cables, organize wiring, or touch terminals while the printer is powered on.

DIAG and Sensorless Homing

When using sensorless homing, the driver chip outputs a stall detection signal through the DIAG pin, which Klipper must read via the corresponding input port. The mapping between DIAG pins and endstop ports on this motherboard is as follows:

  • DRIVER0–4: The DIAG pins are directly connected to the corresponding endstop input ports on the main controller (DRIVERn → Endstop Port n). There are no DIAG jumper pins on the board; the DIAG signal is always sent to the main controller. To enable sensorless homing, simply configure the corresponding endstop port pin as diag_pin. Do not connect a physical endstop switch to that endstop port.

Once sensorless homing is enabled, the corresponding endstop port is occupied by the DIAG signal and must not be used with a mechanical or optical endstop switch simultaneously.

SPI Bus

SPI drivers such as the TMC5160 use the motherboard's hardware SPI bus. Configure spi_bus: spi1a in the configuration; there is no need to configure MOSI/MISO/SCLK pins separately:

[tmc5160 stepper_x]
spi_bus: spi1a
cs_pin: Corresponding driver's UART/CS pin

Detailed explanation of software SPI, SPI speed, etc.: SPI Configuration Guide

Endstops and Probe

FunctionPinCorresponding Driver DIAG
Endstop Port 0 / IO0PB7DRIVER0
Endstop Port 1 / IO1PC13DRIVER1
Endstop Port 2 / IO2PC7DRIVER2
Endstop Port 3 / IO3PC14DRIVER3
Endstop Port 4 / IO4PC6DRIVER4
Endstop Port 5 / IO5PC15-
ProbePC2-

Heaters

FunctionPin
Heated Bed HeaterPB0
Heater Port 0PD12
Heater Port 1PD13

Temperature Sensors

FunctionPin
Heated Bed ThermistorPB1
Thermistor Port 0PC4
Thermistor Port 1PC5
Supported Thermistor Types

The thermistor ports support NTC thermistors (100K) by default. It is recommended to set sensor_type to Generic 3950.

List of built-in sensor_type options available in Klipper and their applicable scenarios: Thermistor Configuration Guide

K-type thermocouples, PT100, and other sensor types require additional signal conversion chips and cannot be connected directly to the thermistor ports.

Fans

FunctionPin
Fan Port 0PA0
Fan Port 1PA1
Fan Port 2PA2
Fan Port 3PA3

PWM

The FLY-Super5 provides 2 PWM outputs, which can be used for servos, fan speed control, etc.:

PinRemark
PB2IN / PWM_OUT
PE6Servo / BLTouch control

BL-Touch

FunctionPin
Servo SignalPE6
Probe SignalPC2

EXP Interface

EXP Configuration Note
  • The EXP header pins are often used for displays like the Mini12864 or other expansion peripherals.
  • If a pin is already used for SPI, UART, endstop, fan, or other functions, do not configure it again for EXP peripherals.

EXP1

FunctionPin
EXP1_1PA8
EXP1_2PA13
EXP1_3PA15
EXP1_4PA14
EXP1_5PD0
EXP1_6PD1
EXP1_7PD4
EXP1_8PD3
EXP1_9GND
EXP1_105V

EXP2

FunctionPin
EXP2_1PB4
EXP2_2PB3
EXP2_3PD7
EXP2_4PB6
EXP2_5PD6
EXP2_6PB5
EXP2_7PD5
EXP2_8RST
EXP2_9GND
EXP2_105V
Loading...