You should just put an encoder on your lathe spindle and setup your
configuration as usual for a lathe.  The BBB has several hardware
encoder inputs, at least one of which is readily usable given the
typical pinout mappings.  It is also possible to use the PRU for
"soft" encoder inputs if the frequency isn't too high.

On 12/3/2018 2:02 PM, Gediminas Dirma wrote:
> My final goal would be to have threading with lathe. So i am trying to find 
> some way how this could be possible done. Because i didnt find much 
> information about encoders or examples on beaglebone and machinekit how to 
> use them.
> 
> 2018 m. gruodis 3 d., pirmadienis 15:53:44 UTC+2, Bas de Bruijn rašė:
>>
>>
>>
>>> On 3 Dec 2018, at 13:44, Gediminas Dirma <[email protected] 
>> <javascript:>> wrote: 
>>>
>>> Hello 
>>>
>>> Has anyone tried setting up stepper motor as spindle with machinekit. 
>> Maybe you have some example configs or examples. 
>>>
>>> Thanks for help. 
>>
>> My guess is that a stepper motor is not suitable for a spindle. Mostly 
>> because speed is limited wrt other motor types. 
>>
>> Apart from that, if you set the stepper up in velocity mode instead of 
>> position mode, then that should work. 
>>
>> There are beaglebone configs in the repo which show how to set stepgens in 
>> velocity mode. 
>>
> 


-- 
Charles Steinkuehler
[email protected]

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to