An industrial boiler monitoring, control, and safety system designed to continuously monitor temperature, pressure, water level, and flow; process instrumentation signals; automatically control boiler actuators; detect abnormal operating conditions; initiate emergency shutdown; log process data; and provide a real-time monitoring dashboard.
The project combines process simulation, industrial-style instrumentation, 4–20 mA signal processing, automatic control, safety interlocks, fault detection, data logging, an ATmega328P embedded implementation, Wokwi simulation, automated testing, and a Streamlit-based monitoring dashboard.
Industrial boilers operate under continuously changing temperature, pressure, water-level, and flow conditions. Failure to detect abnormal conditions can result in equipment damage or unsafe operation.
This project demonstrates a complete monitoring and control architecture in which process variables are measured, represented through industrial-style instrumentation signals, processed into engineering values, evaluated by the safety system, and used by the controller to operate actuators.
The project also includes an ATmega328P-based embedded implementation and Wokwi hardware simulation to demonstrate how the software control concept can be transferred toward a microcontroller-based system.
A Streamlit dashboard provides real-time visualization of the Python-based boiler process simulation.
- Real-time temperature monitoring
- Pressure monitoring
- Water-level monitoring
- Flow monitoring
- 4–20 mA instrumentation simulation
- Signal processing and engineering-unit conversion
- Automatic heater control
- Automatic feed-pump control
- Control-valve operation
- Safety interlocks
- High-pressure emergency shutdown
- High-temperature protection
- Low-water-level protection
- Low-flow protection
- Safety-trip latching
- Manual safety reset
- Fault injection and recovery
- Sensor fault detection
- Anomaly detection
- Process-data logging
- Alarm logging
- Real-time Streamlit dashboard
- ATmega328P embedded implementation
- Wokwi hardware simulation
- Automated unit, integration, and end-to-end testing
flowchart TD
A["Boiler Process Simulation"] --> B["Process Sensors"]
B --> C["4–20 mA Instrumentation"]
C --> D["Signal Processing"]
D --> E["Engineering Process Values"]
E --> F["Automatic Controller"]
E --> G["Safety System"]
E --> H["Fault Detection"]
F --> I["Actuators"]
G --> I
I --> J["Heater"]
I --> K["Feed Pump"]
I --> L["Control Valve"]
G --> M["Emergency Shutdown"]
G --> N["Alarm Generation"]
E --> O["Data Logger"]
O --> P["Process Data"]
O --> Q["Alarm Data"]
P --> R["Streamlit Dashboard"]
Q --> R
R --> S["Real-Time Measurements"]
R --> T["Process Trends"]
R --> U["Actuator Status"]
R --> V["Safety Status"]
R --> W["Safety Alarms"]
X["ATmega328P Embedded Implementation"] --> Y["Embedded Control Logic"]
Y -. "Hardware implementation path" .-> B
The system monitors four primary process variables.
| Variable | Unit | Purpose |
|---|---|---|
| Temperature | °C | Monitors boiler thermal condition |
| Pressure | bar | Detects pressure buildup and unsafe conditions |
| Water Level | % | Maintains safe boiler water level |
| Flow | L/min | Monitors process/feed flow |
These variables are continuously updated by the process simulation and evaluated by the controller and safety system.
The project includes an industrial-style instrumentation layer.
The simulated process measurements are represented using a 4–20 mA transmitter model and converted back into engineering values through signal processing.
Process Variable
|
v
Sensor Measurement
|
v
4–20 mA Transmitter
|
v
Signal Processing
|
v
Engineering Units
|
v
Control / Safety System
This provides a simplified representation of how industrial field instrumentation interfaces with control and monitoring systems.
The boiler controller automatically determines actuator operation based on measured process conditions and the current safety state.
- Heater
- Feed pump
- Control valve
Process Measurements
|
v
Automatic Controller
|
+------> Heater
|
+------> Feed Pump
|
+------> Control Valve
The controller operates normally only when the safety system permits normal operation.
During an emergency condition, the safety system overrides normal control operation and places the process into a safe state.
Safety is given priority over normal process control.
The safety system continuously evaluates process conditions and can override normal controller operation when critical limits are exceeded.
| Parameter | Safety Limit |
|---|---|
| Maximum Temperature | 210 °C |
| Maximum Pressure | 10 bar |
| Minimum Water Level | 20 % |
| Minimum Flow | 10 L/min |
- High-temperature detection
- High-pressure detection
- Low-water-level detection
- Low-flow detection
- Emergency shutdown
- Safety-trip latching
- Alarm generation
- Safe actuator state
- Controlled manual reset
Normal Operation
|
v
Process Monitoring
|
v
Abnormal Condition
|
v
Safety Evaluation
|
v
Emergency Trip
|
+----> Heater OFF
|
+----> Pump OFF
|
+----> Valve OPEN
|
+----> Alarm ON
|
v
Safety Trip Latched
|
v
Condition Restored
|
v
Controlled Manual Reset
|
v
Normal Operation
The safety-trip latch prevents automatic restart after a critical safety event.
The project includes controlled fault injection and abnormal-condition detection for safety validation.
- High-pressure fault
- High-temperature fault
- Low-water-level fault
- Low-flow fault
- Sensor-related abnormal conditions
- Safety-trip conditions
Example fault injection:
from simulation.boiler import BoilerSimulator boiler = BoilerSimulator() boiler.inject_fault("high_pressure") print(boiler.get_sensor_data())
The safety system detects the injected condition and transitions to the emergency state.
A critical abnormal condition causes the safety system to latch an emergency trip.
Example:
High Pressure
|
v
Safety Limit Exceeded
|
v
EMERGENCY
|
+----> Heater OFF
|
+----> Pump OFF
|
+----> Valve OPEN
|
+----> Alarm ON
|
v
TRIP LATCHED
The emergency state cannot be automatically cleared while unsafe process conditions remain.
A controlled reset is permitted only after the monitored process variables return to safe operating ranges.
Process data is continuously recorded during simulation.
data/process_data.csv
logs/alarms.csv
Logged information includes:
- Timestamp
- Simulation cycle
- Temperature
- Pressure
- Water level
- Flow
- Heater state
- Pump state
- Control-valve position
- Safety state
- Alarm information
Generated runtime data should not be committed to the repository unnecessarily.
The project includes a Streamlit dashboard located at:
app/dashboard.py
The dashboard displays:
- Temperature
- Pressure
- Water level
- Flow
- Heater status
- Feed-pump status
- Control-valve position
- Safety status
- Safety alarms
- Simulation cycle
- Real-time process trends
- Data logging information
BoilerSimulator
|
v
SafetySystem
|
v
BoilerController
|
+----------------+
| |
v v
Process State Actuator State
| |
+-------+--------+
|
v
Data Logging
|
v
Streamlit Dashboard
The Streamlit dashboard uses the Python boiler simulation, controller, and safety-system modules directly.
streamlit run app/dashboard.py
The dashboard normally becomes available at:
http://localhost:8501
Open Local Streamlit Dashboard
Publicly Hosted
The project also includes an ATmega328P-based embedded implementation.
sketch.ino
diagram.json
The embedded implementation demonstrates the transition from a Python-based process simulation toward a microcontroller-based monitoring and control system.
The embedded design can be extended to physical:
- Temperature sensors
- Pressure transmitters
- Water-level sensors
- Flow sensors
- 4–20 mA receiver circuits
- ADC signal-conditioning circuits
- Relay or MOSFET actuator drivers
- Heater/load representation
- Pump
- Solenoid/control valve
- LCD display
- Buzzer
- Emergency-stop circuitry
The ATmega328P implementation can be simulated using Wokwi.
The provided Wokwi URL opens an Arduino Uno project entry point. A saved Wokwi project URL containing the final boiler implementation can replace this link when the final Wokwi project is published.
The current Wokwi implementation and Streamlit dashboard are separate demonstrations.
Wokwi / ATmega328P
|
v
Embedded Control Implementation
and:
Python Boiler Simulator
|
v
Instrumentation
|
v
Controller + Safety System
|
v
Data Logger
|
v
Streamlit Dashboard
The current project does not claim a live serial connection between the Wokwi ATmega328P simulation and the Streamlit dashboard.
industrial-boiler-monitoring/
|
├── app/
│ └── dashboard.py
|
├── control/
│ ├── __init__.py
│ └── controller.py
|
├── data/
│ ├── boiler_training_dataset.csv
│ ├── generate_dataset.py
│ └── process_data.csv
|
├── fault_detection/
│ ├── __init__.py
│ └── anomaly_detector.py
|
├── instrumentation/
│ ├── __init__.py
│ ├── sensors.py
│ └── signal_processing.py
|
├── logs/
│ ├── boiler_data.csv
│ └── data_logger.py
|
├── models/
│ └── boiler_anomaly_model.pkl
|
├── safety/
│ ├── __init__.py
│ └── safety_system.py
|
├── simulation/
│ ├── __init__.py
│ └── boiler.py
|
├── tests/
│ ├── __init__.py
│ ├── test_end_to_end.py
│ ├── test_integration.py
│ └── test_system.py
|
├── diagram.json
├── requirements.txt
├── README.md
└── sketch.ino
- ATmega328P
- Simulated process sensors
- Wokwi
- Python
- C/C++ for embedded implementation
- Pandas
- Streamlit
- Plotly
- Scikit-learn
- Joblib
- Pytest
- Git
- GitHub
- Wokwi
- Python Virtual Environment
The project includes automated unit, integration, and end-to-end tests.
Tests cover:
- Boiler simulation
- Sensor behavior
- Instrumentation
- 4–20 mA signal processing
- Controller behavior
- Safety system
- Emergency trip
- Safety-trip latching
- Fault handling
- End-to-end operation
pytest -q
.......... [100%]
10 passed
The current automated test suite successfully passes all 10 tests.
The complete software control sequence is:
Boiler Process
|
v
Sensor Measurement
|
v
Instrumentation
|
v
4–20 mA Signal Processing
|
v
Safety Evaluation
|
+------> Emergency?
| |
| +---- YES ----> Safety Trip
| |
| +---- NO
|
v
Automatic Controller
|
v
Actuators
|
v
Boiler Process
|
v
Data Logger
|
v
Monitoring Dashboard
git clone https://github.com/yesajayyy/industrial-boiler-monitoring.git
cd industrial-boiler-monitoringpython3 -m venv venv
macOS/Linux:
source venv/bin/activatepip install -r requirements.txt
pytest -q
streamlit run app/dashboard.py
Open the displayed localhost address in a browser.
The project has been validated through:
- Automated software tests
- Unit testing
- Integration testing
- End-to-end control testing
- Safety-trip testing
- Fault-injection testing
- Safety reset testing
- ATmega328P simulation
- Wokwi embedded simulation
- Real-time dashboard execution
- Process-data logging
10 passed
This project demonstrates practical concepts from Electronics and Instrumentation Engineering, industrial automation, control systems, and embedded systems.
- Industrial process measurement
- Temperature measurement
- Pressure measurement
- Level measurement
- Flow measurement
- 4–20 mA transmitters
- Signal conditioning
- Engineering-unit conversion
- Automatic control
- Actuator control
- Heater control
- Pump control
- Control-valve operation
- Process feedback
- Safety interlocks
- Alarm generation
- Emergency shutdown
- Safety-trip latching
- Safe actuator states
- Controlled recovery
- Fault injection
- Abnormal-condition detection
- Sensor fault handling
- Anomaly detection
- ATmega328P
- Microcontroller programming
- Embedded control logic
- Wokwi simulation
- Hardware-oriented system design
- Modular Python architecture
- Automated testing
- Data logging
- Git version control
- GitHub repository management
- Real-time visualization
The simulation can be extended into a physical prototype using:
- ATmega328P development board
- Temperature sensor
- Pressure sensor/transmitter
- Water-level sensor
- Flow sensor
- 4–20 mA receiver circuits
- ADC signal conditioning
- Relay or MOSFET actuator drivers
- Heater/load representation
- Pump
- Solenoid/control valve
- LCD display
- Buzzer
- Emergency-stop circuit
For an actual industrial installation, appropriate certified safety hardware, electrical isolation, protection circuits, redundancy, and engineering validation would be required.
| Component | Status |
|---|---|
| Boiler Process Simulation | COMPLETE |
| Instrumentation | COMPLETE |
| 4–20 mA Signal Processing | COMPLETE |
| Automatic Control | COMPLETE |
| Safety System | COMPLETE |
| Fault Detection | COMPLETE |
| Data Logging | COMPLETE |
| ATmega328P Implementation | COMPLETE |
| Wokwi Simulation | COMPLETE |
| Streamlit Dashboard | COMPLETE |
| Automated Testing | COMPLETE |
| GitHub Integration | COMPLETE |
| System Architecture Documentation | COMPLETE |
| Live Public Dashboard | NOT DEPLOYED |
GitHub repository:
Industrial Boiler Monitoring, Control and Safety System
Guguloth Ajay
B.Tech — Electronics and Instrumentation Engineering
National Institute of Technology Nagaland