MENU

Fun & Interesting

Tutorial on Encoders in Arduino (Hall effect encoder with DC motor)

Aleksandar Haber PhD 4,542 lượt xem 6 months ago
Video Not Working? Fix It Now

#arduino #encoders #halleffect #stm32 #aleksandarhaber #robotics #engineering #robotics
It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way:
- Buy me a Coffee: https://www.buymeacoffee.com/AleksandarHaber
- PayPal: https://www.paypal.me/AleksandarHaber
- Patreon: https://www.patreon.com/user?u=32080176&fan_landing=true
- You Can also press the Thanks YouTube Dollar button

In this Arduino, robotics, and mechatronics tutorial, we explain how to interface and use Hall effect quadrature encoders in Arduino and STM32 microcontrollers. We explain how to read pulses from two encoder phases, and how to write a C or C++ Arduino code that transforms these pulse readings into angle change that is detected by Arduino. We explain two approaches for converting encoder phase readings. The first approach measures the pulses on the rising edge. The second approach measures the pulses on both rising and falling edges. We are using the GA37-520 motor with AB-phase incremental Hall encoder.

Comment