Smart Safety Device

SMART HELMET

Next Generation Industrial Safety Technology

Protect workers with real-time gas detection, smart alerts, and automatic emergency response — all inside one intelligent wearable device.

6+ Smart Sensors
24/7 Live Monitoring
IoT Wireless Connected
Gas Detection Smart Alerts ESP32 MQTT Emergency Response
⚡ Instant Alerts
📡 IoT Connected
🧪 Gas Detection
🌀 Fan Control
⛑️
SMART HELMET
Industrial Smart Safety Product
SCROLL TO DISCOVER THE DEVICE

Live System Demonstration

Real-time demonstration of the Smart Helmet prototype, gas detection workflow, OLED display, and automatic fan response.

● LIVE PROTOTYPE DEMO

Project Overview

The Smart Helmet is a wearable IoT safety system that continuously monitors air quality around workers. It detects harmful gases, displays live readings, alerts the worker, and sends real-time data to a monitoring dashboard.

⛑️

Wearable Safety Device

The system is built into a helmet so workers can carry protection with them while moving inside industrial areas such as factories, gas stations, and oil environments.

📡

IoT Monitoring

Sensor readings are processed by the ESP32 and sent through Wi-Fi using MQTT, allowing supervisors to monitor safety conditions remotely.

🌀

Automatic Response

When dangerous gas levels are detected, the system activates a stronger alarm and automatically turns on a fan through a relay-based motor system.

Problem Statement

Gas leaks in industrial environments are dangerous because harmful gases are not always monitored continuously. This can cause health risks, fire hazards, equipment damage, and financial losses.

⚠️

Industrial Risk

Workers may be exposed to gases that are colorless, odorless, or difficult to detect manually. Without early warning, a small leak can become a serious emergency.

💡

Project Solution

The proposed solution is a smart helmet that continuously checks air quality, classifies the environment into SAFE, WARNING, and DANGER states, and provides immediate alerts.

Problem & Objectives

The project combines hardware, software, and IoT communication to create a practical safety system for real-time gas monitoring.

🛡️

Improve Worker Safety

Provide early warnings when gas levels rise and help workers react before the environment becomes highly dangerous.

📊

Real-Time Readings

Display sensor values on both the OLED screen and dashboard for continuous monitoring without manual checking.

🌐

Remote Supervision

Send gas readings through Wi-Fi and MQTT so supervisors can monitor the helmet from a dashboard interface.

🚨

Automated Alerts

Use a buzzer and warning states to alert the worker when gas levels exceed predefined thresholds.

🌀

Emergency Fan Control

Automatically activate a motor fan in DANGER mode to help reduce gas concentration around the worker.

🧪

System Testing

Test the helmet, motor, server, and dashboard under different scenarios to verify system performance.

System Architecture

The system contains two main circuits: the helmet circuit for sensing and alerts, and the motor-fan circuit for emergency ventilation. The server connects the devices to the dashboard through MQTT and WebSocket communication.

🧪

Gas Sensors

MQ2, MQ9, MQ136, MQ137, CO₂, and O₂ sensors collect air-quality readings.

⚙️

ESP32 Helmet

Processes readings, checks thresholds, controls OLED and buzzer alerts.

📡

MQTT Broker

Mosquitto receives sensor data and sends fan control commands.

🖥️

Dashboard

Displays real-time sensor readings, system status, and multiple helmets.

🌀

Motor Fan

ESP32 and relay module activate the fan automatically in DANGER mode.

System Implementation

The project was implemented using hardware circuits, embedded software, server configuration, and a web dashboard for live monitoring.

⛑️

Helmet Implementation

The helmet includes gas sensors, an ESP32, OLED display, buzzer, USB-C PD power module, voltage dividers, capacitor, and switch. It reads air-quality data and reacts based on the safety state.

🌀

Motor Implementation

The fan system uses a second ESP32, relay module, DC motor, battery pack, and diode. It receives MQTT commands and turns on when a DANGER condition is detected.

🖥️

Server Implementation

An Ubuntu server VM was configured with Mosquitto MQTT broker, WebSocket support, user authentication, ACL permissions, and a Python HTTP service to host the dashboard.

💻

Software Implementation

The embedded code was written in Arduino IDE using C++. The dashboard was created using HTML, CSS, and JavaScript with real-time MQTT/WebSocket updates.

Actual Prototype

A real photo of the prototype during presentation, showing the Smart Helmet circuit mounted on the helmet as a wearable safety system.

Actual Smart Helmet Prototype

Helmet Prototype Implementation

This section shows the final prototype after mounting the controller and sensors on the helmet to demonstrate the system practically.

Real-Time Monitoring Dashboard

This dashboard simulation shows how sensor values are displayed in real time. In the actual system, readings are received from the ESP32 through MQTT and WebSocket communication.

