luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
735 stars 304 forks source link

[FEATURE REQUEST] Bed Mesh Leveling Visualizer #106

Open dmiart opened 4 years ago

dmiart commented 4 years ago

Is your feature request related to a problem? Please describe.

I am using an octoprint plugin called bed visualizer to display G29 T. Would be nice to have something like this in the esp3D.

Describe the solution you'd like

I basically want to be able to see this a graph like this on the web page of the ESP3D. Or at least a very basic graph that shows 4 corners and how much they differ from each other, so I know which knobs to turn to calibrate bed so it's physically as level as possible.

Additional context

image

luc-github commented 3 years ago

can you share a G29 T output ? I do not have probe for bed leveling

dmiart commented 3 years ago

can you share a G29 T output ? I do not have probe for bed leveling

https://codeshare.io/5NrYvd With proper formatting.

Bilinear Leveling Grid: 0 1 2 0 +0.172 +0.085 -0.058 1 +0.189 +0.037 -0.131 2 +0.095 -0.084 -0.183

luc-github commented 3 years ago

ok clear, thank you

luc-github commented 3 years ago

I think to do this representation need user to key bed size or we can also use an virtual square just described by external probed points

dmiart commented 3 years ago

Is there no way to get it during the runtime from the printer itself? What about moving the hotend x and y to the max possible and then getting that position ? I wonder how that plugin does it. I suspect it takes values from Octoprint profile.

luc-github commented 3 years ago

Sorry I do not understand Do you mean you Use G29 V2 ... to get it verbose and get updated report when running ? Does it work ?

dmiart commented 3 years ago

I am not entirely sure what you mean. That plugin does G29 T I think. For the bed size, I meant wouldn't it be possible to query the printer for that information or to force it to move as far to the right and forward as possible to determine the bed size?

luc-github commented 3 years ago

my answer was about :

Is there no way to get it during the runtime from the printer itself?

what do you mean ?

For bed size there is no GCODE I am aware of to get it (I think only prusa FW has something in debug mode) so I think user user need to key info

dmiart commented 3 years ago

my answer was about :

Is there no way to get it during the runtime from the printer itself?

what do you mean ?

For bed size there is no GCODE I am aware of to get it (I think only prusa FW has something in debug mode) so I think user user need to key info

Strange that there is no M or G code for it. On second though letting user enter it would probably not be too bad since it only has to be done once.

luc-github commented 3 years ago

Well there is one command in Marlin that may be used but it is not the bed size , it is endstop positions - which may differe from bed size and also need some define set in Marlin FW to work

M211
echo:Soft endstops: ON  Min:  X0.00 Y0.00 Z0.00   Max:  X220.00 Y240.00 Z130.00

Cannot find any other GCODE in Repetier / Smoothieware neither, if you can find it let me know

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

royfocker19 commented 3 years ago

Hi, this is the plugin, it uses a ja library, called plotly, https://plugins.octoprint.org/plugins/bedlevelvisualizer/ You would need to take care also of bed type (delta or Cartesian printer) At least in marlin there is information you can get with gcode related to Max print size and bed offsets, right?

luc-github commented 3 years ago

as mentioned above so far there is no print size but max position which even offset is defined may not give the correct bed size - max position is not always upper limit of bed size

Also I am definitly not Marlin focused - I prefer to find solution that benefit the most

Thank you for the link I will have a look

I do not have delta printer neither auto level probe system what the difference of bed between delta or Cartesian printer for such purpose ?

Note: I know plotly but its footprint is too big and cannot be used, gzip version of mininimal code is around 340K which is too big

ETE-Design commented 3 years ago

@luc-github This would be a great feature if possible :-)

luc-github commented 3 years ago

it is set as planned, so it is in TODO list but .. not on top items, also I do not have any bltouch / probe system, so it will need to wait until I get one to work on this,

luc-github commented 2 years ago

Add https://github.com/plotly/plotly.js/ as reference but size is too much (several MB) so need a smaller footprint solution