# nishantsoni02/gesture_controlled_robotic_arm architecture

> Architecture diagram of the GitHub repository nishantsoni02/gesture_controlled_robotic_arm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nishantsoni02/gesture_controlled_robotic_arm
- Repository: https://github.com/nishantsoni02/gesture_controlled_robotic_arm

## Overview

This is a vision-controlled robotic arm: a webcam feed is processed for right-arm pose and hand gestures, which drive serial commands to an Arduino and the arm. The sampled Python source shows the capture, detection, movement, and serial-write flow. The Arduino sketch and CAD files are present in the tree but were not sampled, so their internal behavior and hardware wiring are not verified.

Main entry points: [`main/main.py`](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py) (Frame Loop), [`main/test6.ino`](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/test6.ino) (Arduino Firmware), [`3D File/habululu v28.step`](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/3D%20File/habululu%20v28.step) (Robot Arm), [`3D File/RP_Gripper_MK4_v10_Spur Gear (14 teeth) (1) v1.f3d`](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/3D%20File/RP_Gripper_MK4_v10_Spur%20Gear%20(14%20teeth)%20(1)%20v1.f3d) (Gripper CAD)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vision["Vision and Control"]
  node_mainloop["Frame Loop<br/>[main.py]"]
  node_pose["Pose Tracking<br/>[main.py]"]
  node_movement["Arm Movement<br/>[main.py]"]
  node_gesture["Hand Gesture<br/>[main.py]"]
  node_serial["Servo Commands<br/>[main.py]"]
end

subgraph group_hardware["Robot Hardware"]
  node_arduino["Arduino Firmware<br/>[test6.ino]"]
  node_arm["Robot Arm<br/>[habululu v28.step]"]
  node_cad["Gripper CAD"]
end

node_operator(("Operator"))
node_webcam["Webcam"]

node_operator -->|"controls"| node_mainloop
node_webcam -->|"provides frames"| node_mainloop
node_mainloop -->|"processes frames"| node_pose
node_mainloop -->|"processes frames"| node_gesture
node_pose -->|"detects movement"| node_movement
node_movement -->|"sends servo commands"| node_serial
node_gesture -->|"sends grip commands"| node_serial
node_serial -->|"writes serial"| node_arduino
node_arduino -.->|"drives"| node_arm
node_arm -.->|"includes gripper"| node_cad

click node_mainloop "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py"
click node_pose "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py"
click node_movement "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py"
click node_gesture "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py"
click node_serial "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py"
click node_arduino "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/test6.ino"
click node_arm "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/3D%20File/habululu%20v28.step"
click node_cad "https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/3D%20File/RP_Gripper_MK4_v10_Spur%20Gear%20(14%20teeth)%20(1)%20v1.f3d"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mainloop,node_pose,node_movement,node_gesture,node_serial toneBlue
class node_arduino,node_arm,node_cad toneAmber
class node_operator,node_webcam toneIndigo
```

## Components

### Vision and Control

- [Frame Loop](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py): `main/main.py`
- [Pose Tracking](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py): `main/main.py`
- [Arm Movement](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py): `main/main.py`
- [Hand Gesture](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py): `main/main.py`
- [Servo Commands](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/main.py): `main/main.py`

### Robot Hardware

- [Arduino Firmware](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/main/test6.ino): `main/test6.ino`
- [Robot Arm](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/3D%20File/habululu%20v28.step): `3D File/habululu v28.step`
- [Gripper CAD](https://github.com/nishantsoni02/gesture_controlled_robotic_arm/blob/main/3D%20File/RP_Gripper_MK4_v10_Spur%20Gear%20(14%20teeth)%20(1)%20v1.f3d): `3D File/RP_Gripper_MK4_v10_Spur Gear (14 teeth) (1) v1.f3d`

### Other components

- **Operator**
- **Webcam**

## Connections

- Operator → Frame Loop: controls (evidence: `main/main.py`)
- Webcam → Frame Loop: provides frames (evidence: `main/main.py`)
- Frame Loop → Pose Tracking: processes frames (evidence: `main/main.py`)
- Frame Loop → Hand Gesture: processes frames (evidence: `main/main.py`)
- Pose Tracking → Arm Movement: detects movement (evidence: `main/main.py`)
- Arm Movement → Servo Commands: sends servo commands (evidence: `main/main.py`)
- Hand Gesture → Servo Commands: sends grip commands (evidence: `main/main.py`)
- Servo Commands → Arduino Firmware: writes serial (evidence: `main/main.py`)
- Arduino Firmware → Robot Arm: drives
- Robot Arm → Gripper CAD: includes gripper
