- Joined
- Dec 18, 2019
- Messages
- 7,500
My fear of the chuck exploding! The Teensy is capable of keeping up with the spindle encoder interrupts.Sorry if you discussed this, but what is limiting your top speed? (Why do you need to dynamically change microstepping?)
Edit: am I correct that it's to get increased torque from the motor by reducing microstepping where possible? If you aren't close to the top speed, you can use mechanical reduction also?
The reason for changing microstepping is only to accommodate the biggest pitches, or the lowest TPI threads. The Bresenham algorithm requires the ratio to be less than 1/2, I believe. To do that, pitches like 5mm or 4 TPI need to have ustep = 4. This is because ustep is in the numerator. I could change the lathe gear box I suppose, but I have no feedback to the Teensy that the gearbox was indeed changed. As it is, I can handle all the pitches and threads by simply leaving my QCGB at 1:1 ratio, except for the threads noted.