Line-following arduino robot

Arduino Robotics
Line-following arduino robot


Kyle writes in about this simple arduino and bulldozer kit robot that follows a projected line:

A regular line follower robot consists one to three photodiodes that reads brightness (usually with IR lights) on the floor. Based on the readings, we program it in a way that the center photodiode always stays on the black line on the floor. If either side of the photodiodes reads black, that means the robot is off the track, turns the robot the other direction so that the robot will always stay in the center.

4 thoughts on “Line-following arduino robot

  1. Buddy says:

    Last year at high school we had to make something similar with a LEGO MIND STORM kit (or whatever they are).
    We only used 1 light detector.
    It just ran like if the light detected was too light then it would start scanning by turning left 20 degrees then right 40 then left 60 right 80 etc so it would overlap what it scanned increasing as it goes so it wont accidentally go back on its own line.
    It was much faster and less fiddly than 3 sensors.

  2. ahmed fawad says:


Comments are closed.

Discuss this article with the rest of the community on our Discord server!

Becky Stern is a Content Creator at Autodesk/Instructables, and part time faculty at New York’s School of Visual Arts Products of Design grad program. Making and sharing are her two biggest passions, and she's created hundreds of free online DIY tutorials and videos, mostly about technology and its intersection with crafts. Find her @bekathwia on YouTube/Twitter/Instagram.

View more articles by Becky Stern


Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).