How To: DIY quadrature encoder

This might be just the thing for a robotics project cancelled on account of - "expensive". Professor Mason created a quadrature encoder by fitting a motor with 2 inexpensive hall-effect sensors and a small magnet -

In this application, two sensors are attached 90 degrees out of phase around the motor. A small permanent magnet is attached to the motor shaft. Each of the sensors is fed to an ADC on a picaxe 08M.
[...]
As per standard quadrature encoders, the leading pulse tells us the direction of the rotation while the number of pulses tells us the distance rotated. For example, here is a pulse train for the encoder rotating the opposite way.
If you're not familiar with rotary encoders building one is (of course) a fantastic way to learn - encoders or 'angle transducers' come in handy for determining the position of a control knob or robotic appendage, among others things. [via Ladyada's Ranting]


Recent Entries

Comments

Oldest comments listed first.

Posted by: Obvious on February 24, 2009 at 9:34 PM

This is an old technique for equipment monitoring, and brushless fans.

You forget to account for those sensors' metal legs slowly magnetizing over time (in addition to the drive).

Also note this change in the analog signal is nonlinear with respect to position... so a comparator will not fix your problem.

Although it will not be reliable for angles etc. it should work for calculating direction, rotations, and velocity.

You may disagree and think I am wrong... for awhile...
=P

If you cite the design source then perhaps someone will tell you how to fix it so it will last.

Spoiler... add another magnet to the other side of the shaft with an opposing poll facing outwards.


Posted by: Obvious on February 24, 2009 at 9:36 PM

This is an old technique for equipment monitoring, and brushless fans.

You forget to account for those sensors' metal legs slowly magnetizing over time (in addition to the drive).

Also note this change in the analog signal is nonlinear with respect to position... so a comparator will not fix your problem.

Although it will not be reliable for angles etc. it should work for calculating direction, rotations, and velocity.

You may disagree and think I am wrong... for awhile...
=P

If you cite the design source then perhaps someone will tell you how to fix it so it will last.

Spoiler... add another magnet to the other side of the shaft with an opposing poll facing outwards.


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television




Check out more videos from MAKE.

Maker SHED

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter



    MAKE Archives

    Make: Money

    Make: Science Room
    Subscribe to MAKE Magazine!

    Make: Online editors and authors!

    Gareth BranwynGareth Branwyn
    Editor-in-Chief


    Phillip TorronePhillip Torrone
    Senior Editor
    | Web | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter


    John BaichtalJohn Baichtal
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Current Podcast

    itunesdl.gif Behind the Scenes at MAKE and CRAFT In January, many of the remote MAKE/CRAFT team members (myself included) convened at the Maker Media headquarters at O'Reilly Media in Sebastopol, California. Take a look behind the scenes of your favorite DIY publications as Goli Mohammadi gives us... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    Sign up for the Make: Newsletter

    Our Make: Newsletter covers news from maker Media, has original columns, Shed deals, and more! You can also read the archives of past issues.


     



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en EspaƱol MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog