Struggling with Bed Level with BL Touch and Bed visualiser

Apologies if this should be under Plugins, not 100% where it needed to go so went her as a stating point.

When I run the Update Mesh Now from the Bed Visualiser it comes back with something that looks fairly hideous. In case the picture I'm trying to post doesn't appear it's also available here (google docs) Min is -.206 max is .745 so I'm nearly 1mm out. Looking at the graph I think that it's low on the far left corner (0,220) and high on the front right (220,0).

However, it doesn't seem to matter how slowly I wind the nuts, what I do doesn't seem to impact the graph how I expect it too. I think the nut and bolt are a 1mm pitch so in my head, looking at that picture I need to turn the back left screw anti(counter) clock about 1/4 turn and the front right half a turn clockwise (just less).

I'm also slightly confused as to whether or not generating the mesh will automatically save it and how once it is saved I make sure the printer uses the mesh to auto adjust.

If anyone is able to confirm or point me to where I need to look to work it out I would really appreciate it.

Hello @Garethw !

What is the code in the Bed Visualiser settings?

It's possible that you are also adjusting the wrong screw if you haven't oriented the visualization to the real world. What I typically recommend to people is manually level your bed first the old school way with paper/feeler gauge. Then place something with some thickness in the front right corner and run an update mesh process. This will then tell you if the plugin is rendering correctly. If the bump doesn't show in the graph in the front right use the various flip options in the plugin's settings to account for that.

Thanks for the pointers guys.
@jneilliii I'll try your suggestion to make sure the visualisation is the correct way round. Presumably a few sticky notes or a couple of business cards would be the best plan.

@Ewald_Ikemann in settings -> Bed Visualizer -> collection I have;

M140 S60 ; starting by heating the bed for nominal mesh accuracy
M117 Homing all axes ; send message to printer display
G28      ; home all axes
M117 Heating the bed ; send message to printer display
M190 S60 ; waiting until the bed is fully warmed up
M300 S1000 P500 ; chirp to indicate bed mesh levels is initializing
M117 Creating the bed mesh levels ; send message to printer display
M155 S30 ; reduce temperature reporting rate to reduce output pollution
@BEDLEVELVISUALIZER	; tell the plugin to watch for reported mesh
G29 T	   ; run bilinear probing
M155 S3  ; reset temperature reporting
M140 S0 ; cooling down the bed
M300 S440 P200 ; make calibration completed tones
M300 S660 P250
M300 S880 P300
M117 Bed mesh levels completed ; send message to printer display

and "save mesh" ticked (which I guess answers one of my questions!)

Your code will not save the mesh to EEPROM. the option to save is a setting to store the mesh in the plugin's settings so it doesn't run the update mesh code every time you switch to the tab. If you want to save mesh and your printer supports it, you need to add a M500 to the update mesh code.

Thanks again @jneilliii,

Ok, I understand that I add M500 to the end of the collection G Code to save the current mesh.

Q1. How do I then test if my printer supports saving and if the saved values are restored after a restart.
Q2. Do I need to do anything at the start of each print to make the printer use the mesh or will it just do so automatically if it's been saved / restored with M500?

M115 may potentially give you some insight as to what's enabled in firmware (if capabilities reporting is enabled at least). If saving mesh to EEPROM is possible, then you would have to use a command to activate that mesh. There are some options like RESTORE_LEVELING_AFTER_G28 or something like that in Marlin that could be enabled otherwise after a G28 command you have to activate leveling/mesh. I think the command is M420 S, see the notes section in link below.

Brilliant, thanks. Yes, it looks like I do have RESTORE_LEVELING_AFTER_G28 as if I disable with M420 S0 then run G28 then check M420 again it shows as enabled. Good news. M500 also shows what I think is the points for the grid and they are retained over a power cycle.

But...
(and if this becomes a "wrong forum mate" then please say)

I'm still struggling. I'm using Mick from teaching tech's calibration tutorial (here if you have not seen it) and I dialled the Z offset in at the centre of the bed. It now prints beautifully in the 0,0 corner but it then goes horribly wrong in the centre and other corners.

I would have thought that if Z offset is correct and works at 0,0 and bed levelling is enabled then it should be right everywhere. Am I missing something fundamental here?

I really appreciate the help here guys,

No, your assumptions are correct. If offset is correct and the mesh is correct and enabled then as the nozzle moves around the bed it should raise and lower appropriately based on the mesh surface. With the assumption that none of the screws loosened or adjustments made after probing, etc.

So that's kind of good news in that what I thought should be happening is correct but also bad news as that's not what I'm seeing.

Can anyone think why this is going wrong. My process is;
Run update mesh through bed visualiser in octopi
Heat bed to 60 and tool to 150
run G1 X110 Y110 Z0 and check that I can just slip a sheet of paper under the nozzle.
Print test squares as generated from above mentioned site.
Front left is good. all others are printing too high

Marlin firmware is designed to do all of this bed leveling stuff (i.e. generating the mesh and using it) without any OctoPrint plugins.