MQ2 Sensor 0%
MQ9 Sensor 0%
CO₂ Sensor 0%
O₂ Sensor 0%
SAFE MODE — All systems operating normally.

System Safety States

The helmet automatically classifies the environment into three safety levels based on sensor readings and predefined thresholds.

🟢

SAFE MODE

Gas readings are within normal limits. Sensor values are shown on the OLED screen and dashboard while the system continues monitoring.

🟡

WARNING MODE

Gas levels start increasing. The buzzer turns on to alert the worker that the environment may become unsafe.

🔴

DANGER MODE

Gas levels exceed danger thresholds. The system activates a stronger alarm and automatically turns on the ventilation fan.

ARCHITECTURE

System Design

A clean visual representation of the Smart Helmet logic and the automatic fan control workflow.

⛑️

Smart Helmet System Flowchart

ESP32 sensing, alerts, OLED display, and MQTT data flow

START
⚙️ Initialize SystemOLED, Sensors, Buzzer, Wi‑Fi, MQTT
📡 Read SensorsMQ2 · MQ9 · MQ136 · MQ137 · CO₂ · O₂
📊 Check ThresholdsGas & CO₂ Levels
⚠️ DANGERHigh Alarm
Update OLED
🔔 WARNINGMid Beep
Update OLED
🛡️ SAFENo Alarm
Update OLED
Wi‑Fi Connected?
NO → Skip SendingYES ↓
MQTT Connected?
NO → Continue SystemYES ↓
☁️ Send Data via MQTTcorp/helmet_001/readings
↻ Wait 800 ms & Repeat Loop
🌀

ESP32 Fan Control Flowchart

Wi‑Fi, MQTT subscription, fan command, and system loop

START
📶 Connect to Wi‑Fi
NO → Retry Wi‑Fi / Blink LEDYES ↓
☁️ Connect to MQTT Broker
NO → Retry MQTTYES ↓
📋 Subscribe to Topiccorp/fan
💬 Receive Message from MQTT
Message = “ON”?
YESTurn Fan ON
NOTurn Fan OFF
💡 LED ON — System Alive
↻ Repeat
IMPLEMENTATION

Actual Hardware Implementation

Real components used in the Smart Helmet system and the fan-control circuit.

Complete Smart Helmet Prototype

Full hardware setup showing the sensing unit, ESP32 controller, power system, relay module, and the active fan response used during system testing.

Sensor & Control Circuit

Close-up view of the gas-sensor circuit, ESP32 processing unit, buzzer, battery power, and fan-control electronics integrated into the prototype.

📡

Real-Time Sensing

Continuous environmental monitoring.

☁️

Cloud/Server

Readings sent for live monitoring.

🚨

Smart Alerts

Buzzer response during unsafe levels.

🌀

Fan Control

Automatic ventilation in danger mode.

🛡️

Safety First

Designed to protect workers.

Testing & Results

The system was tested through hardware, software, dashboard, and full-system scenarios to verify that all components work together correctly.

⛑️

Helmet Testing

The helmet circuit was tested through power-on, OLED loading, sensor warm-up, server communication, and gas detection scenarios.

🌀

Motor Testing

The motor circuit was tested with power supply, relay control, Wi-Fi connection, and remote fan activation.

📊

Dashboard Testing

The dashboard was tested in SAFE, WARNING, and DANGER modes with real-time visualization and fan control.

🌐

Server Testing

The server was tested through WebSocket connection states, MQTT broker operation, and Ubuntu VM access.

Full System Result

The complete system successfully detected gas, updated the dashboard, triggered alerts, and activated the fan during dangerous conditions.

Future Work

Although the system achieved its main goal of gas monitoring, alerting, and automatic response, the Smart Helmet can be improved in the future with more advanced features to increase safety and reliability in industrial environments.

📍

GPS Location Tracking

Add GPS to identify the worker’s location during dangerous situations, helping supervisors respond faster and locate the affected worker inside the industrial site.

📱

Mobile Application

Develop a mobile application that displays sensor readings, alerts, and helmet status in real time, allowing workers and supervisors to monitor the system easily.

🤖

AI-Based Prediction

Use artificial intelligence to analyze sensor readings and predict dangerous conditions before gas levels reach a critical stage.

🔋

Battery Optimization

Improve power consumption and add a more efficient battery so the helmet can operate for longer periods during continuous use in work environments.

Project Team

University of Bahrain — College of Information Technology — Department of Computer Engineering

Maiy Adnan Mubarak Alatawi

Senior Project Student

Alanood Sulaiman Alrukaibat

Senior Project Student

Hessa Talal Mohammed

Senior Project Student

Supervisor

Dr. Alaudeen Yousif Alomari