# nachoghee/seniordesign-robotarm architecture

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

- Interactive diagram: https://gitdiagram.com/nachoghee/seniordesign-robotarm
- Repository: https://github.com/nachoghee/seniordesign-robotarm

## Overview

This is a robot-arm project with a Python controller, inverse-kinematics code, and ESP32 firmware. The evident workflow is controller input alongside IK computation, with serial and pygame dependencies named by the controller; the firmware is a separate embedded component. Source-index references support the Python import relationships, but the README describes setup only, and the excerpts do not show runtime calls, serial protocol details, or how the firmware is connected. Those links are therefore left unasserted.

Main entry points: [`Controller Input.py`](https://github.com/nachoghee/seniordesign-robotarm/blob/main/Controller%20Input.py) (Controller Input), [`ikgeo_model.py`](https://github.com/nachoghee/seniordesign-robotarm/blob/main/ikgeo_model.py) (IK Model), [`pose_env/Lib/site-packages/numpy/__init__.py`](https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/numpy/__init__.py) (NumPy), [`pose_env/Lib/site-packages/serial/rfc2217.py`](https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/serial/rfc2217.py) (Serial Library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Python Control"]
  node_controller["Controller Input"]
  node_serial["Serial Library<br/>[rfc2217.py]"]
  node_pygame["Pygame<br/>[sprite.py]"]
end

subgraph group_kinematics["Kinematics"]
  node_ikmodel["IK Model<br/>[ikgeo_model.py]"]
  node_iklib["IK Geometry<br/>[__init__.py]"]
  node_numpy["NumPy<br/>[__init__.py]"]
end

subgraph group_embedded["Embedded Control"]
  node_espfirmware["ESP32 Firmware<br/>[main.cpp]"]
end

node_operator(("Operator"))

node_operator -.->|"provides input"| node_controller
node_controller -->|"imports"| node_ikmodel
node_controller -->|"imports"| node_numpy
node_controller -->|"imports"| node_serial
node_controller -->|"imports"| node_pygame
node_ikmodel -->|"imports"| node_iklib
node_ikmodel -->|"imports"| node_numpy

click node_controller "https://github.com/nachoghee/seniordesign-robotarm/blob/main/Controller%20Input.py"
click node_ikmodel "https://github.com/nachoghee/seniordesign-robotarm/blob/main/ikgeo_model.py"
click node_iklib "https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/ik_geo/__init__.py"
click node_numpy "https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/numpy/__init__.py"
click node_espfirmware "https://github.com/nachoghee/seniordesign-robotarm/blob/main/ESP32-S4/ESP32-S3-N8R2%20Main/main.cpp"
click node_serial "https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/serial/rfc2217.py"
click node_pygame "https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/pygame/sprite.py"

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_controller,node_serial,node_pygame toneBlue
class node_ikmodel,node_iklib,node_numpy toneAmber
class node_espfirmware toneMint
class node_operator toneIndigo
```

## Components

### Python Control

- [Controller Input](https://github.com/nachoghee/seniordesign-robotarm/blob/main/Controller%20Input.py): `Controller Input.py`
- [Serial Library](https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/serial/rfc2217.py): `pose_env/Lib/site-packages/serial/rfc2217.py`
- [Pygame](https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/pygame/sprite.py): `pose_env/Lib/site-packages/pygame/sprite.py`

### Kinematics

- [IK Model](https://github.com/nachoghee/seniordesign-robotarm/blob/main/ikgeo_model.py): `ikgeo_model.py`
- [IK Geometry](https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/ik_geo/__init__.py): `pose_env/Lib/site-packages/ik_geo/__init__.py`
- [NumPy](https://github.com/nachoghee/seniordesign-robotarm/blob/main/pose_env/Lib/site-packages/numpy/__init__.py): `pose_env/Lib/site-packages/numpy/__init__.py`

### Embedded Control

- [ESP32 Firmware](https://github.com/nachoghee/seniordesign-robotarm/blob/main/ESP32-S4/ESP32-S3-N8R2%20Main/main.cpp): `ESP32-S4/ESP32-S3-N8R2 Main/main.cpp`

### Other components

- **Operator**

## Connections

- Operator → Controller Input: provides input
- Controller Input → IK Model: imports (evidence: `Controller Input.py`)
- Controller Input → NumPy: imports (evidence: `Controller Input.py`)
- Controller Input → Serial Library: imports (evidence: `Controller Input.py`)
- Controller Input → Pygame: imports (evidence: `Controller Input.py`)
- IK Model → IK Geometry: imports (evidence: `ikgeo_model.py`)
- IK Model → NumPy: imports (evidence: `ikgeo_model.py`)
