How g-raj-k/arduino-smoke-detector-monitor works
This is a browser-based firefighter smoke-and-fire decision-support dashboard paired with Arduino Nano hardware. The main workflow is USB sensor telemetry into the browser, conversion to calibrated PPM, then presentation as tactical metrics, rolling graphs, and a color-coded 3D building view; calibration and buzzer thresholds support response. A demo simulator and configurable floorplans are also documented. The graph follows the sampled orchestrator and module references; some UI wiring and simulator integration are documented but not directly shown in the excerpts.
Main entry points: app.js App Orchestrator · calibration.js Calibration & Status Math · serialManager.js Web Serial Manager · arduino_node.ino Arduino Nano
Components 15
Local Web App
- Static HTTP Server
server.js - Dashboard Page
src/index.html - App Orchestrator
src/js/app.js - Dashboard Styling
src/styles/main.css
Telemetry & Calibration
- Tactical Configuration
src/js/config.js - Calibration & Status Math
src/js/calibration.js - Web Serial Manager
src/js/serialManager.js - Hardware Simulator
src/js/simulator.js
Tactical Displays
- Sensor Metrics Cards
src/js/sensorCards.js - Rolling Graphs
src/js/graphManager.js - 3D Building Viewer
src/js/building3d.js
Sensor Hardware
- Arduino Nano
firmware/arduino_node/arduino_node.ino - Dual MQ-2 Sensors
- Piezo Buzzer
Other components
- Firefighter
Connections 20
- Firefighter → Static HTTP Server: opens dashboard
README.md - Static HTTP Server → Dashboard Page: serves page
server.js - Dashboard Page → App Orchestrator: runs application
README.md - Dashboard Page → Dashboard Styling: uses styling
README.md - App Orchestrator → Web Serial Manager: connects device
src/js/app.js - App Orchestrator → Calibration & Status Math: converts readings
src/js/app.js - App Orchestrator → Tactical Configuration: loads settings
src/js/app.js - App Orchestrator → Sensor Metrics Cards: updates metrics
src/js/app.js - App Orchestrator → 3D Building Viewer: updates model
src/js/app.js - Web Serial Manager → App Orchestrator: delivers readings
README.md - Calibration & Status Math → Tactical Configuration: uses constants
src/js/calibration.js - Sensor Metrics Cards → Rolling Graphs: pushes readings
src/js/sensorCards.js - Sensor Metrics Cards → Calibration & Status Math: derives status
src/js/sensorCards.js - Rolling Graphs → Calibration & Status Math: colors readings
src/js/graphManager.js - 3D Building Viewer → Calibration & Status Math: colors sensors
src/js/building3d.js - Arduino Nano → Web Serial Manager: streams telemetry
README.md - Web Serial Manager → Arduino Nano: sends alarm commands
README.md - Dual MQ-2 Sensors → Arduino Nano: feeds analog inputs
README.md - Arduino Nano → Piezo Buzzer: drives alarm
README.md - App Orchestrator → Hardware Simulator: offers demo mode
README.md