Line Follower Robot
My first robot: a small car that follows a black line on the floor by itself.
- Robotics
- 2023
- Completed
Arduino Uno / IR sensors / L298N motor driver / DC gear motors / C/C++
- Built
- First year (2022–23)
- Controller
- Arduino Uno
- Sensing
- IR sensors
- Drive
- Two DC gear motors, L298N driver
The idea. Every robotics journey seems to start with a line follower, and mine did too. A small car, a black line on a white floor, and one goal: stay on the line without anyone touching it.
What I built. IR sensors under the front of the car tell dark from light. An Arduino Uno reads them and steers by speeding up or slowing down each of the two motors through an L298N motor driver.
The hard part. Getting it to follow a straight line was quick. Getting it round sharp curves without overshooting, wobbling or losing the line meant a lot of adjusting sensor positions and tweaking the code, one test lap at a time.
What I took from it. This was the project that turned taking things apart into building them. Watching it go round the track on its own for the first time is a big part of why I ended up in robotics.
Next project
Hexapod Robot for Search and Rescue →