Port piNail2 web UI and API parity to ESP32-C3 with one-side pin mapping
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
ESP32-C3 firmware for a single-nail piNail controller.
|
||||
|
||||
## What changed vs piNail2
|
||||
- Single nail only.
|
||||
- Loop timing is fixed for responsiveness (`1800ms` cycle, `200ms` tick).
|
||||
- Loop timing controls are intentionally not exposed in API/UI.
|
||||
- Single physical nail hardware (nail2 UI/API is mirrored for compatibility).
|
||||
- Wi-Fi onboarding uses captive portal (`piNail-Setup` / `pinailsetup`).
|
||||
|
||||
## Hardware target
|
||||
@@ -14,29 +12,38 @@ ESP32-C3 firmware for a single-nail piNail controller.
|
||||
- Relay output: active HIGH relay module.
|
||||
|
||||
## GPIO mapping
|
||||
- Relay: `GPIO2`
|
||||
- MAX6675 SCK: `GPIO4`
|
||||
- MAX6675 CS: `GPIO5`
|
||||
- MAX6675 SO: `GPIO6`
|
||||
- Relay: `D10`
|
||||
- MAX6675 SCK: `D9`
|
||||
- MAX6675 CS: `D8`
|
||||
- MAX6675 SO: `D7`
|
||||
|
||||
## API compatibility
|
||||
Implemented endpoints:
|
||||
- `GET /api/status`
|
||||
- `GET /api/status/all`
|
||||
- `GET /api/history`
|
||||
- `POST /api/power`
|
||||
- `POST /api/setpoint`
|
||||
- `POST /api/control`
|
||||
- `POST /api/flight`
|
||||
- `POST /api/scheduler`
|
||||
- `POST /api/pid`
|
||||
- `POST /api/pid/reset`
|
||||
- `POST /api/safety/reset`
|
||||
- `GET /api/heartbeat`
|
||||
- `GET /api/autotune`
|
||||
- `POST /api/autotune/start`
|
||||
- `POST /api/autotune/stop`
|
||||
- `GET/POST /api/presets`
|
||||
- `POST /api/preset/<name>`
|
||||
- `DELETE /api/preset/<name>`
|
||||
- `GET /api/config`
|
||||
|
||||
Built-in web interface:
|
||||
- `GET /` serves a lightweight control UI for power, setpoint, PID, and safety reset.
|
||||
- `GET /` serves the piNail2-style dashboard UI (embedded static assets).
|
||||
|
||||
Not implemented in this firmware:
|
||||
- Scheduler and dual-nail routing.
|
||||
- Autotune endpoints.
|
||||
- Loop timing reconfiguration endpoint.
|
||||
- True independent dual-zone control (nail2 is API/UI-compatible mirror of nail1).
|
||||
|
||||
## Build and flash
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user