Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spindle encoder #83

Open
arlimbad222 opened this issue Oct 1, 2023 · 3 comments
Open

Spindle encoder #83

arlimbad222 opened this issue Oct 1, 2023 · 3 comments

Comments

@arlimbad222
Copy link

I have spare input in esp32 board. can I use lathe mode with esp32 if yes then kindly inform me how to set gpio pin for spindle encoder.

I am using 1.5 kw servo as a spindle which can do both operation speed and position ,0 to 10v analog for speed& pulse direction for position.

Currently I am planning to make desktop cnc turn mill machine with grbl hal.

@terjeio
Copy link
Contributor

terjeio commented Oct 1, 2023

Spindle sync is not implemented for the ESP32 since the FPU cannot be used from an interrupt context. Someone has to write and test a fixed point PID implementation for it if it is ever to get spindle sync support.

I am using 1.5 kw servo as a spindle which can do both operation speed and position ,0 to 10v analog for speed& pulse direction for position.

FYI some grblHAL supported processors might get step/dir spindle support as a spin-off from the plasma THC code I am working on. iMXRT1062, STM32F4xx and STM32F7xx is first in line for that.

@arlimbad222
Copy link
Author

Okay can you suggest me best micro controller for my application I want to make cnc mill turn with threading capabilities I am not good at coding so i will use different micro controller.

@terjeio
Copy link
Contributor

terjeio commented Oct 2, 2023

Some iMXRT1062 or STM32F4xx boards/board maps support spindle encoder input/spindle sync as does the MSP432 driver.
The iMXRT1062 T41U5XBB board can be modified for spindle sync but I have not added it as an option to the Web Builder.
Note that pin selection for the encoder inputs are limited for the time beeing, only a few are available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants