While a line-following robot may not be the newest job concept in the book, this from [Edison Science] is a clean develop utilizing contemporary elements as well as gets a great speed thanks to PID manage comments instead of the much more conventional bang-bang manage you see in low-end robots.
Of course, PIDs requirement tuning as well as that seems to be the weak link — you’ll have to experiment with the settings. The sensors likewise need calibration, however we bet both of those problems might be fixed quite easily.
If the concept of PID is new to you, the acronym means proportional, integral, as well as derivative. To identify the output at any type of provided time, you look at where you are compared to where you want to be (the present value vs the set point). then you compute a proportional error. So, for a temperature, for example, if you want to be at 30 degrees as well as you are at 20 degrees, that a proportional error of 10 degrees. You likewise want to look at exactly how much modification has been building up over time as well as the rate of modification of the error.
We’ve had some outstanding PID tutorials in the past if you want to checked out some math. Thie easiest line followers don’t requirement PIDs or even CPUs.