This project presents an IoT-enabled safety helmet designed to enhance worker safety in hazardous environments such as mines and industrial workplaces. The helmet integrates various sensors, communication modules, and real-time data monitoring and alert systems to provide comprehensive protection and proactive safety measures.
- Gas Detection: Detects harmful gases like methane and carbon monoxide using the MQ-2 sensor.
- Temperature Monitoring: Monitors ambient temperature using the DHT11 sensor.
- Fall Detection: Detects worker falls with the MPU6050 accelerometer and gyroscope.
- Light Adaptation: Adjusts visibility in low-light environments using an LDR sensor and headlamp.
- IoT Connectivity: Real-time data visualization and monitoring via ThingSpeak.
- Emergency Alerts: Sends SMS notifications using Twilio API during emergencies.
- Two-Way Communication (Planned): Enables direct voice communication via the SIM800H GPRS module..
- Microcontroller: ESP32
- Sensors: MQ-2, DHT11, MPU6050, LDR
- IoT Platform: ThingSpeak
- SMS Service: Twilio API
- Communication Module: SIM800H
- Programming: Arduino IDE, Embedded Systems
- Data Collection: Sensors continuously monitor environmental and worker conditions.
- Hazard Detection: Threshold-based detection for gas levels, temperature, light, and fall events.
- Real-Time Alerts: Visual (LEDs), auditory (buzzer), and remote (SMS via Twilio) notifications.
- Two-Way Communication: Facilitates direct voice calls for immediate assistance.
- Data Visualization: Real-time data uploaded to ThingSpeak for monitoring and analysis.
- Sensors: MQ-2 (gas), DHT11 (temperature), MPU6050 (fall), LDR (light).
- Modules: ESP32, SIM800H (GPRS).
- Additional components: LEDs, buzzer, fan, lithium-ion battery, and optional solar panel for power.
- Arduino IDE with the following libraries installed:
- Adafruit_MPU6050
- Adafruit_Sensor
- DHT Sensor Library
- PulseSensor Playground
- WiFi.h
- HTTPClient.h
- SoftwareSerial
- ThingSpeak API Key: For IoT data visualization.
- Twilio Credentials: For sending SMS notifications.
- Clone the repository:
git clone https://github.com/yourusername/miners-safety-helmet.git
- Open
helmet_code.ino
in the Arduino IDE. - Update the following placeholders in the code:
*Wi-Fi credentials (
ssid
,password
) *ThingSpeak API key (thingSpeakAPIKey
) *Twilio credentials (accountSID
,authToken
,twilioNumber
,recipientNumber
). - Upload the code to your ESP32.
- Assemble the hardware components and power on the helmet.
- Real-Time Monitoring: View sensor data on the ThingSpeak dashboard.
- Emergency Alerts: Test hazard detection features to trigger SMS notifications via Twilio.
- Two-Way Communication: Test voice calls using the SIM800H module.
The complete source code for the project is located in the src/helmet_code.ino
file. Click here to view the code.
Contributions are welcome! If you'd like to improve this project, feel free to fork the repository, make your changes, and submit a pull request. For major changes, please open an issue to discuss what you would like to change.
This project is licensed under the MIT License.
Special thanks to the team:
- Nihar Singla Contact via email
- Team Members: Piyush Garg, Manan Khandelwal, Bhavesh Choudhary, Divyanshu Bansal
- Mentor: Dr. Sandeep Contact via email