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.
Relevant components
Here is a gallery of the most relevant components I used for this demonstration. The pictures have direct affiliate links.