Skip to main content

Pinout

Note
  • This page lists the pinout of the FLY-F407ZG motherboard after flashing Klipper firmware. Pin numbers are based on the motherboard schematic.
  • UART/CS is the driver communication pin: used as UART with TMC2209, and as chip select CS with SPI drivers such as TMC5160. The same pin is shared between these functions.
  • EN is the enable pin, typically active-low in Klipper configuration (prefix enable_pin with !).
  • The driver sockets on the FLY-F407ZG do not provide a DIAG mapping that can be directly used for Klipper sensorless homing. The regular IOs listed below are for endstops or general inputs only.
Loading...

Interactive Pin Hotspots​

The image below uses the FLY-F407ZG product image and the same hotspot data from the Klipper configuration generator. Use the device filters above to show only compatible connectors; click a hotspot to see compatible devices, common Klipper configuration sections, and notes. Use “Locate in pin table” in the detail panel to jump to and highlight the corresponding row below. Hover still shows the connector name and pin. Always verify the silkscreen and connector positions against the physical board and schematic.

Filter by deviceClick a device type to show only connectors that support it; click again to clear the filter.
FLY-F407ZGMotor driversHeatersThermistorsFansEndstops
FLY-F407ZG

Hover to see the pin; click a hotspot to view compatible devices and configs. Pins can be copied from the detail panel, except for driver connectors.

Driver Pins​

The FLY-F407ZG provides 9 driver sockets:

DriverSTEPDIRENUART/CSDIAG
DRIVER0PB9PE0PE1PG13-
DRIVER1PB8PG11PG12PG10-
DRIVER2PA8PD6PD7PD5-
DRIVER3PC7PD3PD4PD1-
DRIVER4PC6PA15PD0PA14-
DRIVER5PD15PG7PG8PG6-
DRIVER6PD14PG4PG5PG3-
DRIVER7PD13PD11PG2PD10-
DRIVER8PD12PD8PD9PB12-
Power Off Before Operation

Before starting, completely shut down the printer and disconnect the power supply. Do not plug or unplug wiring harnesses, organize interface wiring, or touch terminals while the power is on.

DIAG and Sensorless Homing

Neither the pinout diagram nor the reference configuration for the FLY-F407ZG provides a mapping from the driver DIAG pins to the MCU input pins, so DIAG remains - in the driver table.

The IO0-IO7 pins listed below are independent regular endstop / general input pins, not driver DIAG signals. When configuring Klipper, do not use these regular IOs directly as diag_pin for any driver.

SPI Bus​

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

[tmc5160 stepper_x]
spi_bus: spi1a
cs_pin: UART/CS pin of the corresponding driver

Detailed information on software SPI and SPI speed: SPI Configuration Method

Endstops and Probe​

FunctionPinCorresponding Driver DIAG
Endstop Port 0 / IO0PC3-
Endstop Port 1 / IO1PC2-
Endstop Port 2 / IO2PF2-
Endstop Port 3 / IO3PF1-
Endstop Port 4 / IO4PF0-
Endstop Port 5 / IO5PC15-
Endstop Port 6 / IO6PC14-
Endstop Port 7 / IO7PA3-

For wiring of micro switches, optical endstops, proximity sensors, and TAP, see: Endstop Wiring Guide

Heaters​

FunctionPin
Heated Bed HeaterPE2
Heater Port 0PF7
Heater Port 1PF6
Heater Port 2PE6
Heater Port 3PE5
Heater Port 4PE4
Heater Port 5PE3

Temperature Sensors​

FunctionPin
Heated Bed ThermistorPF3
Thermistor Port 0PA0
Thermistor Port 1PC1
Thermistor Port 2PC0
Thermistor Port 3PF10
Thermistor Port 4PF5
Thermistor Port 5PF4
Supported Thermistor Types

The thermistor ports support NTC thermistors (100K) by default, with sensor_type recommended as Generic 3950; they also support 2-wire PT1000, configured by setting sensor_type to PT1000.

List of sensor_type options that can be directly connected internally by Klipper and their applicable scenarios: Thermistor Configuration Method

K-type thermocouples, 3-wire PT100, etc., require additional signal conditioning chips and cannot be connected directly to the thermistor ports.

Fans​

FunctionPin
Fan Port 0PF8
Fan Port 1PF9
Fan Port 2PA2
Fan Port 3PA1
Fan Port 4PE13
Fan Port 5PB11

PWM​

The FLY-F407ZG provides 1 PWM output, which can be used for servos, fan speed control, etc.:

PinRemark
PE11Servo / BLTouch control

EXP Interface​

EXP Configuration Reminder
  • EXP headers are commonly used for Mini12864 and other displays or expansion peripherals.
  • If a pin is already occupied by SPI, UART, endstop, fan, or other functions, do not configure it again for EXP peripherals.

EXP1​

FunctionPin
EXP1_1PB10
EXP1_2PE15
EXP1_3PE14
EXP1_4PE12
EXP1_5PE10
EXP1_6PE9
EXP1_7PE8
EXP1_8PE7
EXP1_9GND
EXP1_105V

EXP2​

FunctionPin
EXP2_1PB14
EXP2_2PB13
EXP2_3PC5
EXP2_4PF11
EXP2_5PC4
EXP2_6PB15
EXP2_7PB2
EXP2_8RST
EXP2_9GND
EXP2_10NC
Loading...