{"id":27556760,"url":"https://github.com/emaadakhter/object_following_robot","last_synced_at":"2026-04-15T14:35:37.666Z","repository":{"id":287585618,"uuid":"965191349","full_name":"EmaadAkhter/Object_following_robot","owner":"EmaadAkhter","description":"An object following robot using the ultralytics library for object detection and Mqtt library for communication between the laptop and the rsapberry pi","archived":false,"fork":false,"pushed_at":"2025-04-12T18:06:55.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T06:34:29.325Z","etag":null,"topics":["iot-device","mqtt","opencv","raspberry-pi","real-time-object-detection","ultralytics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmaadAkhter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-12T16:03:42.000Z","updated_at":"2025-04-13T05:46:32.000Z","dependencies_parsed_at":"2025-04-13T06:34:34.003Z","dependency_job_id":"9ba10b9d-a790-4be2-a9a1-92f180fc5293","html_url":"https://github.com/EmaadAkhter/Object_following_robot","commit_stats":null,"previous_names":["emd119/object_following_robot","emaadakhter/object_following_robot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmaadAkhter%2FObject_following_robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmaadAkhter%2FObject_following_robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmaadAkhter%2FObject_following_robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmaadAkhter%2FObject_following_robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmaadAkhter","download_url":"https://codeload.github.com/EmaadAkhter/Object_following_robot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249787073,"owners_count":21325569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot-device","mqtt","opencv","raspberry-pi","real-time-object-detection","ultralytics"],"created_at":"2025-04-19T19:56:00.913Z","updated_at":"2026-04-15T14:35:37.633Z","avatar_url":"https://github.com/EmaadAkhter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Object following robot\n\nThis project uses YOLOv8 (You Only Look Once version 8) for real-time object detection and controls a robot's movement via MQTT. The system detects the object in the camera feed and sends commands to the robot to move forward, left, right, or stop based on the detected object's position. The robot movement is controlled via an L298N motor driver and a Raspberry Pi.\n\n\n## Features\n\nReal-time object Detection: Using YOLOv8 to detect object in the camera feed.\n\nRobot Movement Control: Commands like forward, left, right, and stop are sent via MQTT based on the detected object's position.\n\nMQTT Communication: MQTT is used to communicate between the computer running YOLOv8 and the Raspberry Pi controlling the motors.\n\n\n## Hardware Requirement\n\nRaspberry Pi \n\nCamera (Bluetooth webcam connected to the laptop)\n\nL298N Motor Driver\n\nDC motors\n\nGPIO pins for motor control\n\n\n\n## Software Requirement\n\nPython 3\n\nOpenCV (opencv library)\n\nYOLOv8 model (ultralytics library)\n\nMQTT client (paho-mqtt library)\n\nRaspberry Pi GPIO library (RPi.GPIO)\n\n## Setup (Laptop)\n\nRun the following commands on the Laptop:\n\n```bash\n  pip install opencv-python\n  pip install paho-mqtt\n  pip install ultralytics\n```\n## Setup (Raspberry pi)\n\nRun the following commands on the \nRaspberry pi:\n \n : RPi.GPIO Download\n```bash\n  sudo apt update\n  pip install RPi.GPIO\n  ```\n\n: mqtt Download\n```bash\n  sudo apt update\n  pip install paho-mqtt\n  sudo apt install mosquitto mosquitto-clients\n  ```\n\n: mqtt Setup\n```bash\n  sudo systemctl enable mosquitto\n  sudo systemctl start mosquitto\n  ```\n\n\n\n  \n  \n## Acknowledgements\n\n  - [Ultrayltics](https://github.com/ultralytics/ultralytics)\n  - [OpenCV](https://github.com/opencv/opencv)\n  - [paho-mqtt](https://github.com/eclipse-paho/paho.mqtt.python)\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaadakhter%2Fobject_following_robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femaadakhter%2Fobject_following_robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaadakhter%2Fobject_following_robot/lists"}