Run update mesh through bed visualiser in octopi

I believe this step is using the plugin and the assumption is that it is doing it correctly.

Can you manually do the G28 and the G29 V4 (with whatever else is needed) and verify that the mesh generated manually is the same as the mesh generated by the plugin?

BTW, you should heat the bed before you generate the mesh. I don't think the nozzle needs to be heated at this point.

Hey @b-morgan thanks for your reply.

The visualiser does pre-heat the bed so that's all taken care of but no I have not tried doing it manually and checking. Will give that a go and report back.

I have always figured that heading the nozzle before setting Z offset is a good idea to allow for any temperature variation although honestly I have no idea how much variation that creates or if it's anywhere near being worth worrying about.

Does anyone know of a way to work out what sort of bed levelling I enabled when I built my firmware? I don't have the source I used any more and I'm wondering if maybe I enabled the wrong type.

I agree. We are discussing two processes, 1) Leveling the bed and 2) Setting the Z-offset.
The bed should be heated for 1 and 2, the nozzle should be heated for 2.

What does M420 V report?

On my LulzBot TAZ 6 I get:

Send: M420 V
Recv: Bilinear Leveling Grid:
Recv:       0      1
Recv:  0 +2.376 +2.214
Recv:  1 +2.321 +2.227
Recv: 
Recv: Subdivided with CATMULL ROM Leveling Grid:
Recv:         0        1        2        3
Recv:  0 +2.37550 +2.32179 +2.26808 +2.21438
Recv:  1 +2.35721 +2.31106 +2.26490 +2.21875
Recv:  2 +2.33892 +2.30032 +2.26172 +2.22312
Recv:  3 +2.32063 +2.28958 +2.25854 +2.22750
Recv: 
Recv: echo:Bed Leveling OFF
Recv: echo:Fade Height OFF
Recv: ok P15 B3

Similar, I clearly have it set to 12x12 (which does take bloody ages to probe...) and I don't see a "subdivited" bit

Send: M420 V
Recv: Bilinear Leveling Grid:
Recv:       0      1      2      3      4      5      6      7      8      9     10     11
Recv:  0 +0.055 +0.031 +0.042 +0.047 +0.042 +0.016 +0.017 +0.057 +0.136 +0.165 +0.211 +0.225
Recv:  1 +0.050 +0.021 +0.037 +0.015 +0.002 -0.013 -0.010 +0.011 +0.097 +0.110 +0.149 +0.165
Recv:  2 +0.035 +0.007 +0.015 +0.016 +0.015 -0.008 -0.010 +0.005 +0.097 +0.059 +0.142 +0.110
Recv:  3 +0.021 +0.027 +0.016 +0.009 -0.015 -0.026 -0.048 -0.020 +0.040 +0.020 +0.082 +0.084
Recv:  4 +0.056 +0.037 +0.016 +0.010 +0.004 -0.024 -0.039 -0.011 +0.016 +0.016 +0.047 +0.032
Recv:  5 +0.086 +0.062 +0.044 +0.022 -0.008 -0.031 -0.039 -0.070 +0.002 -0.024 -0.020 -0.021
Recv:  6 +0.087 +0.052 +0.046 +0.015 +0.007 -0.034 -0.062 -0.058 -0.020 -0.061 -0.035 -0.058
Recv:  7 +0.085 +0.060 +0.037 -0.001 -0.033 -0.073 -0.106 -0.118 -0.079 -0.111 -0.090 -0.116
Recv:  8 +0.109 +0.056 +0.040 +0.006 -0.020 -0.071 -0.106 -0.091 -0.079 -0.099 -0.090 -0.113
Recv:  9 +0.101 +0.059 +0.039 +0.001 -0.056 -0.099 -0.101 -0.145 -0.099 -0.129 -0.088 -0.128
Recv: 10 +0.131 +0.084 +0.045 +0.009 -0.034 -0.075 -0.104 -0.129 -0.101 -0.096 -0.062 -0.111
Recv: 11 +0.149 +0.091 +0.054 +0.010 -0.034 -0.084 -0.106 -0.138 -0.065 -0.110 -0.073 -0.061
Recv: 
Recv: echo:Bed Leveling OFF
Recv: echo:Fade Height OFF
Recv: ok

That does appear to be slightly different results from the plugin though.

I might repeat the G29 again and see if I get consistent results. Maybe my frame is just totally shot?

If I have done;
G28
M190 S60
G29
M420 V

Should it not show "Bed Leveling ON" rather than off?

I've just cleared the mesh (G29 J) and am running again to see if I get the same results.

Check the Notes here...you definitely have bilinear leveling enabled.

You could change M420 V to M420 S1 V I think and get both in one go.

You can also change the G29 to G29 V4 if you want even more information.

I've run 3 sets of "home, heat to 60, make mesh, get mesh" and I get something like 0.07 variation between the same point on different runs. Does that sound like a reasonable figure?