grblHAL / core

grblHAL core code and master Wiki
Other
320 stars 84 forks source link

Can grblhal support encoder handwheels natively? Is it difficult to implement? #176

Closed hanke-cnc closed 2 years ago

hanke-cnc commented 2 years ago

I have used another stm32f1 chip to read the encoder handwheel through the plug-in and then send the serial port commands to grblhal. It works well. I don't know if it is possible to let grblhal handle the encoder by itself. How difficult is it to implement IMG_20220821_093749 ?

terjeio commented 2 years ago

There is a plugin for that - jogging is work in progresss and I would like input on that part.

Currently only the iMXRT1062 driver has the driver level interface implemented, how easy it will be to implement the interface for other MCUs depends on whether a quadrature encoder peripheral is present and can be used.

In the iMXRT1062 driver.c search for QEI_ENABLE to find the code blocks - and note that this code does not use a quadrature encoder peripheral for input,