Skip to the content
2 layers85.1 × 65.4 mmTx module, the printed circuit board in 3D

An ESP32-powered safety helmet featuring gas detection, impact sensing, and IoT connectivity

Size
85.1 × 65.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
53
Pads
157
Tracks, vias
321, 44
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 May 2026
Updated
7 May 2026

Overview

Tx module is an open-source printed circuit board by koushik12328, from the koushik12328/Smart_mining_helmet repository on GitHub, published under the MIT licence. It is a 2-layer board of 85.1 × 65.4 mm with 27 parts on 53 nets, routed with 321 tracks and 44 vias.

It is built around the ESP32-WROOM-32, BMP280 and DHT11, with the MQ-2, MQ-4 and MT3608 among its other parts. Its parts include 9 ICs, 8 resistors, 4 diodes, 2 switches and 1 transistor. It belongs with the ESP32 boards of this library.

Main components

9

README

README.md

Smart Mining Helmet for Real Time Hazard Detection

Developed by: Ch Koushik | MGIT ECE


1. Aim

To design and develop a decentralized, infrastructure-less safety system for underground mining that utilizes Machine-to-Machine (M2M) communication to provide real-time environmental monitoring and instant hazard alerts without relying on Wi-Fi or cellular networks.

2. Abstract

Underground mining environments present a unique challenge for safety communication due to signal attenuation through rock strata and the high cost of network infrastructure. This project proposes a Smart Mining Helmet that functions as an autonomous node. By leveraging the ESP-NOW protocol, the helmet (Transmitter) communicates directly with a base station (Receiver) via hardware MAC addresses.

The system integrates a multi-sensor array—including Methane (MQ-4), smoke (MQ-2), air quality (MQ-135), and environmental sensors (DHT11, BMP180)—to monitor for life-threatening conditions. Hardware design was executed in KiCad for optimized signal integrity, while the software architecture employs a non-blocking state machine with digital filtering to ensure data reliability. Results demonstrate ultra-low latency (<10ms) and robust connectivity, proving the system's efficacy for real-time industrial safety applications.


3. Components Required

A. Smart Helmet (Transmitter Module)

  • ESP32 DevKit V1: Core microcontroller utilizing the ESP-NOW protocol for data broadcast.
  • MQ-4 Sensor: Dedicated for Methane (CH4) gas detection.
  • MQ-2 Sensor: Detects Smoke, LPG, and Carbon Monoxide.
  • MQ-135 Sensor: Monitors general Air Quality (NH3, Benzene, etc.).
  • DHT11: Provides Temperature and Humidity data.
  • BMP180: High-precision sensor for Barometric Pressure and Altitude monitoring.
  • Status LEDs: Local indicators for power and transmission verification.
  • Custom Transmitter PCB: Designed in KiCad with a compact form factor for helmet mounting.

B. Base Station / Node (Receiver Module)

  • ESP32 DevKit V1: Configured to listen for specific MAC addresses and process incoming data packets.
  • 16x2 LCD with I2C Module: Displays real-time sensor telemetry from the helmet.
  • Active Buzzer (5V): Sounds a high-decibel alarm when sensor thresholds are breached.
  • Visual Alarm LED: High-intensity LED for immediate hazard recognition.
  • Custom Receiver PCB: Designed in KiCad with an integrated I2C header and centralized power distribution.

4. Procedure

A. Hardware Analysis

The hardware design focuses on Signal Integrity and Power Management.

  • Sensing Layer: The gas sensors (MQ series) are analog; their output is fed into the ESP32’s 12-bit ADC. I implemented a common ground plane in KiCad to reduce noise during high-frequency Wi-Fi bursts.
  • PCB Strategy: The Transmitter PCB is designed for a compact footprint to fit the helmet. The Receiver PCB utilizes the I2C protocol via the PCF8574 expander, which allowed me to reduce the LCD wiring from 10+ pins down to just 2 (SDA/SCL), simplifying the routing significantly.
  • Power Logic: Because the MQ sensors have internal heaters that pull high current (~800mA peak), I ensured the power traces on the PCB were wide enough to prevent voltage drops that could crash the ESP32.

B. Software Analysis

The software is the "intelligence" of the system, acting as a non-blocking state machine.

  • M2M Protocol (ESP-NOW): Unlike standard Wi-Fi, the firmware bypasses the router. I hardcoded the Receiver's hardware MAC address into the Transmitter’s peer list. This allows for near-instant "Power-On-to-Data" transmission.
  • Data Structuring: I defined a custom struct to package sensor values. This ensures that the Receiver interprets the incoming raw bytes correctly every time.
  • Signal Processing: To handle the inherent "jitter" of analog gas sensors, I implemented a Moving Average Filter in the C++ code. This smooths out the readings before they are sent over the air.
  • Callback & ACK: The software uses the OnDataSent callback. If the Receiver is out of range, the code detects the lack of an Acknowledgement (ACK) and triggers a "Link Fail" state without stopping the sensor polling loop.

5. Implementation

  1. PCB Fabrication: The KiCad layouts were exported to Gerbers for fabrication.
  2. Firmware Upload: The TX module was flashed with the sensor-gathering and ESP-NOW broadcast code. The RX module was flashed with the display and alert logic.
  3. M2M Pairing: MAC addresses were verified and hardcoded for a dedicated point-to-point link.

