This project features an autonomous robot designed to follow sidewalks using OpenCV for path detection and an Arduino for motor control. The robot uses a webcam for visual input, which is processed on a Windows PC to detect and follow paths, then sends movement commands to the Arduino via USB serial. The motors are controlled to steer and drive the robot along the sidewalk.
- Open-source C++ code for path detection using OpenCV.
- Arduino-controlled movement via serial communication.
- Easy-to-upload INO file to Arduino for motor control.
- Designed for autonomous operation with continuous movement.
- Utilizes webcam video input to follow sidewalks in real time.
-
Install OpenCV for C++ on your Windows PC. Follow this guide to install OpenCV.
-
Clone the repository and navigate to the project folder:
git clone https://github.com/yourusername/sidewalk-following-robot.git cd sidewalk-following-robot
Then compile and run the C++ code:
bash g++ -o sidewalk_follower main.cpp pkg-config --cflags --libs opencv4 ./sidewalk_follower
Requirements: Arduino UNO R3, obv a cable
-
Install IDE https://docs.arduino.cc/software/ preferrably the GUI client
-
Upload .ino file click the upload button dumahh
-
Start UNO start your arduino and run the code.
This project is licensed under the BSD-3-Clause License - see the LICENSE file for details. 📄
If you have any questions, suggestions, or need assistance, please open an issue to connect! 🤝
