Hello guys, just a little doubt,

Hello guys, just a little doubt, how should I wire the auto-level to work with GRBL, can I use the same limit switch in the Z axis I already have in the top?

You might find this item informative: https://github.com/synthetos/TinyG/wiki/ChiliPeppr-PCB-Auto-Level. It is for tinyG setup, I am not familiar with grbl so can’t comment.
But you will get the general idea

I came from that URL actually, I just have the doubt if the same Z-homing switch is the same used to test the leveling. Greetings

I am not a probe user, so this is my in-experienced info: Z homing, if installed, is the top of the Z axis and not used for probing. The typical probe switch is a conductive surface ( a plate or a circuit board surface) and a lead clipped to the cutting tool. It is, by nature, a NO switch, but tinyG probing has been reworked to detect and operate on a change (from O to C) rather than a level (O or C). I have no idea howGRBL might work in this area. When Jarrett Luft stops by, he for sure will have the answers you need.

@Jarret_Luft I admire your work dude :wink: I think I have the 0.8c let me get home and upgrade my grbl. I let you know my progress in a couple of hours, thanx a ton!

Okay, I upgraded to 0.9i, connected a wire from pin A5 to the board and GND to the endmill, it looks it works, the test probe works and stops exactly when it touches the board, but when I try to run the whole auto-level it looks the GRBL firmware has a bug, it runs the first test and then it just stops there, no more movement instructions can be executed or the chilipeppr plugin has a bug, I already change twice from browser.

Greetings!

Further investigation on the browser tells me maybe the bug is inside the web application, the browser console gave me this output when executing the auto level.

[Log] serial port widget - onQueuedText
[Log] serial port widget - onQueuedText
[Log] gcode widget - resetMetaDataQueueWriteComplete
[Log] serial port widget - onQueuedText
[Error] TypeError: undefined is not an object (evaluating ‘msg_array[10].substring’)
grblResponse (undefined, line 587)
(función anónima)
publish (amplify.js, line 35)
publish (app.js, line 159)
onWsMessage
(función anónima)
publish (amplify.js, line 35)
publish (app.js, line 159)
publishMsg
onmessage

Greetings!

I would like to debug the issue, any hints to do it?

I went to my department and tried once again everything, I reconfigured the homing cycles and reset all, it is working nicely now, I managed to see the whole PCB and its differences =D