This repository contains the Arduino code for a line following robot. The project is designed to be simple and easy to understand, making it a great starting point for beginners exploring robotics and Arduino programming.
The LineFollowingCar project utilizes an Arduino microcontroller and a set of sensors to guide a small car along a line marked on the floor. The car uses a line-following algorithm to detect the line and adjust its direction accordingly.
- Line Following: The car can follow a line marked on the floor, adjusting its direction to stay on track.
- Multiple Versions: The repository includes three versions of the code, in separate branches:
- v1: Follows a straight line segment, starting at the beginning of the line and stopping at the end.
- v2: Similar to v1 but with four motors instead of two.
- v3: Follows a line path with turns included.
- Adjustable Parameters: The code allows you to adjust the delay duration, motor speed, and servo angle to fine-tune the car's performance.
- Hardware: You will need an Arduino microcontroller, a set of line sensors, motors, a servo motor, and a chassis to build the car.
- Software: Download the Arduino IDE from the official website (https://www.arduino.cc/en/software).
- Code: Download the code from this repository and upload it to your Arduino board.
- Calibration: Adjust the delay duration, motor speed, and servo angle in the code to optimize the car's performance.
The repository contains the following files:
- README.md: This file.
- [version] branch: Contains the code for each version of the project. Switch to each branch to view the code for that version.
Feel free to contribute to this project by:
- Improving the code: Optimize the line-following algorithm or add new features.
- Adding documentation: Create detailed instructions for building and calibrating the car.
- Sharing your experience: Share your own line-following projects or challenges.
This project is licensed under the UnLicense. See the LICENSE file for more details.
This project was inspired by various online resources and tutorials on line-following robots.
Start building your own LineFollowingCar today and explore the exciting world of robotics with Arduino!