In this video, you'll learn how to connect and write code to control several DC motors with encoders using the PID algorithm.
Code (in MultipleEncoders/):
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".
Parts:
Controller: www.pololu.com/product/3145
Motor driver: www.pololu.com/product/1451
12V motor with encoder: www.pololu.com/product/4751
Sponsored by Pololu: Pololu sent a few promotional parts to help make this video!
22 май 2021