# devtronic-us/smartpendant architecture

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

- Interactive diagram: https://gitdiagram.com/devtronic-us/smartpendant
- Repository: https://github.com/devtronic-us/smartpendant

## Overview

This repository is a hardware design and fabrication package for the Devtronic SmartPendant, a standalone controller for grblHAL CNC machines. A maker can use the PCB design and manufacturing files to build the electronics, print the pendant enclosure and controls, then load firmware obtained from the separately hosted firmware project. The repository documents the device’s capabilities and assembly context, but contains no firmware source or runtime implementation; the connections below therefore describe documented fabrication and setup relationships, not internal device behavior.

Main entry points: [`PCB/EasyEDA_SmartPendant_1.5a_PCB.json`](https://github.com/devtronic-us/smartpendant/blob/main/PCB/EasyEDA_SmartPendant_1.5a_PCB.json) (PCB design), [`PCB/EasyEDA_SmartPendant_1.5a_SCH.json`](https://github.com/devtronic-us/smartpendant/blob/main/PCB/EasyEDA_SmartPendant_1.5a_SCH.json) (Schematic), [`PCB`](https://github.com/devtronic-us/smartpendant/tree/main/PCB) (PCB manufacturing files), [`3D_Print/SmartPendant.scad`](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant.scad) (Pendant case models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_electronics["Electronics design"]
  node_pcb_design["PCB design"]
  node_schematic["Schematic"]
  node_manufacturing["PCB manufacturing files"]
end

subgraph group_enclosure["Enclosure fabrication"]
  node_case_models["Pendant case models<br/>[SmartPendant.scad]"]
  node_case_prints["Case print files"]
  node_button_models["Button models"]
  node_front_button_model["Front button model"]
  node_side_button_model["Side button model"]
  node_cable_relief["Cable relief print<br/>[SmartPendant.scad]"]
  node_alternate_case["Off-the-shelf case"]
end

subgraph group_setup["Device setup"]
  node_firmware_project["Firmware project"]
  node_programmer["STM32CubeProgrammer"]
end

node_maker(("Maker"))
node_grblhal_cnc["grblHAL CNC"]

node_maker -->|"uses design"| node_pcb_design
node_maker -->|"uses design"| node_schematic
node_maker -->|"fabricates PCB"| node_manufacturing
node_maker -->|"generates case"| node_case_models
node_maker -->|"prints parts"| node_case_prints
node_maker -->|"prints controls"| node_button_models
node_maker -->|"prints controls"| node_front_button_model
node_maker -->|"prints controls"| node_side_button_model
node_maker -->|"prints relief"| node_cable_relief
node_maker -->|"generates case"| node_alternate_case
node_maker -->|"gets firmware"| node_firmware_project
node_maker -->|"flashes firmware"| node_programmer
node_grblhal_cnc -->|"controlled by"| node_maker

click node_pcb_design "https://github.com/devtronic-us/smartpendant/blob/main/PCB/EasyEDA_SmartPendant_1.5a_PCB.json"
click node_schematic "https://github.com/devtronic-us/smartpendant/blob/main/PCB/EasyEDA_SmartPendant_1.5a_SCH.json"
click node_manufacturing "https://github.com/devtronic-us/smartpendant/tree/main/PCB"
click node_case_models "https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant.scad"
click node_case_prints "https://github.com/devtronic-us/smartpendant/tree/main/3D_Print"
click node_button_models "https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/Pendant_Back_Buttons.scad"
click node_front_button_model "https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/Pendant_Front_Buttons.scad"
click node_side_button_model "https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/Pendant_Side_Button.scad"
click node_cable_relief "https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant.scad"
click node_alternate_case "https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant_off-the-shelf.scad"

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_pcb_design,node_schematic,node_manufacturing toneBlue
class node_case_models,node_case_prints,node_button_models,node_front_button_model,node_side_button_model,node_cable_relief,node_alternate_case toneAmber
class node_firmware_project,node_programmer toneMint
class node_maker,node_grblhal_cnc toneIndigo
```

## Components

### Electronics design

- [PCB design](https://github.com/devtronic-us/smartpendant/blob/main/PCB/EasyEDA_SmartPendant_1.5a_PCB.json): `PCB/EasyEDA_SmartPendant_1.5a_PCB.json`
- [Schematic](https://github.com/devtronic-us/smartpendant/blob/main/PCB/EasyEDA_SmartPendant_1.5a_SCH.json): `PCB/EasyEDA_SmartPendant_1.5a_SCH.json`
- [PCB manufacturing files](https://github.com/devtronic-us/smartpendant/tree/main/PCB): `PCB`

### Enclosure fabrication

- [Pendant case models](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant.scad): `3D_Print/SmartPendant.scad`
- [Case print files](https://github.com/devtronic-us/smartpendant/tree/main/3D_Print): `3D_Print`
- [Button models](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/Pendant_Back_Buttons.scad): `3D_Print/Pendant_Back_Buttons.scad`
- [Front button model](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/Pendant_Front_Buttons.scad): `3D_Print/Pendant_Front_Buttons.scad`
- [Side button model](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/Pendant_Side_Button.scad): `3D_Print/Pendant_Side_Button.scad`
- [Cable relief print](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant.scad): `3D_Print/SmartPendant.scad`
- [Off-the-shelf case](https://github.com/devtronic-us/smartpendant/blob/main/3D_Print/SmartPendant_off-the-shelf.scad): `3D_Print/SmartPendant_off-the-shelf.scad`

### Device setup

- **Firmware project**
- **STM32CubeProgrammer**

### Other components

- **Maker**
- **grblHAL CNC**

## Connections

- Maker → PCB design: uses design (evidence: `README.md`)
- Maker → Schematic: uses design (evidence: `README.md`)
- Maker → PCB manufacturing files: fabricates PCB (evidence: `README.md`)
- Maker → Pendant case models: generates case (evidence: `README.md`)
- Maker → Case print files: prints parts (evidence: `README.md`)
- Maker → Button models: prints controls (evidence: `README.md`)
- Maker → Front button model: prints controls (evidence: `README.md`)
- Maker → Side button model: prints controls (evidence: `README.md`)
- Maker → Cable relief print: prints relief (evidence: `README.md`)
- Maker → Off-the-shelf case: generates case (evidence: `README.md`)
- Maker → Firmware project: gets firmware (evidence: `README.md`)
- Maker → STM32CubeProgrammer: flashes firmware (evidence: `README.md`)
- grblHAL CNC → Maker: controlled by (evidence: `README.md`)
