Skip to the content
2 layers150.5 × 94 mmRx module, the printed circuit board in 3D

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

Size
150.5 × 94 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
65
Pads
180
Tracks, vias
305, 22
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 May 2026
Updated
7 May 2026

Overview

Rx 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 150.5 × 94 mm with 30 parts on 65 nets, routed with 305 tracks and 22 vias.

It is built around the ESP32-WROOM-32, MT3608 and PCF8584T, with the AMS1117-3.3, TP4056-42-ESOP8 and BC547 among its other parts. Its parts include 7 resistors, 5 ICs, 4 diodes, 2 capacitors and 2 switches. It belongs with the ESP32 boards of this library.

Main components

6

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

30
QtyValueFootprintReferences
7RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7
3LEDLED_THT:LED_D5.0mmD1, D2, D4
2CCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1BC547Package_TO_SOT_THT:TO-92_InlineQ1
1BatteryConnector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalBT2
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1D_SchottkyDiode_SMD:D_SMAD3
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U1
1HY1602EDisplay:HY1602EDS1
1LInductor_THT:L_Radial_D7.8mm_P5.00mm_Fastron_07HCPL1
1MT3608Package_TO_SOT_SMD:SOT-23-6U7
1PCF8584Package_DIP:DIP-20_W7.62mmU4
1R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3386P_VerticalRV1
1TP4056-42-ESOP8Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalViasU2

The 26 most common of 30 parts.

More from koushik12328/Smart_mining_helmet

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

    Tx module

    koushik12328/Smart_mining_helmet

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

    27 partsMIT

Similar boards

  • 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 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 layers140 × 140 mmMc68k sbc, the printed circuit board in 3D

    Mc68k sbc

    lokuciejewski/mc68k_unicorn

    This SBC was created with one goal in mind - to run UNIX or UNIX-like OS on it. In order to achieve this, the Motorola 68010 had to be chosen since it's the first mc68k family member to support virtual memory (at least…

    88 partsMIT
  • 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
  • 2 layers49.4 × 95.7 mmPhysiowand, the printed circuit board in 3D

    Physiowand

    1tsMS/Physiowand

    91 parts
  • 2 layers61 × 61 mmESP32 FC, the printed circuit board in 3D

    ESP32 FC

    MAATHES-THILAK-K/ESP32-S3_FLIGHT_CONTROLLER

    A custom-designed flight controller based on the ESP32-S3 module, built for compatibility with the esp-fc firmware and Betaflight-like configuration.

    69 parts7Apache-2.0
  • 4 layers45.3 × 40.1 mmESP32-Modular Board, the printed circuit board in 3D

    ESP32-Modular Board

    bgb-0/TUe-CBL-Circular-Electronics

    A simple and compact bluetooth audio PCB for the TU/e Multidiscplinary CBL track "Circular Electronics"

    64 parts2CERN-OHL-P-2.0

Questions

How big is the Rx module PCB?

It measures 150.5 × 94 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rx module use?

30 parts, built around the ESP32-WROOM-32, MT3608, PCF8584T and AMS1117-3.3. 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 Rx 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/rx_module1/rx_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 Rx 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).