COVID-19 impact: We are still operating and shipping all orders! We are operating with a reduced staff, so for critical requirements, including fighting COVID-19, please contact us so we can identify priorities. Click here for more info.

Video from content creator Curio Res: How to control a DC motor with encoder

Posted by Emily on 30 April 2021


Content creator Curio Res recently released a tutorial and accompanying video explaining how to control a DC motor with an encoder. The video and post cover how to set up a motor with encoder, a controller, and a motor driver and how to read encoder signals. They also address common questions we get from customers who want to add closed-loop feedback to their projects such as how to implement a PID algorithm to control the position of the motor shaft based on the encoder readings. The content is well explained, and the diagrams and motion graphics make everything easy to follow and understand.

The tutorial uses one of our 37D Metal Gearmotors and our TB67H420FTG Motor Driver Carrier. The tutorial also uses an Arduino Uno, but one of our A-Star 32U4 Primes could be used instead.

If you like Curio Res’s content, be sure to subscribe to their YouTube channel so you don’t miss their latest videos. We look forward to seeing more great tutorials from Curio Res!

2 comments

They didn't mark their pos variable as volatile. ALWAYS mark all varables used in an ISR as volatile.
That's an important point, thanks for pointing it out!

Post a comment

Using your Pololu account allows you to customize your avatar and manage your comments; you can also post anonymously.

Related Products

19:1 Metal Gearmotor 37Dx68L mm 12V with 64 CPR Encoder (Helical Pinion)
TB67H420FTG Dual/Single Motor Driver Carrier
A-Star 32U4 Prime SV

Related Categories

A-Star Programmable Controllers
Pololu Metal Gearmotors
12V 37D Metal Gearmotors
Brushed DC Motor Drivers
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors