Welcome! Log In Create A New Profile

Advanced

How to use / calibrate UBL autoleveling

Posted by JPT 
JPT
How to use / calibrate UBL autoleveling
January 28, 2024 10:58AM
Hi,

I finally succeded in installing marlin 2.1.x-bugfix on my Creality CR-10S5plus BT touch and STM32F103 board version 4.2.7.
(I used the Ender 3 config)

But I just don't know how to make autoleveling UBL work.
It doesn't even home the Z axis any more. (z end-stop is disabled as it is said to interfere with the probe)
I found several guides on how to configure Marlin for UBL. but that is the easy part. The hard part is making the printer move winking smiley

I already set
#define NOZZLE_TO_PROBE_OFFSET { -45, -5, 0 }
Should Z later contain the fine tuned offset?
Marlin does not know M851, how am I supposed to fine-tune the Z offset?

Or is there any other way to calibrate auto leveling?

Do I have to define the probing mesh? how?
Found a menu option, but couldn't figure out how to use it.

When finished I would like to have automatic autoleveling whenever I home the machine. (because the huge 500x500 bed just doesn't keep the calibration for too long.)
Should use this:
#define ENABLE_LEVELING_AFTER_G28


thanks

Edited 4 time(s). Last edit at 01/28/2024 01:23PM by JPT.
JPT
Re: How to use / calibrate UBL autoleveling
January 28, 2024 01:24PM
I finally found what I was searching for:
[marlinfw.org]

Why has finding anything in the internet got almost impossible?
Google just brings up brain dead answers.
JPT
Re: How to use / calibrate UBL autoleveling
January 29, 2024 03:56AM
The guide does not work.
There is no Z_PROBE_OFFSET_FROM_EXTRUDER
This was a variable from Marlin 1.1, so is the guide THAT old?

aborts after homing X and Y
SENDING:G28
Error:!! STOP called because of BLTouch error - restart with M999

does not give any output, except echoing the commands:
SENDING:M111 S255
echo: DEBUG:ECHO,INFO,ERRORS,DRYRUN,COMMUNICATION

SENDING:G29 P1
Error:!! STOP called because of BLTouch error - restart with M999
Default storage slot 0 selected.
Mesh invalidated. Probing mesh.
Probing mesh point 1/100.
Error:!! STOP called because of BLTouch error - restart with M999
Error: Probing Failed
[both repeated several times]
Probing mesh point 2/100.
[and so on]

The problem is, it does not move the Z axis at all. so the probe goes into empty air.
I am quite sure the hardware is fine as with the stock CR-10 firmware it worked.
(except the bed size was wrong which forces me to compile my own firmware)

Stock firmware:
(crashes later when issuing other commands from the guide)
SENDING:G29 P1
Bilinear Leveling Grid:
      0      1      2
 0 +0.084 -0.024 +0.121
 1 +0.006 -0.009 +0.115
 2 +0.041 +0.053 +0.167

When I start printing with the stock firmware it just runs into the bed without end.

Edited 4 time(s). Last edit at 01/29/2024 04:39AM by JPT.
Re: How to use / calibrate UBL autoleveling
January 29, 2024 05:29AM
It was renamed.

#elif defined(X_PROBE_OFFSET_FROM_EXTRUDER) || defined(Y_PROBE_OFFSET_FROM_EXTRUDER) || defined(Z_PROBE_OFFSET_FROM_EXTRUDER)
#error "[XYZ]_PROBE_OFFSET_FROM_EXTRUDER is now NOZZLE_TO_PROBE_OFFSET."


Z Not moving at all is generally your config has told marlin to look in at the wrong port.

If probe is plugged into the 5 pin probe port you need this in your configuration.h

//#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
#define USE_PROBE_FOR_Z_HOMING
//#define Z_MIN_PROBE_PIN -1

If probe is plugged into z-stop pin and probe port you need this
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
#define USE_PROBE_FOR_Z_HOMING
//#define Z_MIN_PROBE_PIN -1

If your plugging a bltouch with DuPont connectors into the 5 pin JST port, your in for a world of pain as they do not fit and will happily sit there looking like they are connected when they are not

The black connectors are dupont connectors



Edited 1 time(s). Last edit at 02/04/2024 04:12AM by Dust.
JPT
Re: How to use / calibrate UBL autoleveling
January 31, 2024 09:52AM
Great, thank you!
it was about disabling
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

No, I use the original sockets and plugs, I cut the cables and added custom plugs in between to attach 2x Z-Axis motors to one plug etc.

Now I try to guess the correct Z offset. That'll take some time...
I use the M851 command for that?

The hot-end fans are off. any idea why that is?
I remember they should be on when the steppers are on?

The Extruder does not want to extrude.
If I manually move the extruder from the panel, for negative values it moves backward and for positive forward. but it always stops before any materal leaves the nozzle.

Edited 3 time(s). Last edit at 01/31/2024 10:23AM by JPT.
JPT
Re: How to use / calibrate UBL autoleveling
February 03, 2024 08:02AM
Well, it works now.
That is, printing works fine.

the command I used for testing
G26 C P5.0 F3.0
assumed 3 mm filament.
JPT
Re: How to use / calibrate UBL autoleveling
February 16, 2024 06:10AM
I created a pull request for an updated UBL documentation
[github.com]
Sorry, only registered users may post in this forum.

Click here to login