FYSETC / FYSETC-R4

3D printer/CNC/Laser cutting motherboard based on RP2040
9 stars 3 forks source link

BLTouch not working #6

Open zedic opened 1 year ago

zedic commented 1 year ago

I can not get BLTouch 3.1 working with R4. I have tried two different BLTouch.

I am using these settings:

[stepper_z] step_pin: gpio19 dir_pin: !gpio18 enable_pin: !gpio17 endstop_pin: probe:z_virtual_endstop # Use BLTouch

[bltouch] sensor_pin: ^gpio13 # (J32 Pin3) White Wire control_pin: gpio25 # (J32 Pin5) Yellow Wire

Attached is a picture of my BLTouch Wiring.

BLTOUCH-Wires

zedic commented 1 year ago

I got it working using the Z-Stop (J23 - Pin 3.) as shown in the picture. I believe my issue is related to the circuit. The Z-stop J23 - Pin 3 circuit has a 10K pull down resistor, but BL-Touch J32 - Pin 3 circuit seems to be connected to RPI GPIO13 in some different way. When the bltouch is connected to J32 - Pin3 I used the commands BLTOUCH_DEBUG COMMAND=pin_down, BLTOUCH_DEBUG COMMAND=touch_mode, QUERY_PROBE which does not result in tiggered, but it is tiggered correctly when connected to Z-Stop. There might be a way to get this working, but I could not figure it out.

R4-Photo-01

GerogeFu commented 1 year ago

I test it on my side it is working, maybe it is related to the config https://www.klipper3d.org/BLTouch.html#bl-touch-v3 , pic below is my wiring dc4384595c62017a7914e0881e5fa19

zedic commented 1 year ago

The control pin works, but the sensor pin will not show triggered in Touch Mode. I tried both a BL-Touch V3.1, and a BL-Touch V2. Both are the same results.

Test results - sensor wire is connected to Z-Stop

Test results - sensor wire connected to J32 Pin3 (Same config, no changes to code.)

As an experiment I used the same klipper firmware version on a Raspberry Pi Pico. I connected the BL-Touch directly to the GPIO pins on the Pi Pico (RP2040) and used the same Klipper config. The results on the Raspberry Pi Pico work as expected. Using Touch mode, the probe shows triggered. There is something wrong/different about J32 Pin3. It will not trigger. It does not respond like a RP2040 GPIO should respond.

I'm using the latest firmware. makemenuconfig-latest

FYSEC-R4-Klipper-version