Klipper config problem with Tronxy x5sa 2e

Hello,

I have a Tronxy x5sa 2e. A week ago I wanted to print with my second extruder. So I tryed to configured the print.cfg file. Unfortunately I can’t get any further. I added the 2nd extruder and the T1 and T0 macros too. On my printer’s clipper screen I can select the 2nd extruder, but it doesn’t work. The cable and motor work perfectly.

My guess is that the wrong pins are specified. However, I don’t have a blueprint of the Ch… v6 board. And I have no idea what the difference is, e.g. PA8 to PB8 to PC8 and so on.

I would be very happy if you could help me.

and a big thank you to Kevin o Konnor

File:

[duplicate_pin_override]
pins: PG12, PA1 # multibale pin use for the heater

[extruder]
step_pin: PB4
dir_pin: !PB5
enable_pin: !PB8
microsteps: 32
rotation_distance: 22.478
gear_ratio: 66:22
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PG12
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA1
control : pid
pid_kp = 24.807
pid_ki = 1.313
pid_kd = 117.212
min_temp: 0
max_temp: 250
max_extrude_only_distance: 300

[extruder1]
step_pin: PB7
dir_pin: PB6
enable_pin: !PB8
microsteps: 32
rotation_distance: 22.478
gear_ratio: 66:22
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PG12
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA1
control : pid
pid_kp = 24.807
pid_ki = 1.313
pid_kd = 117.212
min_temp: 0
max_temp: 250
max_extrude_only_distance: 300

[gcode_macro T0]
gcode:
SET_SERVO SERVO=extruder_servo angle=100 # Lift secondary extruder
SET_GCODE_OFFSET Z=0 MOVE=1 # Adjust z-height
SET_GCODE_OFFSET X=0 # Clear X offset
ACTIVATE_EXTRUDER EXTRUDER=extruder

[gcode_macro T1]
gcode:
SET_GCODE_OFFSET Z=0.100 MOVE=1 # Adjust z-height
SET_SERVO SERVO=extruder_servo angle=100 # Position second extruder
SET_GCODE_OFFSET X=5 # Account for different X offset
ACTIVATE_EXTRUDER EXTRUDER=extruder1

Hello @LuciDude !

Are you sure about these pins used twice?

  • enable_pin
  • heater_pin
  • sensor_pin

Yes, because Klipper says I need them.

Of course you need them, but each hot end has it’s own pins for enable, heater and sensor.
You have to investigate what the correct ones are.

I got only 1 header and 1 nozzle, but 2 extruders. I only got 1 sensor and 1 header. So i have to dubble use that 3 pins.

I see - that makes sense

I have doubts that this is going to work:

  • Duplicate sensor pin: Your reading will be way off when you connect two sensors to the same pin
  • Duplicate heater pin: Both heaters will be active at the same time, effectively doubling the load in the MOSFET, which might fry as it is not meant for such a load.

Apart from this, it is not a “real” dual extruder but a 2-in-1-out. You might want to check X-In/1-Out Non-Mixing Extruder Config

Has anyone got the x5sa 2e to work with the extruder properly ?