An end-to-end autonomous cyber-physical robotic system integrating deep learning computer vision with multi-axis inverse kinematics.
Featuring real-time YOLOv8 object detection, selective classification filtering, 2D-to-3D spatial coordinate projection, and Arduino-actuated physical pick-and-place manipulation.
Traditional industrial manipulators execute rigid, pre-programmed trajectories within structured environments, lacking the visual perception necessary to adapt to dynamic scene changes, random object orientations, or selective sorting criteria.
This project architects a fully integrated vision-guided 5-DOF robotic manipulator. Visual streams captured from an overhead optical sensor are processed through a customized Ultralytics YOLOv8 neural network to identify target objects in real time. Detected bounding-box centroids are dynamically transformed from camera pixel space

Live Demonstration: Autonomous optical acquisition, real-time bounding box detection, spatial mapping, and mechanical pick-and-place execution.
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ AUTONOMOUS ROBOTIC PIPELINE │
└────────────────────────────────────────────────────────────────────────────────────────┘
│
▼
┌──────────────┐ ┌─────────────────────────┐ ┌─────────────────────────┐
│ Overhead │ ──► │ YOLOv8 Neural Detector │ ──► │ Selective Target Filter │
│ Video Sensor │ │ (Bounding Box Inference)│ │ (Target Class Matching) │
└──────────────┘ └─────────────────────────┘ └─────────────────────────┘
│
▼
┌──────────────┐ ┌─────────────────────────┐ ┌─────────────────────────┐
│ Physical │ ◄── │ Serial Command Bridge │ ◄── │ Coordinate Homography │
│ Actuation │ │ (Arduino Mega Firmware) │ │ (Pixel (u,v) -> (X,Y,Z))│
└──────────────┘ └─────────────────────────┘ └─────────────────────────┘
Target centroid coordinates
Where
For a 5-DOF articulated arm with link lengths
-
Base Rotation Angle (
$\theta_1$ ):$$\theta_1 = \text{atan2}(Y_w, X_w)$$ -
Planar Reach (
$r$ ) & Height ($z$ ):$$r = \sqrt{X_w^2 + Y_w^2} - L_{\text{gripper}}, \quad z = Z_w - L_1$$ -
Elbow & Shoulder Joints (
$\theta_2, \theta_3$ ):$$\cos(\theta_3) = \frac{r^2 + z^2 - L_2^2 - L_3^2}{2 L_2 L_3}$$
| Module | Implementation | Impact |
|---|---|---|
| YOLOv8 Deep Perception | Real-time object detection inference running at 30+ FPS via PyTorch and OpenCV. | Immediate object identification without manual threshold tuning. |
| Selective Targeting Guard | Target class filtering prioritizing specific objects based on user or API selection. | Prevents picking unverified or hazardous objects. |
| Homographic Mapping Engine | Coordinate matrix transforming 2D camera pixels to millimeter-accurate Cartesian targets. | Sub-centimeter spatial accuracy across the working envelope. |
| High-Current Actuation | Dual L298N dual H-bridge motor drivers paired with dedicated regulated power rails. | High-torque joint retention without microcontroller brownouts. |
| Flask Web Telemetry | Lightweight local web dashboard broadcasting real-time camera feed and servo telemetry. | Remote monitoring and manual override capabilities. |
# 1. Clone the repository
git clone https://github.com/vsbeginner/AI_Based_Vision_Controlled_Robotic_Arm_For_Selective_Object_Manipulation.git
cd AI_Based_Vision_Controlled_Robotic_Arm_For_Selective_Object_Manipulation
# 2. Configure Python environment
python -m venv .venv
# Windows:
.venv\Scripts\Activate.ps1
# Linux / macOS:
source .venv/bin/activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Verify Camera Sensor
python Phase_1_camera_test/CameraTest.py
# 5. Execute Real-Time Selective Manipulation Pipeline
python Phase_5_mapping/yolo_with_mapping.py
# 6. Launch Web Telemetry Interface (Optional)
python AppProject/app.py- Open the Arduino IDE.
- Load
Robotic_Arm_Arduino_Code/Robotic_Arm_Arduino_Code.ino. - Select Board: Arduino Mega or Mega 2560 and the active COM port.
- Click Upload.
- Candidate Name: Vinayak Sharma
- Enrollment / Roll No: 2501940012
- GitHub Profile: @vsbeginner
- LinkedIn Profile: Vinayak Sharma
- Email Contact: [email protected]
- Co-Contributor: Harsh Singh (@Harsh0012-ux)
- Degree Program: Master of Computer Applications (MCA)
- Institution: Department of Computer Science & Engineering, K.R. Mangalam University




