Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time
July 17, 2022 14:55
February 6, 2021 16:26
July 4, 2021 15:08
November 13, 2019 22:28
July 4, 2021 15:06
July 18, 2022 19:11

RotaryEncoder library

Arduino Library Checks

A library for the Arduino environment for using a rotary encoder as an input.

Here you can find an Arduino compatible library for using rotary encoders.

When I was searching a library for using a rotary encoder in my latest project and found a lot of information on this topic but none of the existing libraries did immediately match my expectations so I finally built my own.

It supports the type of rotary encoder that has a phase change on both input signals when rotating one notch.

The article on my web site explains the software mechanisms used in detail so you can understand the coding and might be able to adjust it to your needs if you like:

There are various aspects when writing a library for rotary encoders and you can also find a lot of the sources I analyzed at the bottom of the article.