Рет қаралды 215,269
GitHub Code (under /SpeedControl):
github.com/curiores/ArduinoTu...
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".
Learn how to control the speed of a DC motor with an encoder using a PID controller. In this video, I walk you through several important steps in this process:
0. Hardware
1. Velocity measurements
2. Measurement filtering
3. PI control
4. Variations
For more information about how an encoder works, see our video "How to control a DC motor with an encoder."
• How to control a DC mo...
To learn about low-pass filtering, see our video "How to design and implement a digital low-pass filter on an Arduino."
• How to design and impl...
Parts used in this video:
1. DC Motor - 19:1 Metal Gearmotor 37Dx68L mm 12V with 64 CPR Encoder:
www.pololu.com/product/4751
2. Motor Driver - VNH5019 Motor Driver Carrier:
www.pololu.com/product/1451
3. Microcontroller - Arduino Uno:
store.arduino.cc/usa/arduino-...