CR-200B BLTouch not working properly

Basic Information:

Printer Model: CR-200B
MCU / Printerboard: STM32F103RE / Creality Board 4.2.5
Host / SBC: Mainsail / RPI3
klippy.log

klippy.log (2.5 MB)

printer.cfg (7.8 KB)

Hi!

I can’t seem to get the BLTouch sensor to work. My custom wiring for the BLTouch sensor seems to be fine since it worked well with Marlin.

Powering on the machine the bltouch does the self-test fine dropping the probe needle twice, then sending the following commands:

BLTOUCH_DEBUG COMMAND=pin_down

drops the bltouch needle and the bltouch becomes blue

pushing the needle up it locks the needle in for a few mS turning on a red LED in the bltouch, then it drops back down. But if i hold the needle in and sending a QUERY_PROBE it shows triggered in the console.

If I home all axis, after the x and y axes have homed and are positioned at the middle of the print bed, the z axis starts travelling upwards and when I push the bltouch needle up nothing happens, the z axis keeps travelling upwards, it doesn’t stop.

Also, when I click home all axes the z axis moves down a bit when the bed is already at the lowest point, which leads the z axis stepper to miss steps as it cannot go down any further, but this already happened for some reason when I had Marlin flashed on this printer’s board before..

I attached the klippy.log as well as the printer.cfg

I’m fairly new to klipper and don’t know why klipper isn’t being triggered by the bltouch..

Thank you in advance for any help!

Returned to tweaking some settings again since my last post, and it seems that commenting out:

z_hop: 4

z_hop_speed: 25.0

Now stops the grinding stepper motor noise from the z axis when homing, as the z axis no longer moves down with the z axis carriage already at the lowest point.

Finally, setting probe_with_touch_mode: False now allows the bltouch to be triggered correctly when the probe is pushed up.

printer.cfg (7.9 KB)

Just gonna upload my config, if anything for archival purposes, for a CR-200B, for anyone else who may have this printer with a custom bltouch mounted and who wishes to get it running with klipper

I added the following lines to automatically turn on the lighting LED strip, but this can be disabled by commenting out the following lines

[delayed_gcode turn_led_on_startup]
initial_duration: 0.1
gcode: SET_PIN PIN=LED_light VALUE=1

STM32duino-bootloader Platformio Project.zip (361.4 KB)

Also attach the bootloader Platformio project I made to compile the bootloader if anyone else may end up wiping their bootloaders like I did.

It’s a bootloader from the framework STM32Duino that was modified by me.

Both bootloader and the klippy firmware were flashed onto the chip via STM32CubeProgrammer software with a STLINK ISOL