https://github.com/phurin-git/line-following-robot
Creating a line-following robot using an Arduino UNO microcontroller and PID algorithm. The robot is designed to detect and follow a line, typically a black line on a white surface, using infrared sensors.
https://github.com/phurin-git/line-following-robot
arduino
Last synced: 30 days ago
JSON representation
Creating a line-following robot using an Arduino UNO microcontroller and PID algorithm. The robot is designed to detect and follow a line, typically a black line on a white surface, using infrared sensors.
- Host: GitHub
- URL: https://github.com/phurin-git/line-following-robot
- Owner: phurin-git
- Created: 2024-07-21T13:13:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T06:57:33.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T17:22:32.791Z (over 1 year ago)
- Topics: arduino
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Line Following Robot
This project involves creating a line-following robot using an Arduino UNO microcontroller and PID algorithm. The robot is designed to detect and follow a line, typically a black line on a white surface, using infrared sensors.
## Features
- **Infrared Sensors:** Utilizes IR sensors to detect the line and adjust the robot's path.
- **Arduino Control:** Employs an Arduino board for processing sensor inputs and controlling the motors.
- **Motor Drivers:** Uses motor drivers to manage the movement of the robot's wheels.
- **Responsive Navigation:** Capable of making real-time adjustments to follow curved paths and intersections.
## Components
- Arduino Uno
- Infrared line sensors
- L298N motor driver
- DC motors and wheels
- Chassis
- Power supply (battery pack)
- Connecting wires and breadboard
## How it works
- **Sensor Input:** The infrared sensors detect the presence of the line by measuring reflected light. A black line reflects less light, while a white surface reflects more.
- **Processing:** The Arduino reads the sensor inputs and determines the position of the line relative to the robot.
- **Control:** Based on the sensor readings, the Arduino sends signals to the motor driver to adjust the speed and direction of the motors, ensuring the robot stays on the line.
## Getting Started
- **Hardware Setup:** Assemble the components as per the wiring diagram provided.
- **Software:** Upload the Arduino code to the board using the Arduino IDE.
- **Testing:** Place the robot on a track and observe its line-following behavior. Adjust sensor sensitivity and control parameters as needed.