Hi,
  My machine config is on GitHub - 
https://github.com/russellgower/Lathe-Config.git 
<https://github.com/russellgower/Lathe-Config.git> as are the Eagle schematics 
for the cape I designed https://github.com/russellgower/cnc-cape.git 
<https://github.com/russellgower/cnc-cape.git> 

Please note that I set all this up a couple of years ago, so my memory is quite 
hazy.

Regards
  Russel



> On 4 Dec 2018, at 15:56, Gediminas Dirma <[email protected]> wrote:
> 
> Hello
> 
> I would also like to add threading to lathe, can you share your cofiguration 
> files and show your encoder so that i could buy a simlar one. Thanks for help
> 
> 2018-12-04, an 15:59, Russell Gower <[email protected]> rašė:
> Hi,
>   I’ve got a 1024 P/Rev quadrature encode on my lathe’s spindle, connected to 
> the PRU soft encoder. I did have to implement index handling in the pru 
> encoder driver on the BBB (I never got round to raising a PR but I will 
> endeavour todo so this evening) and I have used it to do rigid tapping as 
> well as normal threading.
> 
> Regards
>   Russell
> 
> > On 4 Dec 2018, at 12:29, Charles Steinkuehler <[email protected]> 
> > wrote:
> > 
> > A and Z would be enough for a lathe, and the count frequency will be
> > lower so it will be easier for the PRU to keep up.
> > 
> > You can use mode 2 (Up counter) with just the A signal, or mode 1
> > (Up/Down counter) if you have a spindle direction signal you can tie
> > to the B input.
> > 
> > I'm not sure these modes have gotten a lot of testing, and I'm not
> > sure the index logic will work on a lathe (several of the index
> > related HAL pins are not currently implemented).  Let me know if you
> > run into any problems or need some of the missing index logic implemented.
> > 
> > On 12/4/2018 3:19 AM, Gediminas Dirma wrote:
> >> so i can connect encoder to whatever direct PRU pin i like. And i only need
> >> z and a signal or do also need b?
> >> 
> >> 2018-12-04, an 01:43, Charles Steinkuehler <[email protected]> rašė:
> >> 
> >>> 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.
> >>> 
> >> 
> > 
> > 
> > -- 
> > 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.
> 
> -- 
> 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.

-- 
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