Commit Graph

3 Commits

Author SHA1 Message Date
julian 6854aa1c46 Rename -> Inst. Cluster (user); power manager: deep sleep on link silence, wake on IO1 or 60 s probe boot; Ota::isBusy; sleep bit in shared header
Firmware / build (push) Successful in 2m59s
2026-09-28 16:38:23 +02:00
julian bde1f57f62 Tach output: hardware-timer ISR, slew glide, adaptive dither
The Patrol cluster counts pulses in ~150 rpm quanta, so the needle
stepped no matter how clean the data was. Three-stage rework of the
tach path in gauge_outputs:

- Drop LEDC for the tach: Arduino 2.x ledcChangeFrequency() re-inits
  the timer and truncates the waveform mid-period, corrupting the
  cluster's counting window on every update. IO7 is now toggled from a
  1 MHz hardware-timer ISR with auto-reload - phase-continuous through
  every frequency change and immune to task scheduling (an esp_timer
  version wobbled under WiFi bursts).
- Slew limiter: update() (5 Hz packets) only sets a target; tick(),
  called every 20 ms from loop(), glides the output 25%/tick toward it.
- Adaptive dither: random +/-1.2 Hz (~45 rpm, half the cluster's count
  quantum) per tick while the target moves, fading to zero within 1.2 s
  at steady rpm - emulates the natural pulse jitter that makes factory
  senders look smooth, without flickering the needle at rest.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-23 11:12:48 +02:00
julian 5fe313b7fa Link protocol v2 receiver, ESP-NOW leg, Patrol gauge outputs, gear pulse
- protocol header v2 copied byte-identical from the 5B repo
- uart_receiver: processFrame() shared by the UART framing task and ESP-NOW,
  version check, dedupe on packet_id+timestamp, per-transport liveness,
  CONFIG cache with sequence number
- espnow_receiver: STA mode, channel hopping while silent, locks on frames
- gauge_outputs: tach on IO7 (LEDC ch2, 14-bit), coolant PWM on IO8 (LEDC
  ch4, 8-bit), config cached in NVS, overrides applied but not saved
- main: gear label from lever + engaged/target (pulses while shifting, red on
  mismatch), icons driven by A's alert bits, gauge update at 5 Hz, link stats
- wiki: temp_stage.cfd (user's old CANNY program) decoded as prior art;
  controller-link, link-redundancy, patrol-gauge-outputs, open-questions
  updated with the bench-verified v2 results and calibration procedure

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-21 19:12:38 +02:00