# urums-20/brazo-robotico-con-banda-transportadora architecture

> Architecture diagram of the GitHub repository urums-20/brazo-robotico-con-banda-transportadora, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/urums-20/brazo-robotico-con-banda-transportadora
- Repository: https://github.com/urums-20/brazo-robotico-con-banda-transportadora

## Overview

The Genesis is a six-joint, seven-servo robot arm with a web control panel, conveyor, vision, and a 3D digital twin. A user operates the browser interface; Flask handles commands and state, communicating with either the ESP32 or its simulator, while returning telemetry to the page. The panel also manages saved poses, sequences, and conveyor controls; vision processes camera images for colored-object detection. The repository includes CAD and printable parts as well. Connections for unsampled features are omitted rather than inferred.

Main entry points: [`servidor_web/app.py`](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/app.py) (Flask controller), [`servidor_web/static/app.js`](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/app.js) (Control interface), [`firmware_esp32/src/main.cpp`](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/firmware_esp32/src/main.cpp) (ESP32 firmware), [`servidor_web/static/banda.js`](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/banda.js) (Conveyor controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web control"]
  node_panel["Control interface<br/>[app.js]"]
  node_flask["Flask controller<br/>[app.py]"]
  node_poses[("Pose library<br/>[app.py]")]
  node_belt_ui["Conveyor controls<br/>[banda.js]"]
  node_twin["3D digital twin<br/>[gemelo.js]"]
  node_arm_adapter["Arm model adapter<br/>[arm-controller.js]"]
end

subgraph group_motion["Robot motion"]
  node_firmware["ESP32 firmware<br/>[main.cpp]"]
end

subgraph group_perception["Vision and simulation"]
  node_sim["ESP32 simulator<br/>[simulador.py]"]
  node_vision["Color vision<br/>[vision.py]"]
end

subgraph group_physical["Robot hardware"]
  node_servos["Servo and belt drive<br/>[main.cpp]"]
  node_parts["CAD and printed parts"]
  node_docs["Product documentation"]
end

node_user(("Operator"))
node_camera(("USB camera"))

node_user -->|"operates"| node_panel
node_panel -->|"calls API"| node_flask
node_flask -->|"uses when offline"| node_sim
node_flask -->|"uses vision"| node_vision
node_flask -->|"serial commands"| node_firmware
node_firmware -->|"sends telemetry"| node_flask
node_firmware -->|"drives"| node_servos
node_panel -->|"manages poses"| node_poses
node_flask -->|"reads and writes"| node_poses
node_panel -->|"creates controls"| node_belt_ui
node_belt_ui -->|"sends belt actions"| node_flask
node_panel -->|"updates display"| node_twin
node_twin -->|"sets model pose"| node_arm_adapter
node_camera -.->|"provides images"| node_vision

click node_panel "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/app.js"
click node_flask "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/app.py"
click node_poses "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/app.py"
click node_belt_ui "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/banda.js"
click node_twin "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/gemelo.js"
click node_arm_adapter "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/modelo/arm-controller.js"
click node_sim "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/simulador.py"
click node_vision "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/vision.py"
click node_firmware "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/firmware_esp32/src/main.cpp"
click node_servos "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/firmware_esp32/src/main.cpp"
click node_parts "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/tree/main/banda"
click node_docs "https://github.com/urums-20/brazo-robotico-con-banda-transportadora/tree/main/docs"

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_panel,node_flask,node_poses,node_belt_ui,node_twin,node_arm_adapter toneBlue
class node_firmware toneAmber
class node_sim,node_vision toneMint
class node_servos,node_parts,node_docs toneRose
class node_user,node_camera toneIndigo
```

## Components

### Web control

- [Control interface](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/app.js): `servidor_web/static/app.js`
- [Flask controller](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/app.py): `servidor_web/app.py`
- [Pose library](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/app.py): `servidor_web/app.py`
- [Conveyor controls](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/banda.js): `servidor_web/static/banda.js`
- [3D digital twin](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/gemelo.js): `servidor_web/static/gemelo.js`
- [Arm model adapter](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/static/modelo/arm-controller.js): `servidor_web/static/modelo/arm-controller.js`

### Robot motion

- [ESP32 firmware](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/firmware_esp32/src/main.cpp): `firmware_esp32/src/main.cpp`

### Vision and simulation

- [ESP32 simulator](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/simulador.py): `servidor_web/simulador.py`
- [Color vision](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/servidor_web/vision.py): `servidor_web/vision.py`

### Robot hardware

- [Servo and belt drive](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/blob/main/firmware_esp32/src/main.cpp): `firmware_esp32/src/main.cpp`
- [CAD and printed parts](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/tree/main/banda): `banda`
- [Product documentation](https://github.com/urums-20/brazo-robotico-con-banda-transportadora/tree/main/docs): `docs`

### Other components

- **Operator**
- **USB camera**

## Connections

- Operator → Control interface: operates (evidence: `README.md`)
- Control interface → Flask controller: calls API (evidence: `servidor_web/static/app.js`)
- Flask controller → ESP32 simulator: uses when offline (evidence: `servidor_web/app.py`)
- Flask controller → Color vision: uses vision (evidence: `servidor_web/app.py`)
- Flask controller → ESP32 firmware: serial commands (evidence: `servidor_web/app.py`)
- ESP32 firmware → Flask controller: sends telemetry (evidence: `servidor_web/app.py`)
- ESP32 firmware → Servo and belt drive: drives (evidence: `firmware_esp32/src/main.cpp`)
- Control interface → Pose library: manages poses (evidence: `servidor_web/static/app.js`)
- Flask controller → Pose library: reads and writes (evidence: `servidor_web/app.py`)
- Control interface → Conveyor controls: creates controls (evidence: `servidor_web/static/app.js`)
- Conveyor controls → Flask controller: sends belt actions (evidence: `servidor_web/static/banda.js`)
- Control interface → 3D digital twin: updates display (evidence: `servidor_web/static/app.js`)
- 3D digital twin → Arm model adapter: sets model pose (evidence: `servidor_web/static/gemelo.js`)
- USB camera → Color vision: provides images