6. Observations

  • Latency: The "Sensor-to-Alert" delay was measured at approximately 10ms, significantly faster than any Cloud-based IoT setup.
  • I2C Efficiency: The I2C bus remained stable at 100kHz, providing clean data updates to the LCD every 500ms.
  • Range: The ESP-NOW link remained robust even through moderate industrial interference, reaching up to 50 meters in non-line-of-sight conditions.

7. Results

  • Successful M2M Link: Established a permanent MAC-to-MAC connection that requires zero external network infrastructure.
  • Hazard Response: The system successfully triggered the buzzer within milliseconds of exposing the MQ-4 sensor to a methane-simulated environment.
  • Data Accuracy: The moving average filter effectively removed ADC noise, providing stable, reliable PPM readings on the LCD.

8. Conclusion

The project proves that for high-risk environments like mines, Machine-to-Machine (M2M) communication is far superior to standard IoT. By combining custom KiCad hardware with a lean, non-blocking software stack, I created a safety system that is faster, more reliable, and completely independent of the internet.


Department of Electronics and Communication Engineering | MGIT, Hyderabad

Parts

27
QtyValueFootprintReferences
8RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7, R8
3LEDLED_THT:LED_D5.0mmD1, D2, D4
2SW_PushInductor_SMD:L_APV_ANR5012SW1, SW2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1BC547Package_TO_SOT_THT:TO-92_InlineQ1
1BMP280Package_LGA:Bosch_LGA-8_2x2.5mm_P0.65mm_ClockwisePinNumberingU5
1BatteryConnector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalBT2
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1DHT11Sensor:Aosong_DHT11_5.5x12.0_P2.54mmU6
1D_SchottkyDiode_SMD:D_SMAD3
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U1
1LInductor_THT:L_Radial_D7.8mm_P5.00mm_Fastron_07HCPL1
1MQ-135Sensor:MQ-6U8
1MQ-2Sensor:MQ-6U4
1MQ-4Sensor:MQ-6U9
1MT3608Package_TO_SOT_SMD:SOT-23-6U7
1TP4056-42-ESOP8Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalViasU2

More from koushik12328/Smart_mining_helmet

1
  • 2 layers150.5 × 94 mmRx module, the printed circuit board in 3D

    Rx module

    koushik12328/Smart_mining_helmet

    An ESP32-powered safety helmet featuring gas detection, impact sensing, and IoT connectivity

    30 partsMIT

Similar boards

  • 2 layers80 × 60 mmHelmeto, the printed circuit board in 3D

    Helmeto

    irfan5122/Helmeto

    A mobile application for fireforce helemt

    26 parts
  • 4 layers26 × 19.1 mmCanSat, the printed circuit board in 3D

    CanSat

    TanujRai14/Sat_pcb_design

    This repository contains the PCB design files and documentation for a Can Satellite, featuring multiple environmental and orientation sensors, power management, and wireless communication capabilities.

    35 partsCERN-OHL-S-2.0
  • 2 layersUnplugged, the printed circuit board in 3D

    Unplugged

    Kalash4152/smart-dustbin-round-two

    Designed and simulated a Smart Dustbin & Smart Traffic Lights system using Arduino, ESP32, and sensors at DJSCE Unplugged 2.0.

    24 parts1
  • 4 layers41 × 90.2 mmAeropod2, the printed circuit board in 3D

    Aeropod2

    eyendamuri/aeropod

    An esp32 based mp3 player with the ability to play video too.

    67 parts
  • 2 layers45.5 × 57 mmSanjeevni PCB, the printed circuit board in 3D

    Sanjeevni PCB

    Sahil073/SIH_GLAH10_BrajCoders

    This directory contains the schematic design, printed circuit board (PCB) layout, 3D renderings, and manufacturing guidelines for the Sanjeevni wearable hardware prototype, designed using KiCad.

    37 parts
  • 2 layers100.1 × 101.9 mmMISA ESP32 V2, the printed circuit board in 3D

    MISA ESP32 V2

    AgustinPrietoValdez/competition-robots

    Custom competition robots — maze/micromouse (MISA), sumo (TATAMI 1) & mini-sumo (RUCHO). KiCad PCBs, STM32/Arduino firmware, Fusion 360. National champion & international prizes — by EDNAROBOTICS.

    40 partsMIT
  • 2 layers87.9 × 71.4 mmMeteostation, the printed circuit board in 3D

    Meteostation

    aleksul/WeatherStation

    If you want a customizable solution for monitoring weather in your town, you're in the right place!

    175 partsMIT

Questions

How big is the Tx module PCB?

It measures 85.1 × 65.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Tx module use?

27 parts, built around the ESP32-WROOM-32, BMP280, DHT11 and MQ-2. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Tx module KiCad files?

From the koushik12328/Smart_mining_helmet repository on GitHub, at the commit this page was made from: the board is smart helmet/tx_module1/tx_module.kicad_pcb and its schematic smart helmet/rx_module1/rx_module.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Tx module design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).