Pololu Blog »
Video from content creator Curio Res: How to control a DC motor with encoder
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
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