Skip to content

An Arduino-based robot car that uses IR sensors to detect and follow a black line on a white surface. It adjusts its direction based on sensor input and stops automatically when the line is lost.

Notifications You must be signed in to change notification settings

Laila-M-Shawky/line-follower-robot

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

A photo of a sample project

Line Follower Robot Car

This Arduino-powered line follower robot is designed to:

  • Detect and follow a black line on a white surface using an array of 6 infrared (IR) sensors.

  • Adjust its direction dynamically to the left or right based on sensor input to stay on track.

  • Stop safely when the line is lost or not detected by any of the sensors.

πŸš— How It Works

The robot continuously reads input from 6 IR sensors arranged from left to right. Based on which sensors detect the black line:

  • If the middle sensors detect the line β†’ it moves forward.

  • If the left-side sensors detect the line β†’ it turns left.

  • If the right-side sensors detect the line β†’ it turns right.

  • If no sensors detect the line β†’ it stops to prevent going off-track.

πŸ”§ Hardware Components

  • Arduino Uno

  • L298N Motor Driver

  • 2Γ— DC Motors

  • 6Γ— IR Sensors

  • LM317 DC-DC Module

  • Rechargeable Batteries

About

An Arduino-based robot car that uses IR sensors to detect and follow a black line on a white surface. It adjusts its direction based on sensor input and stops automatically when the line is lost.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%