Recently, I was working on a Line Following Robot and Hopefully I completed it too. But, I want to integrate PID in it's program sketch.
Can anyone help me out here about what is PID and what's the best way to learn it?
Recently, I was working on a Line Following Robot and Hopefully I completed it too. But, I want to integrate PID in it's program sketch.
Can anyone help me out here about what is PID and what's the best way to learn it?
If you google Arduino PID controller, you get a lot of hits, including many Videos.
This one looked particularly useful:
I made a post about using PID on Element14 here: https://www.element14.com/community/community/arduino/blog/2020/01/06/simple-arduino-dc-motor-control-with-encoder-part-2
At the bottom of the post are some useful links including a well documented Arduino PID library. Below my post in the comments is a link to work by Jan Cumps that describes his C code for PID based on the library.