586,042 active members*
3,804 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > Idea - DIY Linear Magnetic Encoder
Page 2 of 2 12
Results 21 to 24 of 24
  1. #21
    Join Date
    May 2008
    Posts
    3
    Hi

    I am busy with a prototype of a DIY Linear Magnetic Encoder - Ingredients:
    1- Fridge magnet - Yes, or those sheets that stick on the side of a car with marketing material.
    2- Arduino (or Teensy) AVR micro-controller running at 16MHz.
    3- 2x Linear Hall sensors.
    4- Breadboard and some LED's

    Principle:
    The 2 hall sensors slide past the magnets strips on the back of fridge magnet. Those magnets are arranged (by chance?) North-South-North-South, spaced 4mm between North's.
    If the sensors are placed 1mm (1/4 of 4mm, or multiples thereof) apart, then the analog output is 2 very nice waves (90 degrees out of phase), just as noted by RomanLini.
    Using atan2(wave1, wave2), you get an angle between -PI and PI, which is a % of travel from 0.0mm to 4.0mm. So you need to keep track of movement and where 4.0mm wraps back to 0.00mm

    Results so far:
    0.014 mm accuracy!!

    Challenges:
    How accurate are the fridge magnets over a long length?
    Speed, commercial readers reach 1m/sec. I am at 1cm/sec !!
    Results were obtained with sensors touching the magnets, on 2mm gap there is virtually no result.

    Will post pics and source code soon.

  2. #22
    Join Date
    Sep 2014
    Posts
    5

    Re: Idea - DIY Linear Magnetic Encoder


  3. #23
    Join Date
    Feb 2005
    Posts
    122

    Re: Idea - DIY Linear Magnetic Encoder

    @henriv - have you progressed on your project ? I think that would be very useful to have a cheap solution for a linear encoder...

  4. #24
    Join Date
    Feb 2019
    Posts
    1

    Re: Idea - DIY Linear Magnetic Encoder

    henriv,

    I am also interested in what came to be of this project. Would you be able to share your source code?

Page 2 of 2 12

Similar Threads

  1. HOW TO CHANGE ACTIVE ENCODER FROM LINEAR SCALE TO MOTOR ENCODER IN SIEMENS 840D.
    By sandeepmb123 in forum SIEMENS -> Sinumerik 802D/808D/810D/828D/840D
    Replies: 0
    Last Post: 01-02-2014, 08:05 PM
  2. Replies: 5
    Last Post: 05-06-2013, 08:50 AM
  3. Cheap magnetic DRO as linear encoder?
    By SwampDonkey in forum Dynomotion/Kflop/Kanalog
    Replies: 3
    Last Post: 03-26-2013, 02:23 PM
  4. Magnetic Linear Encoder Reading Head - with 5 Micron
    By vizion in forum RC Robotics and Autonomous Robots
    Replies: 2
    Last Post: 12-22-2011, 07:25 PM
  5. Any one have experiance with linear magnetic encoders?
    By DennisCNC in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 08-05-2008, 02:43 AM

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
  •