How ahmed-saad-fayed/fire-control-system works
Project Type and Purpose
• Project Type: Embedded sensor-based safety system built around an Arduino Nano.
• Purpose: Continuously monitor ambient temperature via an NTC thermistor, classify temperature into three states (Normal, Warning, Critical), and drive real-time visual/audible alerts through an LCD, buzzer, and LED.
Main Components
a. Inputs (Sensors & User Controls)
– NTC Thermistor (voltage divider circuit)
– Potentiometer (LCD contrast adjustment)
b. Processing Unit
– Arduino Nano microcontroller (ATmega328P)
– Firmware (Fire Control System.ino) implementing
• ADC sampling
• Temperature conversion
• State machine (Normal, Warning, Critical)
c. Outputs (Actuators & Displays)
– 16×2 LCD Display
– Buzzer
– Red LED
d. Power & Wiring
– 5 V USB power or external supply
– Common GND rail on breadboard
– Jumper wires and resistors for voltage divider and current limit
Relationships & Data Flows
• Thermistor → Voltage Divider → Arduino A0 (analog reading)
• Arduino reads analog value → computes °C → evaluates thresholds →
– Normal: update LCD with temperature
– Warning: update LCD with warning text + buzzer beeps
– Critical: update LCD with urgent text + continuous buzzer tone + LED ON
• Potentiometer → Arduino → adjusts LCD contrast (optional analog input)
Architectural Patterns & Design Principles
– Simple real-time loop with blocking/non-blocking delays
– Threshold-based state machine for three discrete modes
– Separation of concerns:
• Sensor acquisition
• Data processing & decision logic
• Actuator/display control
– Modular code organization in the .ino file: setup(), loop(), helper functions
Final Checklist
– [ ] Clear, descriptive labels (component names, pin numbers).
– [ ] Annotations for threshold logic and voltage divider.