Cyber Week Sale – click for coupon codes!

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!

4 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!
Will the TB67H420FTG Dual/Single Motor Driver Carrier work with connecting two 37Dx68L mm 12V with 64 CPR Encoder Motors with the Audrino Uno?
Hello, Gopi.

The TB67H420FTG is underpowered for driving two of our 12V 37D gearmotors. I would recommend one of these drivers/controllers instead:

- Dual TB9051FTG Motor Driver Shield for Arduino
- Dual VNH5019 Motor Driver Shield for Arduino
- Pololu Dual G2 High-Power Motor Driver 18v18 Shield for Arduino
- Motoron M2S18v18 Dual High-Power Motor Controller Shield Kit for Arduino

Though you should generally be aiming to limit the load on the motor to around 25% or less of its stall torque, a conservative guideline for selecting motor drivers/controllers is to choose one that can readily handle the stall current of your motor.

- Patrick

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