- Joined
- Dec 18, 2019
- Messages
- 7,501
Plotting the discretized position vs the analog, one can see the staircase. For the highest TPI's, the staircase lags the analog curve. If one wanted to, one could individually adjust the offset of the staircase by preloading the accumulator for every thread pitch selected. This would reduce the phase lag of the thread, and the peak phase error by centering the quantization error around zero. It only seems worthwhile for the smallest pitches. The staircase error really is incredibly small for most threads. For now, I will leave things the way they are, and only adjust them if they prove to be troublesome in reality. No point of fixing something, if it isn't known to be broken! The errors are small, but unique to each pitch.
This morning worked on the menuing a bit more. Put on my noise cancelling headphones and went to work. I find the graphical display more difficult than implementing the carriage position control. Now have two menus to choose from when in threading mode. Touching the Imp/Metric button toggles between Imperial and Metric states, and the corresponding allowable threads are displayed. Next step will be to implement touch sense for this menu, allowing me to touch the thread text and the corresponding parameters will be displayed in the small area at the bottom left. If the save button is touched, the values will be loaded, and the state of the machine will be advanced to "initialized". Then the menu will go back to the main page, with the thread pitch or TPI updated. "Start" will then enable threading. Once enabled, the stepper will advance (or recede), when the spindle moves, to achieve the selected thread.
The individual pitches (or TPI's) are far enough apart so one can select them with one's finger tip without too much trouble. A stylus works as well. This puts all the info at your fingertips without having to scroll through stuff.
Slowly getting a little more done on this project. Getting to the point of looking at stepper motors again. A NEMA-24 4Nm motor seems to be about the right size and capability. Will have to seriously look at how the heck to integrate this into my system, ie. pulleys, ratios and installation related things. Getting a bit more exciting now.
This morning worked on the menuing a bit more. Put on my noise cancelling headphones and went to work. I find the graphical display more difficult than implementing the carriage position control. Now have two menus to choose from when in threading mode. Touching the Imp/Metric button toggles between Imperial and Metric states, and the corresponding allowable threads are displayed. Next step will be to implement touch sense for this menu, allowing me to touch the thread text and the corresponding parameters will be displayed in the small area at the bottom left. If the save button is touched, the values will be loaded, and the state of the machine will be advanced to "initialized". Then the menu will go back to the main page, with the thread pitch or TPI updated. "Start" will then enable threading. Once enabled, the stepper will advance (or recede), when the spindle moves, to achieve the selected thread.
The individual pitches (or TPI's) are far enough apart so one can select them with one's finger tip without too much trouble. A stylus works as well. This puts all the info at your fingertips without having to scroll through stuff.
Slowly getting a little more done on this project. Getting to the point of looking at stepper motors again. A NEMA-24 4Nm motor seems to be about the right size and capability. Will have to seriously look at how the heck to integrate this into my system, ie. pulleys, ratios and installation related things. Getting a bit more exciting now.