How gokul-mechaktroniker/washing-machine---firmware---whz- works
WashMate is ESP32-S3 firmware that detects washing-machine phases locally: it samples ADXL345 vibration, computes window features, classifies them, filters predictions through a phase state machine, and reports confirmed state to Firestore. The README also documents Firestore-triggered push notifications to the Android app. The main sketch and model header were not excerpted, so their connections are included only where the README or sampled-file references support them.
Main entry points: dt_inference.h Inference & Normalization · firestore_writer.h Firestore Writer · wm_firmware.ino Firmware Loop · phase_state_machine.h Phase State Machine
Components 14
Vibration Sensing
- ADXL345
- Sample & Features
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/feature_extractor.h
On-device Classification
- Firmware Loop
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/wm_firmware.ino - Inference & Normalization
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/dt_inference.h - Decision Tree
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/dt_model.h - Normalization Constants
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/norm_constants.h - Phase Label Map
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/label_map.h
Phase Tracking
- Phase State Machine
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/phase_state_machine.h
Cloud Reporting
- Firestore Writer
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/firestore_writer.h - WiFi Network
- Firebase Firestore
- Cloud Function
- WashMate Android App
Other components
- Washing Machine
Connections 14
- Washing Machine → ADXL345: vibrates
README.md - ADXL345 → Sample & Features: provides samples
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/feature_extractor.h - Firmware Loop → Inference & Normalization: runs inference
README.md - Inference & Normalization → Sample & Features: collects features
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/dt_inference.h - Inference & Normalization → Normalization Constants: normalizes with
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/dt_inference.h - Inference & Normalization → Decision Tree: predicts with
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/dt_inference.h - Inference & Normalization → Phase Label Map: maps classes
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/dt_inference.h - Firmware Loop → Phase State Machine: filters predictions
README.md - Phase State Machine → Firestore Writer: confirms phases for
README.md - Firmware Loop → Firestore Writer: initializes reporting
README.md - Firestore Writer → WiFi Network: checks connection
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/firestore_writer.h - Firestore Writer → Firebase Firestore: reads and patches
Firmware_Washing_Machine_Thesis_WHZ/wm_firmware/firestore_writer.h - Firebase Firestore → Cloud Function: triggers
README.md - Cloud Function → WashMate Android App: sends notifications
README.md