AS5600 magnetic encoder used as an overengineered potentiometer

In this video I show you how I built an overengineered potentiometer using the AS5600 magnetic encoder. Basically, I took a preassembled AS5600 board, and printed a plastic enclosure around it. I also printed a knob which holds the magnet and allows us to manually rotate it above the chip. The plastic enclosure accommodates the AS5600 circuit and a flanged bearing and the knob holds a tiny, d = 5 mm, h = 2 mm diametrically magnetized magnet. When everything is assembled, the gap between the magnet and the surface of the chip is about 1 mm which is sufficient according to the datasheet of the AS5600 chip.

The full source code and a thorough explanation of the AS5600 circuit can be found in one of my earlier videos.



3D-printable parts

Here is a gallery of the four parts I printed for this project. Each picture has a download link for the corresponding .stl file.

Bottom part. Optional, if you don’t mind the cables coming out from the bottom of the AS5600.

Center part. This holds the AS5600.

Top part. This holds the flanged bearing and the knob.

Knob. This holds the magnet. The knob is made for a bearing with 8 mm inner diameter.



Relevant components

Here is a gallery of the most relevant components I used for this demonstration. The pictures have direct affiliate links.

AS5600 magnetic encoder

1306 OLED display

Arduino Nano

Flanged bearing


Previous
Previous

TCD1304 Linear CCD - Custom PCB

Next
Next

TCD1304 Linear CCD - Driving the CCD