DIY Magnetic rotary encoder with AS5043

Sebastian would like to build a high-res 3D printer, and to this end he needs a precise way to ascertain the exact positions of various moving parts. Instead of buying an expensive stepper motors he decided to build a magnetic rotary sensor with which he could calculate the distance traveled. By placing a neodymium magnet on the sniping shaft above the AS5043 IC, he should be able to have a rotary encoder with 0.35° steps.

The setup for this sensor is rather simple, you need a few external components and a neodym magnet that is attached to your motors axis. Then you place the sensor under it.

Via the forum.

Join the Conversation


  1. Nice work… But if you don’t have time to “reinvent the wheel”, then Avago makes all sorts of encoders. Some of the Avago rotary encoders have thousands of counts per revolution (e.g., 0.1 deg. resolution). Look for the “Avago Motion Encoder Selection Guide” MCPDAV000199EN.pdf (document: AV00-0199EN 09/20/10).

    No, I don’t work for Avago – but they should pay me for this post ;-)

  2. I need to connect the AS5043 ic to an arduino and take some output. Can anyone tell me how to interface the AS5043 ic to an Arduino board. Thans in advance. You can also mail me at “”

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.