# chengloutai/esp32-projects architecture

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

- Interactive diagram: https://gitdiagram.com/chengloutai/esp32-projects
- Repository: https://github.com/chengloutai/esp32-projects

## Overview

This repository is a collection of independent ESP32 projects, not one end-to-end application. Its documented capabilities span exoskeleton CAN control, GPIO timing, ADC measurement, motor control, EMG processing, sensors, and communications examples. The clearest sampled user workflow is serial commands through the exoskeleton console to the CAN bus and motors. Other README-listed projects are represented as independent firmware components; their internal wiring was not sampled.

Main entry points: [`Exo_pos_can/include/SerialConsole.h`](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/include/SerialConsole.h) (Serial Console), [`Exo_pos_can/include/ExoBus.h`](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/include/ExoBus.h) (Exo CAN Bus), [`esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.cpp`](https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.cpp) (TLS Client Logic), [`esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.h`](https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.h) (TLS Client API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_exo["Exoskeleton CAN"]
  node_serial["Serial Console<br/>[SerialConsole.h]"]
  node_exobus["Exo CAN Bus<br/>[ExoBus.h]"]
  node_exo_firmware["CAN Collector<br/>[main.cpp]"]
  node_exo_gui["Exo GUI<br/>[STA_GUI_main.py]"]
  node_can_plotter["CAN Plotter"]
  node_simple_plotter["Simple Plotter<br/>[simple_plotter.py]"]
end

subgraph group_measurement["Measurement Tools"]
  node_trigger["Trigger Box<br/>[main.cpp]"]
  node_delay["GPIO Delay Tool<br/>[main.cpp]"]
  node_adc["ADS1256 ADC<br/>[main.cpp]"]
  node_adc_scope["ADC Oscilloscope<br/>[oscilloscope.py]"]
end

subgraph group_control["Motor And EMG"]
  node_emg["EMG Processor<br/>[main.cpp]"]
  node_motor_control["ESP32 Motor Control<br/>[main.cpp]"]
  node_c3_motor["ESP32-C3 Control<br/>[main.cpp]"]
end

subgraph group_connectivity["Connectivity Demos"]
  node_mpu_can["MPU CAN Sensor<br/>[main.cpp]"]
  node_can_test["CAN Test<br/>[main.cpp]"]
  node_spi_slave["SPI Slave<br/>[main.cpp]"]
  node_json_demo["JSON Example<br/>[main.cpp]"]
  node_w5500["W5500 Ethernet<br/>[main.cpp]"]
  node_ethernet["Ethernet Client<br/>[main.cpp]"]
  node_ssl_impl["TLS Client Logic<br/>[SSLClient.cpp]"]
  node_ssl_api["TLS Client API<br/>[SSLClient.h]"]
end

node_engineer(("Operator"))
node_motor(("CAN Motor"))

node_engineer -->|"sends commands"| node_serial
node_serial -->|"calls controls"| node_exobus
node_exobus -->|"sends CAN frames"| node_motor
node_ssl_impl -->|"implements API"| node_ssl_api

click node_serial "https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/include/SerialConsole.h"
click node_exobus "https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/include/ExoBus.h"
click node_exo_firmware "https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/src/main.cpp"
click node_exo_gui "https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/src/STA_GUI_main.py"
click node_can_plotter "https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/can_data_plotter.py"
click node_simple_plotter "https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/simple_plotter.py"
click node_trigger "https://github.com/chengloutai/esp32-projects/blob/main/esp32_trigger_box/src/main.cpp"
click node_delay "https://github.com/chengloutai/esp32-projects/blob/main/esp32_delay_test_new/src/main.cpp"
click node_adc "https://github.com/chengloutai/esp32-projects/blob/main/esp32_adc_ads1256/src/main.cpp"
click node_adc_scope "https://github.com/chengloutai/esp32-projects/blob/main/esp32_adc_ads1256/oscilloscope.py"
click node_emg "https://github.com/chengloutai/esp32-projects/blob/main/EMG-arduino/src/main.cpp"
click node_motor_control "https://github.com/chengloutai/esp32-projects/blob/main/esp32_motor_control/src/main.cpp"
click node_c3_motor "https://github.com/chengloutai/esp32-projects/blob/main/esp32_c3%20motor_control/src/main.cpp"
click node_mpu_can "https://github.com/chengloutai/esp32-projects/blob/main/mpu-CAN-bus/src/main.cpp"
click node_can_test "https://github.com/chengloutai/esp32-projects/blob/main/can%20test/src/main.cpp"
click node_spi_slave "https://github.com/chengloutai/esp32-projects/blob/main/esp32_SPI_slave/src/main.cpp"
click node_json_demo "https://github.com/chengloutai/esp32-projects/blob/main/esp32_json/src/main.cpp"
click node_w5500 "https://github.com/chengloutai/esp32-projects/blob/main/w5500_ethernet/src/main.cpp"
click node_ethernet "https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/src/main.cpp"
click node_ssl_impl "https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.cpp"
click node_ssl_api "https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.h"

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_serial,node_exobus,node_exo_firmware,node_exo_gui,node_can_plotter,node_simple_plotter toneBlue
class node_trigger,node_delay,node_adc,node_adc_scope toneAmber
class node_emg,node_motor_control,node_c3_motor toneMint
class node_mpu_can,node_can_test,node_spi_slave,node_json_demo,node_w5500,node_ethernet,node_ssl_impl,node_ssl_api toneRose
class node_engineer,node_motor toneIndigo
```

## Components

### Exoskeleton CAN

- [Serial Console](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/include/SerialConsole.h): `Exo_pos_can/include/SerialConsole.h`
- [Exo CAN Bus](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/include/ExoBus.h): `Exo_pos_can/include/ExoBus.h`
- [CAN Collector](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/src/main.cpp): `Exo_pos_can/src/main.cpp`
- [Exo GUI](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/src/STA_GUI_main.py): `Exo_pos_can/src/STA_GUI_main.py`
- [CAN Plotter](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/can_data_plotter.py): `Exo_pos_can/can_data_plotter.py`
- [Simple Plotter](https://github.com/chengloutai/esp32-projects/blob/main/Exo_pos_can/simple_plotter.py): `Exo_pos_can/simple_plotter.py`

### Measurement Tools

- [Trigger Box](https://github.com/chengloutai/esp32-projects/blob/main/esp32_trigger_box/src/main.cpp): `esp32_trigger_box/src/main.cpp`
- [GPIO Delay Tool](https://github.com/chengloutai/esp32-projects/blob/main/esp32_delay_test_new/src/main.cpp): `esp32_delay_test_new/src/main.cpp`
- [ADS1256 ADC](https://github.com/chengloutai/esp32-projects/blob/main/esp32_adc_ads1256/src/main.cpp): `esp32_adc_ads1256/src/main.cpp`
- [ADC Oscilloscope](https://github.com/chengloutai/esp32-projects/blob/main/esp32_adc_ads1256/oscilloscope.py): `esp32_adc_ads1256/oscilloscope.py`

### Motor And EMG

- [EMG Processor](https://github.com/chengloutai/esp32-projects/blob/main/EMG-arduino/src/main.cpp): `EMG-arduino/src/main.cpp`
- [ESP32 Motor Control](https://github.com/chengloutai/esp32-projects/blob/main/esp32_motor_control/src/main.cpp): `esp32_motor_control/src/main.cpp`
- [ESP32-C3 Control](https://github.com/chengloutai/esp32-projects/blob/main/esp32_c3%20motor_control/src/main.cpp): `esp32_c3 motor_control/src/main.cpp`

### Connectivity Demos

- [MPU CAN Sensor](https://github.com/chengloutai/esp32-projects/blob/main/mpu-CAN-bus/src/main.cpp): `mpu-CAN-bus/src/main.cpp`
- [CAN Test](https://github.com/chengloutai/esp32-projects/blob/main/can%20test/src/main.cpp): `can test/src/main.cpp`
- [SPI Slave](https://github.com/chengloutai/esp32-projects/blob/main/esp32_SPI_slave/src/main.cpp): `esp32_SPI_slave/src/main.cpp`
- [JSON Example](https://github.com/chengloutai/esp32-projects/blob/main/esp32_json/src/main.cpp): `esp32_json/src/main.cpp`
- [W5500 Ethernet](https://github.com/chengloutai/esp32-projects/blob/main/w5500_ethernet/src/main.cpp): `w5500_ethernet/src/main.cpp`
- [Ethernet Client](https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/src/main.cpp): `esp32-ethernet/src/main.cpp`
- [TLS Client Logic](https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.cpp): `esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.cpp`
- [TLS Client API](https://github.com/chengloutai/esp32-projects/blob/main/esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.h): `esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.h`

### Other components

- **Operator**
- **CAN Motor**

## Connections

- Operator → Serial Console: sends commands (evidence: `Exo_pos_can/include/SerialConsole.h`)
- Serial Console → Exo CAN Bus: calls controls (evidence: `Exo_pos_can/include/SerialConsole.h`)
- Exo CAN Bus → CAN Motor: sends CAN frames (evidence: `Exo_pos_can/include/ExoBus.h`)
- TLS Client Logic → TLS Client API: implements API (evidence: `esp32-ethernet/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/lib/SSLClient/src/SSLClient.cpp`)
