Bed_Distance_sensor icon indicating copy to clipboard operation
Bed_Distance_sensor copied to clipboard

how can i work z real time adjust on the printing。please help。i am use the BDSensor work in klipper

Open whycch opened this issue 2 years ago • 14 comments

whycch avatar Sep 13 '23 15:09 whycch

Unfortunately for Klipper version, real time adjustment is not available.

DarKingF0x avatar Sep 13 '23 16:09 DarKingF0x

how fast i can read the distace data in a cycle. less than 1ms is it work? i still want to adaptive it work in klipper.

whycch avatar Sep 14 '23 01:09 whycch

recommend the cycle time is 10ms.

markniu avatar Sep 14 '23 01:09 markniu

are you have a technology communication group on QQ or wechat or others application

whycch avatar Sep 14 '23 02:09 whycch

are you have a technology communication group on QQ or wechat or others application thanks, I just create a QQ group: 616205664

markniu avatar Sep 14 '23 02:09 markniu

are you have a technology communication group on QQ or wechat or others application

thanks, I just create a QQ group: 616205664

markniu avatar Sep 14 '23 02:09 markniu

Unfortunately for Klipper version, real time adjustment is not available.

~~Is this a limitation of Klipper, or does the code here just not currently support it?~~

Nevermind, I see now it uses Marlin's M102 to implement this which is not available in Klipper.

I don't see any discussion on the klipper_beta directory which seems to have been updated to start incorporating M102 into the code - is this in a usable state for testing? My sensor is arriving any day and can contribute to testing but not sure how 'rough' the beta might be.

zimmra avatar Nov 01 '23 17:11 zimmra

there is some limitation of klipper, but maybe it's possible so I am resuming to develop the code in klipper for the real time adjustment. please do not use the klipper_beta for it is in development.

markniu avatar Nov 02 '23 09:11 markniu

can't wait to see it work, I received mine today

Eloura74 avatar Nov 06 '23 08:11 Eloura74

there is some limitation of klipper, but maybe it's possible so I am resuming to develop the code in klipper for the real time adjustment. please do not use the klipper_beta for it is in development.

Hi, there was an update to BDsensor, and it said the realtime lveling was in it. How can we use it? Or is it not working yet?

LAZER555 avatar Nov 24 '23 04:11 LAZER555

  1. update the files in ~/Bed_Distance_sensor/klipper_Beta;
  2. go into the folder cd ~/Bed_Distance_sensor/klipper_Beta and run ./install_BDsensor.sh.
  3. compile and flash the klipper.bin firmware again;

Edit the start gcode in your slicer: remove the auto bed leveling command BED_MESH_CALIBRATE and add BDSENSOR_SET REAL_TIME_HEIGHT=xx under the G28, also z_tilt or gantry level is recommended. here xx is the first layer height that will do real time leveling, for example, set the first layer height to 0.32mm

G28
QUAD_GANTRY_LEVEL
G28
BDSENSOR_SET REAL_TIME_HEIGHT=0.32

note: this real time leveling works only with the BDsensor and Z motors are connected in the same MCU.

markniu avatar Nov 24 '23 04:11 markniu

woo,i Can't wait to test tonight

whycch avatar Nov 24 '23 05:11 whycch

  1. update the files in ~/Bed_Distance_sensor/klipper_Beta;
  2. go into the folder cd ~/Bed_Distance_sensor/klipper_Beta and run ./install_BDsensor.sh.
  3. compile and flash the klipper.bin firmware again;

Edit the start gcode in your slicer: remove the auto bed leveling command BED_MESH_CALIBRATE and add BDSENSOR_SET REAL_TIME_HEIGHT=xx under the G28, also z_tilt or gantry level is recommended. here xx is the first layer height that will do real time leveling, for example, set the first layer height to 0.32mm

G28
QUAD_GANTRY_LEVEL
G28
BDSENSOR_SET REAL_TIME_HEIGHT=0.32

note: this real time leveling works only with the BDsensor and Z motors are connected in the same MCU.

So I have the BD sensor connected to the EBB42 and the Z steppers connected to SKR MINI E3 board. Different mcus so won't work?

Townie-au avatar Nov 24 '23 10:11 Townie-au

note: this real time leveling works only with the BDsensor and Z motors are connected in the same MCU.

is this limitation for the time being only? will you be able to adapt to the many voron/canbus-iusers which mostly will have their bdsensor connected to the external MCU while the z-steppers are controlled by an Octopus or thelike? any chance this will ever work?

koira avatar Dec 06 '23 15:12 koira