# juanignaciozajicisc-dev/willy- architecture

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

- Interactive diagram: https://gitdiagram.com/juanignaciozajicisc-dev/willy-
- Repository: https://github.com/juanignaciozajicisc-dev/willy-

## Overview

Willy is an ESP32-based remotely controlled robot project with a browser control interface and a camera-stream view. The visible workflow is a user pressing a directional control, the page sending commands over WebSocket, and the robot firmware receiving them; the page can also display a Raspberry Pi video stream. The sampled header embeds the web UI and its styles, but the firmware’s server, motor-control implementation, and stream service were not shown, so those connections are omitted rather than inferred.

Main entry points: [`movimiento_willy/web_pages.h`](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h) (Directional controls), [`movimiento_willy/movimiento_willy.ino`](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/movimiento_willy.ino) (ESP32 firmware), [`prueba_motores_willy/prueba_motores_willy.ino`](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/prueba_motores_willy/prueba_motores_willy.ino) (Motor test firmware), [`prueba_motores_willy_sin_pwm/prueba_motores_willy_sin_pwm.ino`](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/prueba_motores_willy_sin_pwm/prueba_motores_willy_sin_pwm.ino) (Motor test, no PWM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Browser interface"]
  node_ui["Control and pages<br/>[web_pages.h]"]
  node_controls["Directional controls<br/>[web_pages.h]"]
  node_map["Movement map<br/>[web_pages.h]"]
  node_camera["Camera stream view<br/>[web_pages.h]"]
  node_browser["Web browser"]
end

subgraph group_firmware["Robot firmware"]
  node_esp["ESP32 firmware"]
  node_embedded["Embedded web assets<br/>[web_pages.h]"]
  node_motor["Motor test firmware"]
  node_motor_no_pwm["Motor test, no PWM"]
end

subgraph group_hardware["Robot hardware"]
  node_motors["Drive motors"]
end

node_user(("Remote operator"))
node_ws["WebSocket service"]
node_pi["Raspberry Pi stream"]

node_user -->|"operates"| node_browser
node_browser -->|"uses controls"| node_controls
node_controls -->|"sends commands"| node_ws
node_controls -->|"updates"| node_map
node_browser -->|"views stream"| node_camera
node_camera -->|"requests frames"| node_pi
node_esp -.->|"serves assets"| node_embedded
node_ws -.->|"delivers commands"| node_esp
node_esp -.->|"drives"| node_motors
node_motor -.->|"tests"| node_motors
node_motor_no_pwm -.->|"tests"| node_motors

click node_ui "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h"
click node_controls "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h"
click node_map "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h"
click node_camera "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h"
click node_esp "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/movimiento_willy.ino"
click node_embedded "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h"
click node_motor "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/prueba_motores_willy/prueba_motores_willy.ino"
click node_motor_no_pwm "https://github.com/juanignaciozajicisc-dev/willy-/blob/main/prueba_motores_willy_sin_pwm/prueba_motores_willy_sin_pwm.ino"

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_ui,node_controls,node_map,node_camera,node_browser toneBlue
class node_esp,node_embedded,node_motor,node_motor_no_pwm toneAmber
class node_motors toneMint
class node_user,node_ws,node_pi toneIndigo
```

## Components

### Browser interface

- [Control and pages](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h): `movimiento_willy/web_pages.h`
- [Directional controls](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h): `movimiento_willy/web_pages.h`
- [Movement map](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h): `movimiento_willy/web_pages.h`
- [Camera stream view](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h): `movimiento_willy/web_pages.h`
- **Web browser**

### Robot firmware

- [ESP32 firmware](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/movimiento_willy.ino): `movimiento_willy/movimiento_willy.ino`
- [Embedded web assets](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/movimiento_willy/web_pages.h): `movimiento_willy/web_pages.h`
- [Motor test firmware](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/prueba_motores_willy/prueba_motores_willy.ino): `prueba_motores_willy/prueba_motores_willy.ino`
- [Motor test, no PWM](https://github.com/juanignaciozajicisc-dev/willy-/blob/main/prueba_motores_willy_sin_pwm/prueba_motores_willy_sin_pwm.ino): `prueba_motores_willy_sin_pwm/prueba_motores_willy_sin_pwm.ino`

### Robot hardware

- **Drive motors**

### Other components

- **Remote operator**
- **WebSocket service**
- **Raspberry Pi stream**

## Connections

- Remote operator → Web browser: operates
- Web browser → Directional controls: uses controls (evidence: `movimiento_willy/web_pages.h`)
- Directional controls → WebSocket service: sends commands (evidence: `movimiento_willy/web_pages.h`)
- Directional controls → Movement map: updates (evidence: `movimiento_willy/web_pages.h`)
- Web browser → Camera stream view: views stream (evidence: `movimiento_willy/web_pages.h`)
- Camera stream view → Raspberry Pi stream: requests frames (evidence: `movimiento_willy/web_pages.h`)
- ESP32 firmware → Embedded web assets: serves assets
- WebSocket service → ESP32 firmware: delivers commands
- ESP32 firmware → Drive motors: drives
- Motor test firmware → Drive motors: tests
- Motor test, no PWM → Drive motors: tests
