Klipper on FelixTec 4.1

Hi all,

I have tried to setup Klipper on FelixTec 4.1 and I think I have got wrong pin settings. Any idea how it should be for this printer?
i have got the original FW for that printer, but the numbers of PINs are not the same.

For example

#define ORIG_X_STEP_PIN 54
#define ORIG_X_DIR_PIN 55
#define ORIG_X_ENABLE_PIN 38
#define ORIG_X_MIN_PIN 3
#define ORIG_X_MAX_PIN -1

This is from original repetier

And this is in printer.cfg for klipper
[stepper_x]
step_pin: PF0
dir_pin: PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE3
#endstop_pin: ^PE4
position_endstop: 0
position_max: 200
homing_speed: 50

Thanks for any advice

What driver board and MCU does that use? Any chance you’ve got a schematic for the board?

Unfortunately, they are using theirs own board, I have found out, that theirs board is based on RAMPS but that is all what I have got. :frowning:

https://shop.felixprinters.com/tec-4-control-board

I have used the config for RAMPS in KLIPPER, it shows me the temperatures correctly, but the motors are not moving.

Does this help?
Arduino Pin Mapping:
https://www.arduino.cc/en/Hacking/PinMapping2560

Felix Board definition:

Are the STEP_PIN defines referring to physical pins? (I thought Arduinos had an abstraction on top of them, but that doesn’t hold with what you linked, @Sineos). So ORIG_X_STEP_PIN 54 would be step_pin: PC1 in the Klipper config, right?

Oh I see your point. I will try to remap the pins as per the scheme and I will see.

It does not look that the logic is like that, for example Y-DIR pin is 61 and in the scheme 61 is VCC it can not be like that.

Digital Pin D60 === Analog Pin A6 === PF6

1 Like

Thank you for this picture I will try to set the config as on the picture as soon as possible and I will let you know how if it worked out.
Thank you.

OK So I went through and the settings in my config file correspond with the scheme.
I have even found the pinout on Felix forum and it is the same.
https://forum.felixprinters.com/viewtopic.php?f=75&t=3337&p=11691&hilit=klipper&sid=54afe1231e1e2ba215cacc7f2597814a#p11691

But it still does not work.
I will trz to install whole szstem once more and I will see.

Are you sure that the firmware is correctly flashed?
What is the output of ls /dev/serial/by-id/*?

If in doubt, it may be an issue with the bootloader. Ref. Bootloaders - Klipper documentation

What exactly does not work? Attach the Klipper log please.

Thanks for advice. I will have to go through whole the process and find the mistake. I have done brand new SD card with Fluid and Klipper, tried to flash the bootloader and it is not working,

pi@fluiddpi:~/klipper $ avrdude -cavrispv2 -patmega2560 -P/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH06XEGL-if00-port0 -b115200 -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U lfuse:w:0xFF:m
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

I think I am doing something wrong, but at the moment I am leaving for whole weekend, so next week I will try to do it again.

Thank you

For these command to work you will need extra hardware, e.g. an AVR ISP Mk2
As alternative you can also do it via a Raspberry Pi. Ref to Overview | Program an AVR or Arduino Using Raspberry Pi GPIO | Adafruit Learning System

Before going down this route, verify if the flash succeeded, i.e. Klipper basically connects to the board. The Klipper log will provide the necessary hints.

Ok.
And if I will use Arduino IDE to flash the bootloader, and then the firmware from RPi through Klipper, that will work?

Should work.
As stated before: Messing with the bootloader is surely an advanced topic. Make sure that it is needed.

Your non-working condition can have 3 reasons:

  1. Klipper is properly flashed and able to connect to the board but the cfg is not fully correct
  2. Klipper not correctly installed on the board because of:
    • Wrong flashing procedure
    • Board needs to be set into a “flashable” condition before using the regular flash commands: Can be the case when there is a “boot switch” on the board, which sets the board into a programmable mode. Usually only needed once when moving to Klipper
  3. The bootloader is missing or special: Flash a new bootloader

If 1. is verified move to 2. When 2. is checked move to 3.

Edit:
Disclaimer - I do not know this board, nor am I a uC expert. If aliens abduct your dog, don’t blame me :innocent:

Do you have a jumper on the board around the green marked area?

Ok I am totally lost. I have flashed the boot loader on the board using Arduino IDE. Then I followed the installation of klipper with fluid from the klipper page and it still does not work.
The log file says, that it cannot open the printer.cfg file even when the file is on the RPi.

That is what I understand from the log file.

klippy (1).log (44.8 KB)

I was not sure if I dod not damaged the board, so I used the original firmware and loaded that in the board using Arduino IDE and everything is OK and the printer works as before. I do not know what I am doing wrong with klipper. :frowning:

Log in as user pi via SSH to the console and post the full output of

ls -al /home/pi/klipper_config/

and

ls -al /home/pi/

and check if following command shows your config file:

cat /home/pi/klipper_config/printer.cfg

Yes it showed me whole config file.
image

Before spending too much time in diagnosing this, maybe start over from here: FluiddPI - Fluidd