Skip to content
Free delivery, every order. Want a bulk deal or can't find what you need? Email support@pmdway.com now!
Free delivery, every order. Want a bulk deal or can't find what you need? Email support@pmdway.com now!
Time to put this DIY absolute position encoder to work as a clock

Time to put this DIY absolute position encoder to work as a clock

from arduino.cc

Being able to derive the absolute position of an object is vital in countless applications, primarily for anything that uses a motor. Instructables user holybaf had the idea to build their own rotary encoder, which has 60 degrees of resolution and utilizes a CD to act as a precise clock.



To accomplish this, they first laid down a single circular track featuring patterns of light and dark areas that each correspond to a single value. By reading these areas with a set of six infrared emitters/detectors and comparing their current reading to the previous one, an absolute position can be determined.

A custom PCB was also designed for this project, which contains the aforementioned IR detectors along with a PCF8574 I/O expander and a pair of headers for connecting an Arduino Uno and an OLED screen for viewing relevant information such as the current time. After attaching a motor and loading some code, the clock was finally complete.

You can see this device in action below or you can check out the build log in more detail here on Instructables.

Finally - to keep up to date with interesting news, offers and new products - interact with us on facebookinstagram, and twitter.

Previous article TV for Cats with Raspberry Pi

Leave a comment

Comments must be approved before appearing

* Required fields