Тёмный

[Tutorial] How to Use Incremental Encoders with Arduino 

Philipp Thalhammer
Подписаться 401
Просмотров 3,1 тыс.
50% 1

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

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@ImDadidu
@ImDadidu 5 месяцев назад
Great explanation. Great animation.
@px64
@px64 5 месяцев назад
very nice video with great quality. Keep making more!. Wishing you the best.
@PhilippThalhammer
@PhilippThalhammer 5 месяцев назад
Thank you for the encouragement, This means a lot to me! I am planning to do more. Anything specific you would like to see?
@MitchDavis2
@MitchDavis2 5 месяцев назад
While this shows the fundamentals of how incremental encoders work, this implementation wouldn’t work so great in practice because you’re hogging CPU time to make sure you don’t miss a pulse. This would be an excellent time to use interrupts to trigger this logic, which would free up your CPU cycles to actually run the rest of your project.
@PhilippThalhammer
@PhilippThalhammer 5 месяцев назад
I also had a version that was using interrupts. However, that was causing issues with rest of the code I was using in my project 🤔 I settled for this approach, because its more „general purpose“, I think. Thank you for the comment though. I am also not all-knowing and would love to learn more about the topic :)
@lohikarhu734
@lohikarhu734 3 месяца назад
You might like to look at the STM32 encoder functions, which use 2 timers to do count and direction, with the ability to "chain" the encoder counter to another timer to get the pulse width of the transitions, to generate speed values...
@PhilippThalhammer
@PhilippThalhammer 3 месяца назад
Sounds interesting 🤔
@KirinDave
@KirinDave 5 месяцев назад
Wait, it doesn't have a Vin pin?
@PhilippThalhammer
@PhilippThalhammer 5 месяцев назад
This one does not. There are models with 4 Pins, that include a Vin I belive. When I started playing around with it, I assumed it would be working the same as a Potentiometer and connected 1 pin to ground, one to a GPIO and one to 3.3V. This resulted in me frying my microcontroller 😂
@lohikarhu734
@lohikarhu734 3 месяца назад
Einfach... Interesse encoding both step change to get direction.
@PhilippThalhammer
@PhilippThalhammer 3 месяца назад
What do you mean by this? 😅 I already get the direction 🤔
Далее
How to use rotary encoders
14:12
Просмотров 34 тыс.
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 17 млн
How to use Rotary Encoder with Arduino
14:44
Просмотров 43 тыс.
How to control a DC motor with an encoder
9:30
Просмотров 436 тыс.
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 574 тыс.
How to control multiple  DC motors with encoders
9:19