Тёмный

STM32 Tutorial 8: Encoder and Angle Measurements in C - Interface Encoder Using Timers 

Aleksandar Haber PhD
Подписаться 22 тыс.
Просмотров 3,9 тыс.
50% 1

#stm32 #cubeIDE #microcontroller #electricalengineering #mechanicalengineering #controltheory #mechatronics #robotics #arduino #rasbpberrypi #aleksandarhaber #freetutorials #freeengineeringcourses #freeengineering #embedded_systems #industrialrobotics #c++ #cprogramming #pythonprogramming #nucleostm #nucleo #microcontroller #uart #computerengineering #computerscience #computerengineer #interrupts #cprogramming
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: www.buymeacoff...
PayPal: www.paypal.me/...
Patreon: www.patreon.co...
You Can also press the Thanks RU-vid Dollar button
In this STM32 microcontroller tutorial, we explain how to interface an encoder with an STM32 microcontroller and how to write a C code that will process encoder pulses and calculate the angle of rotation of the encoder shaft. In this tutorial, we are using a relative encoder with the product number LPD3806-600BM. We use timers to count the encoder pulses, and we explain how to write a C code for calculating the angle of rotation. We use a serial communication interface to display the encoder readings on the computer screen. We provide a detailed explanation of the wiring diagram of the encoder and we explain how to attach pull-up resistors to the encoder. We also use an oscilloscope to visualize the encoder readings.

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@aleksandarhaber
@aleksandarhaber 7 месяцев назад
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: www.buymeacoffee.com/AleksandarHaber - PayPal: www.paypal.me/AleksandarHaber - Patreon: www.patreon.com/user?u=32080176&fan_landing=true - You Can also press the Thanks RU-vid Dollar button
@Mike-re7ci
@Mike-re7ci 4 месяца назад
Aleksandar = God
@aleksandarhaber
@aleksandarhaber 4 месяца назад
Thank you!
@ramonmachado592
@ramonmachado592 6 месяцев назад
Hi, Aleksander, thanks for this awesome video! Have you ever used some linear algebra library, such as the Eigen C++, embedded on a STM32? I think that this would be a really helpful video! :)
@aleksandarhaber
@aleksandarhaber 6 месяцев назад
In the future.
@nguyenbahuy393
@nguyenbahuy393 6 месяцев назад
@@aleksandarhaber , Aleksandar, your channel is amazing! Please consider making a video about implementing modern control methods, such as adaptive control or MPC, using C/C++ on STM32. Thank a lot!
@anujpatel6438
@anujpatel6438 5 месяцев назад
Really helpful! Thanks
@aleksandarhaber
@aleksandarhaber 5 месяцев назад
glad it helps
Далее
Using I2C for any device on STM32 with HAL | VIDEO 26
37:51
Signals. I spent 2 years to understand this part.
21:24
Become a shell wizard in ~12 mins
12:25
Просмотров 251 тыс.
When you Accidentally Compromise every CPU on Earth
15:59
STM32 motor control: PID theory and implementation
10:52