586,138 active members*
3,526 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2013
    Posts
    15

    $20 shaft encoder

    I just completed version 2 of my $20 shaft encoder project on my Sherline lathe. It has index and phase A. Phase A has 16 divisions because I am using Linux CNC to track the pulses in software and that limits the possible resolution.
    Attachment 254740
    Attachment 254742

  2. #2
    Join Date
    Jun 2004
    Posts
    6618

    Re: $20 shaft encoder

    Do you think it will regulate the speed well enough for threading? I imagine that may be why you installed it to start with.
    I have been considering going with a servo spindle on my lathe. It now has a DC motor controlled by Mach 3, but not nearly well enough for threading.
    I do have an encoder that I bought several years ago and never installed. I may see how that works out first.
    Lee

  3. #3
    Join Date
    Aug 2013
    Posts
    15

    Re: $20 shaft encoder

    From what I have read a real encoder has too much resolution for software pulse tracking. The computer can't keep up with it and loses pulses. I have an encoder on the bench as well, but set out specifically to build one with low enough resolution for LinuxCNC to track without hardware support. A real encoder on a board with hardware support is clearly superior to this solution. That said, I thought that this had to be a very inexpensive problem to solve. I do hope that it provides enough resolution to do threading. I have read of several people who claim to do threading with just an index pulse. This solution has many times that resolution.

    The next step will be harder for me but probably little challenge for most of the folks on this forum. I built the encoder out of parts I had laying around. In fact, I looked at a sensor and thought "I should use that to encode my lathe spindle". Now it has passed all of the electrical tests and as you can see from the original posting LinuxCNC feels the tiny heartbeat of the index and phase A inputs. It is time to test it in the physical world. I have a lot less experience with that. I got my lathe and mill to fulfill my electronics hobby. I have never threaded on the lathe before. Right now I am looking for software to generate the g-code so that I can test the threading abilities of the lathe. Since the whole idea of the project was that this should have an inexpensive solution, I am looking for cheap or inexpensive software for simple threading. No doubt you Gurus would just hand code it. I don't have those skills, but I can make some interesting circuits.

    BTW this unit is not Sherline specific. It should work with almost any lathe.

  4. #4
    Join Date
    Dec 2003
    Posts
    24221

    Re: $20 shaft encoder

    Quote Originally Posted by systemslave View Post
    From what I have read a real encoder has too much resolution for software pulse tracking. The computer can't keep up with it and loses pulses. I have an encoder on the bench as well, but set out specifically to build one with low enough resolution for LinuxCNC to track without hardware support. A real encoder on a board with hardware support is clearly superior to this solution. .
    Pretty much true for Mach, 1 pulse/rev is about all it can keep up with, with a advanced system like a motion card (Galil etc) or industrial CNC, the Z axis servo is geared to the Spindle encoder, the spindle is not usually as precisely controlled, so by gearing the Z off of it, what ever the spindle is doing, the Z tracks precisely.
    I believe Kflop can do it also?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  5. #5
    Join Date
    Aug 2013
    Posts
    15

    Re: $20 shaft encoder

    Hey, look! I put threads on a rod! I still don't know what I am doing, but I'm having fun.
    Attachment 254842

Similar Threads

  1. shaft encoder on sherline lathe under $20
    By systemslave in forum Mechanical Calculations/Engineering Design
    Replies: 0
    Last Post: 10-20-2014, 04:28 AM
  2. Rotary encoders for use as linear encoder (not shaft mounted)
    By TechGuy5002 in forum DIY CNC Router Table Machines
    Replies: 8
    Last Post: 01-30-2012, 03:24 PM
  3. Hollow Shaft Servo Encoder Motor
    By sunworksco in forum Linear and Rotary Motion
    Replies: 0
    Last Post: 11-11-2009, 07:51 AM
  4. DC Servo Motor with Optical Shaft Encoder
    By nyamux_nkl in forum Servo Motors / Drives
    Replies: 0
    Last Post: 01-03-2009, 05:37 AM
  5. Looking for a Coupling for 1/2" motor shaft to KR33 6mm shaft
    By DonW in forum DIY CNC Router Table Machines
    Replies: 7
    Last Post: 03-17-2008, 09:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •