This is a tutorial for getting the position of a rotary encoder, which is an incremental type of encoder. There are generally two types of encoders: one is incremental and other is absolute. This code can be used for STM32L476 and STM32L0 microcontrollers. But if you have your own LCD library or code for LCD this will work for any STM32 microcontroller.
I am using an STM32L476 Nucleo board for this tutorial.
You can control motors like stepper or servo motors by writing a code according to movement of encoder.I have written such a code already. Please keep watching my tutorials for further!
Comments
Please log in or sign up to comment.