How to control a DC motor with an encoder

Find the tutorial on our website: GitHub Code: If your platform does not have access to “atomic.h“ (and so you get an error message), you can use the alternative version of the code that has been uploaded to the repository. It is labeled “_NoAtomic“. An encoder makes it possible to control the position of a DC motor. In this video, I illustrate how an encoder works, and then use a PID control algorithm to control the motor position. All of the steps are included so that you will be easily able to make the system yourself. Parts used in this video: 1. DC Motor - 19:1 Metal Gearmotor 37Dx68L mm 12V with 64 CPR Encoder: 2. Motor Driver - TB67H420FTG Dual/Single Motor Driver Carrier: 3. Microcontroller - Arduino Uno: (okay actu
Back to Top