Mks grbl-lpc laser autofocus

hello everyone I use the grbl version on a mks sbase with great success. The version used is by Claudio Prezzi. Attached is my connection diagram. The problem is that I would like to connect a sensor that makes me autofocus via the macro buttons of lightburn. I have already created the system to make the laser head go up and down. Do you know where I can connect an optical sensor?
the project to make it public once completed as I did for all the modification of the k40

1 Like

Try the y max pin

I have used it with a contact sensor using a router, not sure what modifications may be needed to work with an optical sensor.

2 Likes

it works thanks

1 Like