How to use encoder as jog wheel

51 views
Skip to first unread message

Martin Berriman

unread,
Mar 26, 2020, 4:47:33 PM3/26/20
to Machinekit
Hi all, years ago I use LinuxCNC to control my Denford Triac mill.  I used to have it running on a PC and I had a quadrature rotary encoder connected to one of the parallel ports so that I had a jog wheel.
It worked really well but some years ago (perhaps 5 years) I dumped the PC and replaced it with a BBB running MachineKit, it was even better however I never got the jog wheel working again.

Now, with some time on my hands, I'm thinking it would be good to try and get the jogwheel working again but where to start...

I've had a read of the encoder section (http://www.machinekit.io/docs/hal/rtcomps/#sec:Encoder) but it's not obvious to me which pins to use for phaseA and phaseB.  Nor is it obvious how to configure it in my hal and ini files.

Can anyone point me towards more info so I can get this going?

Many thanks
Martin

Martin Berriman

unread,
Mar 28, 2020, 4:59:31 PM3/28/20
to Machinekit
Sorted it! - I wasn't sure whether I needed the PRU for the encoder but it appear not.
I managed to configure some pins on P8 to accept the phase signals and route them to the encoder rt module.
All working well :-)
Reply all
Reply to author
Forward
0 new messages