Although there are numerous types of encoders, there are three broad categories: linear, rotary, position and optical encoder types. Often, these categories combine to create further variants, such as optical linear encoders or optical shaft encoders.