# mew463/esp32-caliper architecture

> Architecture diagram of the GitHub repository mew463/esp32-caliper, 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/mew463/esp32-caliper
- Repository: https://github.com/mew463/esp32-caliper

## Overview

This repository documents a Bluetooth-enabled digital-caliper replacement: the caliper’s data is decoded by ESP32 firmware and sent to a CAD application, where button actions enter a measurement and either submit it or add a space for tolerance. The KiCad design supplies the embedded board and its battery, charging, and indicator features. The README documents these capabilities, but no source excerpts were provided, so firmware internals and unverified call-level relationships are not expanded here.

Main entry points: [`arduino code/esp32_caliper`](https://github.com/mew463/esp32-caliper/tree/main/arduino%20code/esp32_caliper) (ESP32 caliper firmware), [`esp32 caliper.kicad_pcb`](https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb) (ESP32 PCB)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_firmware["Firmware"]
  node_firmware_app["ESP32 caliper firmware"]
end

subgraph group_electronics["Electronics"]
  node_board["ESP32 PCB"]
  node_battery["Battery and charging"]
  node_indicators["NeoPixel and charge light"]
end

subgraph group_interaction["User interaction"]
  node_buttons["User buttons"]
end

node_caliper(("Digital caliper"))
node_cad_app(("OnShape"))

node_caliper -->|"sends readings"| node_firmware_app
node_buttons -->|"trigger actions"| node_firmware_app
node_board -->|"hosts firmware"| node_firmware_app
node_firmware_app -->|"sends via Bluetooth"| node_cad_app
node_battery -->|"reports status"| node_firmware_app

click node_buttons "https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb"
click node_firmware_app "https://github.com/mew463/esp32-caliper/tree/main/arduino%20code/esp32_caliper"
click node_board "https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb"
click node_battery "https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb"
click node_indicators "https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb"

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_firmware_app toneBlue
class node_board,node_battery,node_indicators toneAmber
class node_buttons toneMint
class node_caliper,node_cad_app toneIndigo
```

## Components

### Firmware

- [ESP32 caliper firmware](https://github.com/mew463/esp32-caliper/tree/main/arduino%20code/esp32_caliper): `arduino code/esp32_caliper`

### Electronics

- [ESP32 PCB](https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb): `esp32 caliper.kicad_pcb`
- [Battery and charging](https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb): `esp32 caliper.kicad_pcb`
- [NeoPixel and charge light](https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb): `esp32 caliper.kicad_pcb`

### User interaction

- [User buttons](https://github.com/mew463/esp32-caliper/blob/main/esp32%20caliper.kicad_pcb): `esp32 caliper.kicad_pcb`

### Other components

- **Digital caliper**
- **OnShape**

## Connections

- Digital caliper → ESP32 caliper firmware: sends readings (evidence: `README.md`)
- User buttons → ESP32 caliper firmware: trigger actions (evidence: `README.md`)
- ESP32 PCB → ESP32 caliper firmware: hosts firmware (evidence: `README.md`)
- ESP32 caliper firmware → OnShape: sends via Bluetooth (evidence: `README.md`)
- Battery and charging → ESP32 caliper firmware: reports status (evidence: `README.md`)
