Adventures in Science: How to Use Rotary Encoders

Описание к видео Adventures in Science: How to Use Rotary Encoders

Rotary encoders are useful tools for measuring rotation on a shaft. They come in many different forms, including optical, mechanical, and magnetic. In this video, we show you how they work and how to use them on DC motors to ensure that a robot drives in a straight line for a set distance.

Optical encoder demo: https://www.hackster.io/ShawnHymel/qu...
Code for making Fred drive in a straight line: https://gist.github.com/ShawnHymel/1d...

Комментарии

Информация по комментариям в разработке