Skip to main content

Pin Configuration

Note
  • This page lists the pin configuration of the FLY-Gemini V3 motherboard after flashing Klipper firmware. The pin numbers are based on the motherboard schematic.
  • UART/CS is the driver communication pin: when using TMC2209, it functions as UART; when using SPI drivers like TMC5160, it serves as the chip select CS pin. The same pin is multiplexed.
  • EN is the enable pin. In Klipper configuration, it is typically active low (enable_pin with the ! prefix).
  • 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-Gemini V3 provides 4 driver ports:

DriverSTEPDIRENUART/CSDIAG
DRIVER0PC13PC1PA3PB11PA4
DRIVER1PC14PC4PD2PC10PA5
DRIVER2PC15PC5PC12PB7PA6
DRIVER3PC3PC8PC11PB6PB1
Power Off Before Operation

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

DIAG and Sensorless Homing

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

  • DRIVER0–3: The DIAG pins are directly connected to the corresponding limit switch input ports on the main controller (DRIVERn → Limit Port n). There are no DIAG jumper pins on the board; the DIAG signal is always delivered to the main controller. When enabling sensorless homing, directly configure the corresponding limit switch port pin as the diag_pin. Do not connect a physical limit switch to that limit port.

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

SPI Bus

SPI drivers such as the TMC5160 use the motherboard's hardware SPI bus. In the configuration, simply set spi_bus: spi3 — there is no need to configure the MOSI/MISO/SCLK pins separately:

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

For detailed information on software SPI and SPI speed, refer to: SPI Configuration Method

Endstops and Probe

FunctionPinCorresponding Driver DIAG
Endstop Port 0 / IO0PA4DRIVER0
Endstop Port 1 / IO1PA5DRIVER1
Endstop Port 2 / IO2PA6DRIVER2
Endstop Port 3 / IO3PB1DRIVER3
ProbePA1-

Heating

FunctionPin
Heater Port 0PA0
Heated BedPA2

Temperature Sensors

FunctionPin
Thermistor Port 0PC0
Thermistor Port 1PC2
Supported Thermistor Types

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

For the list of built-in sensor_type options in Klipper that can be connected directly and their applicable scenarios: Thermistor Configuration Method

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

Fans

FunctionPin
Fan Port 0PC6
Fan Port 1PC7

PWM

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

PinRemarks
PB0Servo / BLTouch control

BL-Touch

FunctionPin
Servo SignalPB0
Probe SignalPA1
Loading...