# kuberan0810/double-actuated-aerothrust-pendulum architecture

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

- Interactive diagram: https://gitdiagram.com/kuberan0810/double-actuated-aerothrust-pendulum
- Repository: https://github.com/kuberan0810/double-actuated-aerothrust-pendulum

## Overview

This repository combines a desktop controller/telemetry plotter for a double-actuated aerothrust pendulum, a separate Excel-based curve-fitting tool, and firmware and PCB artifacts. The principal desktop workflow sends controller settings and motor commands over serial, then reads MCU telemetry, decodes angle and angular-rate values, and plots them. The two desktop scripts appear to be Python-version variants. Firmware behavior and hardware connections are not inferred from filenames; their source contents were not sampled.

Main entry points: [`main app python 310.py`](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py) (Serial I/O), [`curve_equation.py`](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/curve_equation.py) (Excel import UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop Control"]
  node_app3["Desktop app &#40;Py3&#41;"]
  node_app2["Desktop app &#40;Py2&#41;<br/>[main app.py]"]
  node_controls["Control inputs"]
  node_serial["Serial I/O"]
  node_decode["Telemetry decode"]
  node_plot["Live plot"]
end

subgraph group_analysis["Data Analysis"]
  node_excelui["Excel import UI<br/>[curve_equation.py]"]
  node_fit["Curve fitting<br/>[curve_equation.py]"]
end

subgraph group_embedded["Embedded Hardware"]
  node_firmware_pid["PID controller sketch<br/>[PID_Controller.ino]"]
  node_firmware_thrust["Thrust duty-cycle sketch"]
  node_firmware_osc["Oscillation sketch"]
  node_pcb["PCB design"]
  node_schematic["PCB schematic"]
  node_layout["PCB layout reference"]
end

node_operator(("Operator"))

node_operator -->|"enters settings"| node_controls
node_controls -->|"sends commands"| node_serial
node_operator -->|"starts plotting"| node_serial
node_serial -->|"passes bytes"| node_decode
node_decode -->|"updates points"| node_plot
node_operator -->|"selects workbook"| node_excelui
node_excelui -->|"runs fit"| node_fit

click node_app3 "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py"
click node_app2 "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app.py"
click node_controls "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py"
click node_serial "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py"
click node_decode "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py"
click node_plot "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py"
click node_excelui "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/curve_equation.py"
click node_fit "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/curve_equation.py"
click node_firmware_pid "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/PID_Controller.ino"
click node_firmware_thrust "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Thrust_Vs_Duty_Cycle.ino"
click node_firmware_osc "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Free%20Oscillation%20response.ino"
click node_pcb "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Aerothrust_Module_Stm32_PCB.brd"
click node_schematic "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Aerothrust_Module_Stm32_PCB.sch"
click node_layout "https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Aerothrust_Module_Stm32_PCB_Layout.pdf"

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_app3,node_app2,node_controls,node_serial,node_decode,node_plot toneBlue
class node_excelui,node_fit toneAmber
class node_firmware_pid,node_firmware_thrust,node_firmware_osc,node_pcb,node_schematic,node_layout toneMint
class node_operator toneIndigo
```

## Components

### Desktop Control

- [Desktop app (Py3)](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py): `main app python 310.py`
- [Desktop app (Py2)](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app.py): `main app.py`
- [Control inputs](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py): `main app python 310.py`
- [Serial I/O](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py): `main app python 310.py`
- [Telemetry decode](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py): `main app python 310.py`
- [Live plot](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/main%20app%20python%20310.py): `main app python 310.py`

### Data Analysis

- [Excel import UI](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/curve_equation.py): `curve_equation.py`
- [Curve fitting](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/curve_equation.py): `curve_equation.py`

### Embedded Hardware

- [PID controller sketch](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/PID_Controller.ino): `PID_Controller.ino`
- [Thrust duty-cycle sketch](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Thrust_Vs_Duty_Cycle.ino): `Thrust_Vs_Duty_Cycle.ino`
- [Oscillation sketch](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Free%20Oscillation%20response.ino): `Free Oscillation response.ino`
- [PCB design](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Aerothrust_Module_Stm32_PCB.brd): `Aerothrust_Module_Stm32_PCB.brd`
- [PCB schematic](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Aerothrust_Module_Stm32_PCB.sch): `Aerothrust_Module_Stm32_PCB.sch`
- [PCB layout reference](https://github.com/kuberan0810/double-actuated-aerothrust-pendulum/blob/main/Aerothrust_Module_Stm32_PCB_Layout.pdf): `Aerothrust_Module_Stm32_PCB_Layout.pdf`

### Other components

- **Operator**

## Connections

- Operator → Control inputs: enters settings (evidence: `main app python 310.py`)
- Control inputs → Serial I/O: sends commands (evidence: `main app python 310.py`)
- Operator → Serial I/O: starts plotting (evidence: `main app python 310.py`)
- Serial I/O → Telemetry decode: passes bytes (evidence: `main app python 310.py`)
- Telemetry decode → Live plot: updates points (evidence: `main app python 310.py`)
- Operator → Excel import UI: selects workbook (evidence: `curve_equation.py`)
- Excel import UI → Curve fitting: runs fit (evidence: `curve_equation.py`)
