Idea - DIY Linear Magnetic Encoder - Page 2


Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24

Thread: Idea - DIY Linear Magnetic Encoder

  1. #21
    Registered
    Join Date
    May 2008
    Location
    South Africa
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    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
    Registered
    Join Date
    Sep 2014
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Re: Idea - DIY Linear Magnetic Encoder



  3. #23
    Registered
    Join Date
    Feb 2005
    Location
    Romania
    Posts
    122
    Downloads
    0
    Uploads
    0

    Default 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
    Member Zem's Avatar
    Join Date
    Feb 2019
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default 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 FirstFirst 12

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Idea - DIY Linear Magnetic Encoder

Idea - DIY Linear Magnetic Encoder