/Line-Following-Car

Code and design files for a line following car with Uno Arduino, motor driver, and infrared sensor. The car follows a black line on white surface and adjusts its movement. Develop coding and circuit design skills and explore automation and robotics applications.

Primary LanguageC++

Arduino Line Following Car

License: MIT LPU Arduino

A line following car built using an Uno Arduino, motor driver, and infrared sensor. The car is programmed to follow a black line on a white surface and adjust its movement using the sensor input.

Working

The line-following car project works by using infrared sensors to detect the black line on a white surface. The sensors are placed underneath the car and are used to determine the position of the line relative to the car. The car is equipped with four motors, which are controlled by an Arduino board using the AFMotor library. The car is programmed to move forward when both sensors detect the line, turn left when only the left sensor detects the line, turn right when only the right sensor detects the line, and stop when neither sensor detects the line.

Team Members

  • Harshit Shukla
  • Samyak Jain
  • Vishal Sharma
  • Sudhansu Khuntia

Getting Started

Prerequisites

Circuit Diagram

Circuit Diagram

Installation

  1. Install the AFMotor library. Go to Sketch > Include Library > Add .ZIP Library > Select AF Motor ZIP file.
  2. Connect the motor driver and infrared sensor to the Uno board.
  3. Upload the code to the Uno board using the Arduino IDE.
  4. Power the circuit using a 9V battery.
  5. Place the line following car on a white surface with a black line.
  6. The car will start moving along the line.

Usage

  • To control the line following car, upload the code to the Uno board using the Arduino IDE.
  • Power the circuit using a 9V battery.
  • Place the line following car on a white surface with a black line.
  • The car will start moving along the line.

Contributing

Contributions are always welcome! If you have any ideas or suggestions, feel free to open an issue or submit a pull request.

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements