How sujai82/predictive_degradation_monitor works
PDM is an embedded predictive-degradation monitor: it samples capacitor and converter operating signals, computes aging and health on the ESP32, then drives protection and alert outputs. The repository also provides a separate scenario-validation simulator, a standalone browser demo, and PCB, enclosure, and BOM deliverables. The firmware and simulator excerpts show their internal behavior; README statements establish the other capabilities. The web implementation and several design files were not sampled, so their internal relationships are not inferred.
Main entry points: main.py Firmware loop · simulate.py Scenario simulator · generate_pcb.py PCB netlist generator · results.csv Scenario results
Components 12
On-device monitoring
- Sensors
- Firmware loop
firmware/main.py - Health engine
firmware/main.py - Actuators and display
firmware/main.py
Scenario validation
- Scenario simulator
sim/simulate.py - Scenario results
sim/results.csv
Hardware deliverables
- PCB netlist generator
pcb/generate_pcb.py - PCB netlist
pcb/predictive_monitor.net - Enclosure model
enclosure/enclosure.scad - Bill of materials
bom/bom.csv
Standalone demo
- Web dashboard
web/index.html
Other components
- Operator
Connections 6
- Sensors → Firmware loop: provides readings
firmware/main.py - Firmware loop → Health engine: steps engine
firmware/main.py - Health engine → Actuators and display: sets states
firmware/main.py - Scenario simulator → Scenario results: writes CSV
sim/simulate.py - PCB netlist generator → PCB netlist: generates netlist
pcb/generate_pcb.py - Operator → Web dashboard: opens demo
README.md