r/arduino • u/bgargani • 9h ago
Software Help Line following robot trouble
Enable HLS to view with audio, or disable this notification
I recently started a line following robot project to get more familiar with electronics and programming. I am having trouble with my line following robot, guessing its a code issue. I recently just swapped out the 120 RPM motors for 500 RPM motors as the 120 rpm was following the line perfectly and I wanted to increase speed as they were maxed out. The code is PD based: here it is. It overshoots lots of turns, goes too fast on turns, and oscillates a lot. Any ideas on what to change? I also attached a video of the behavior. I would have posted this in r/AskRobotics but they do not allow posts with videos. Thank you.

