https://github.com/slothspunky77/line-follower-bot
https://github.com/slothspunky77/line-follower-bot
arduino arduino-uno
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slothspunky77/line-follower-bot
- Owner: SlothSpunky77
- Created: 2024-08-20T13:50:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-20T13:57:40.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T23:16:48.371Z (about 1 year ago)
- Topics: arduino, arduino-uno
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Line-Following Robot with Obstacle and Traffic Light Detection
### Project Description
This project is an Arduino-powered autonomous robot that follows a black line on the floor while detecting and responding to obstacles and traffic lights. The robot uses multiple sensors to navigate and make decisions:
- **Ultrasound sensor** for obstacle detection, ensuring the robot stops when an object or wall is placed in its path.
- **Infrared sensors** for line tracking, allowing the robot to follow a black line on a white surface.
- **Color sensor** for traffic light recognition, stopping at a red light and proceeding at a green light.
### Features
- **Line Following:** The robot uses two infrared sensors to follow a black line on the ground.
- **Obstacle Avoidance:** The ultrasonic sensor detects objects in the robot's path and halts movement until the obstacle is cleared.
- **Traffic Light Recognition:** The color sensor identifies red and green lights, stopping the robot at red and allowing it to proceed at green.
- **Real-Time Decision Making:** The robot makes real-time decisions based on sensor input to navigate safely and efficiently.
### How It Works
- **Line Following:** The infrared sensors detect the contrast between the black line and the white surface, sending signals to the Arduino to adjust the motors accordingly.
- **Obstacle Avoidance:** The ultrasonic sensor continuously measures the distance to objects in front of the robot. When an object is detected within a certain threshold, the robot stops.
- **Traffic Light Control:** The color sensor detects the color of lights. If a red light is detected, the robot stops. If a green light is detected, the robot resumes movement.