
Miners Safety Helmet
edgeggrr/Miners-Safety-Helmet
An IoT-based wearable safety helmet designed to enhance underground miner safety through multi-sensor hazard detection, real-time audio-visual alerts, and cloud telemetry via ThingSpeak.

A robot companion that follows you!
Philo- main is an open-source printed circuit board by dish-glitch, from the dish-glitch/Philobot repository on GitHub. It is a 2-layer board of 116 × 116 mm with 66 parts on 58 nets, routed with 761 tracks and 132 vias.
It is built around the ESP32-WROOM-32, AMS1117-3.3 and MPU-6050. Its parts include 18 capacitors, 14 resistors, 14 connectors, 5 ICs and 2 switches. It belongs with the robots and motor control boards and the ESP32 boards of this library.
A 4-wheeled ground robot that locks onto a person using real-time YOLOv8 pose detection and follows them across a room. Raise your hand and it stops. Lower it and it follows again.
Coming soon — Fusion 360 render in progress
A Raspberry Pi 5 runs YOLOv8 pose estimation on a live camera feed, detects the nearest person in frame, and continuously streams direction and speed commands to an ESP32 over UART. The ESP32 runs closed-loop PID speed control on four DC motors via dual H-bridge drivers. Three ultrasonic sensors on the front of the chassis act as an independent safety layer — if an obstacle is detected under 25cm, the ESP32 overrides the Pi command and stops regardless of what the vision stack says.
Gesture control: YOLOv8 tracks 17 body keypoints per person. When either wrist keypoint rises above the shoulder keypoint in frame coordinates, the Pi switches to STOP mode and holds it for 5 consecutive frames before acting — this debounces the detection and prevents flickering. Lowering the hand for 5 consecutive frames resumes following. Stop gesture confirmed working in testing.
Sign language recognition: The camera detects ASL hand signs in real time using MediaPipe hand landmarks and a trained classifier. Recognized letters are sent over UART to the ESP32 and displayed live on the onboard OLED (bench-tested on the Arduino stand-in; the ESP32 ASL handler is implemented and awaiting PCB bring-up). Initial testing on Pi 5 shows strong results for most letters — broader testing across different hands, lighting, and environments is still in progress.
Obstacle avoidance: Three HC-SR04 ultrasonic sensors (front-left at -30 degrees, front-center, front-right at +30 degrees) feed into a priority layer in ESP32 firmware. The Pi handles direction. The ESP32 handles not hitting things. These are separate concerns and intentionally kept that way.
+--------------------------------------------------+
| Raspberry Pi 5 |
| |
| Camera -> YOLOv8n-pose -> keypoint extraction |
| | |
| Person bounding box offset |
| Wrist vs. shoulder Y position |
| | |
| State machine (FOLLOWING / WAITING) |
| | |
| Serial command -> UART TX |
+---------------+----------------------------------+
| 115200 baud UART
| Format: CMD <left> <right> <flags> (-255..255)
v
+--------------------------------------------------+
| ESP32-WROOM-32 |
| |
| UART RX -> parse command |
| | |
| Ultrasonic check (priority override) |
| | |
| PID speed control per motor side |
| PWM via LEDC peripheral at 20kHz |Latency budget (targets):
| Stage | Target |
|---|---|
| Camera capture | ~5ms |
| YOLOv8n-pose inference (imgsz=320) | ~70ms |
| Serial transmission | ~1ms |
| ESP32 motor response | ~5ms |
| Total loop | ~80ms (~12 Hz) |
12 Hz is sufficient for following a walking person. A running person would expose the lag — but that is not the use case.
Why UART and not I2C or SPI: UART is asynchronous and trivially debuggable with a serial monitor. I2C requires the ESP32 to act as master which complicates the Pi-side code. SPI is faster than needed. UART at 115200 baud moves our 20-byte command packets in under 2ms. It is the right tool for this interface.
Why TB6612FNG and not L298N: The L298N drops ~2V across its internal transistors at 1A, wasting power as heat and requiring a heatsink. The TB6612FNG is a MOSFET H-bridge — nearly zero voltage drop, no heatsink needed, physically smaller. It is the correct motor driver for battery-powered mobile robots.
Why YOLOv8n-pose and not separate detection and pose models: One model pass gives you person detection and 17 keypoints simultaneously. Running two models would double inference time and add synchronization complexity. The nano pose model is marginally slower than nano detect-only and eliminates the entire second pipeline.
Prices are estimates. Amazon prices fluctuate — verify before ordering. Order DigiKey parts together to share one flat shipping fee (~$8).
| Component | Purpose | Qty | Est. Price | Where |
|---|---|---|---|---|
| ESP32-WROOM-32 | Main MCU | 1 | ~$5 | Amazon |
| TB6612FNG Dual H-Bridge (bare IC, SSOP-24) | Motor driver (2 motors each) | 2 | ~$2 ea | DigiKey |
| MPU-6050 IMU | Tilt detection, auto-stop on tip-over | 1 | ~$2 | Amazon |
| JGA25-370 Gear Motors w/ Encoders (6V 200RPM) | Drive wheels | 4 | ~$8 ea | AliExpress |
| 80mm Rubber Wheels | Traction | 4 | ~$3 ea | AliExpress |
| HC-SR04 Ultrasonic Sensors | Obstacle detection | 3 | ~$1 ea | Amazon |
| SSD1306 OLED 0.96" I2C | Eyes + ASL display on mast | 2 | ~$4 ea | Amazon |
| 2S LiPo 2200mAh | Main battery | 1 | ~$14 | Amazon / HobbyKing |
| 2S LiPo Balance Charger | Charging | 1 | ~$10 | Amazon |
| Raspberry Pi 5 (4GB) | Vision compute | 1 | on hand | From friend — with active cooler |
| Raspberry Pi Camera Module 3 | 12MP, autofocus | 1 | on hand | Attached, confirmed working |
| AMS1117-3.3 LDO | 3.3V rail for ESP32 logic | 1 | ~$1 | DigiKey |
| Pololu D24V50F5 Buck (5V 5A) | 5V rail for Raspberry Pi | 1 | ~$30 | Pololu |
| Littelfuse RGEF700 Polyfuse 7A | Battery overcurrent protection | 1 | ~$2 | DigiKey |
| AOD4185 P-channel MOSFET | Reverse polarity protection | 1 | ~$1 | DigiKey |
| Status LED (any 5mm) | Boot/status indicator | 1 | ~$1 | Amazon |
| Tactile switches 6mm THT | Reset + Boot buttons | 2 | ~$1 | Amazon |
| SMD Resistors 0603 assortment | Pull-ups, current limiting | — | ~$9 | Amazon |
| SMD Capacitors 0603/0805 assortment | HF decoupling bypass caps | — | ~$10 | Amazon |
| Electrolytic caps (1000µF 16V + 2×470µF 16V + 100µF 16V) | Bulk decoupling — order separately, not in SMD assortment | — | ~$5 | DigiKey |
| XT30 Connector Pair | Battery connector | 1 | ~$2 | Amazon |
| 2.54mm Pin Headers | Sensor and UART connectors | — | ~$6 | Amazon |
| CP2102 USB-UART Programmer | Flash ESP32 firmware | 1 | ~$7 | Amazon |
| Custom PCB — JLCPCB (5 boards) | From Gerbers | 1 run | ~$25 | JLCPCB |
| PETG-CF Filament | Chassis | — | $0 | On hand |
| M2.5 / M3 Standoffs + Screws | Mounting hardware | — | ~$8 | Amazon |
| Total | ~$215 |
Philo/
├── hardware/
│ └── kicad/
│ ├── Philo.kicad_sch # Schematic (ESP32, motors, power, sensors)
│ ├── Philo- main.kicad_pcb # PCB layout — 116×116mm 2-layer, 4x M3 mounting holes
│ └── gerbers/ # Production files ready for JLCPCB
│ ├── *.gtl / *.gbl # Front / back copper
│ ├── *.gts / *.gbs # Solder mask
│ ├── *.gto / *.gbo # Silkscreen
│ ├── *.gm1 # Board outline
│ └── *.drl # Drill files
├── firmware/
│ ├── esp32/
│ │ ├── platformio.ini # PlatformIO config (espressif32 6.9.0)
│ │ └── src/
│ │ ├── main.cpp # Entry point — 10 Hz sensor + Pi loop
│ │ ├── pins.h # All GPIO assignments (verified from netlist)
│ │ ├── motors.h / .cpp # TB6612FNG H-bridge control (PWM via LEDC)
│ │ ├── encoders.h / .cpp # Interrupt-based wheel encoder counting
│ │ ├── ultrasonic.h / .cpp # HC-SR04 distance (L / C / R)
│ │ ├── imu.h / .cpp # MPU-6050 over I²C (accel + gyro)
│ │ ├── display.h / .cpp # SSD1306 OLED status display
│ │ └── pi_comm.h / .cpp # UART text protocol to Raspberry Pi
│ ├── arduino/ # Uno bench-test sketches (ESP32 stand-in)| Date | Milestone |
|---|---|
| June 16, 2026 | Project started. Repository initialized. Team of 4 assembled. |
| June 17, 2026 | KiCad schematic started — ESP32, motor drivers, power block |
| June 21, 2026 | PCB schematic complete, ERC clean |
| June 21, 2026 | PCB layout complete, DRC clean, Gerbers exported |
| June 22, 2026 | ESP32 firmware skeleton complete — all modules compile (motors, encoders, ultrasonic, IMU, OLED, Pi UART) |
| June 22, 2026 | Gesture stop function confirmed working (tested on Arduino) |
| June 22, 2026 | Sign language recognition working for subset of letters — OLED display output confirmed |
| June 22, 2026 | Chassis design started in Fusion 360 |
| June 28, 2026 | Upgraded to Raspberry Pi 5 with active cooler — camera confirmed working |
| June 28, 2026 | YOLOv8n-pose running live on Pi 5 — person following confirmed |
| June 28, 2026 | ASL sign recognition working well for most letters in initial testing — broader validation ongoing |
| — | PCB ordered from JLCPCB |
| — | Chassis v1 printed in PETG-CF |
| — | PCB arrived, soldered, power-on test passed |
| — | Basic motor spin confirmed over serial |
| — | First person following on robot hardware |
| — | Gesture control working on robot |
| — | Obstacle avoidance tuned |
| — | Demo video filmed |
| Aug 17, 2026 | School starts — project complete |
| Person | Role |
|---|---|
| @dish-glitch | PCB design (KiCad) + ESP32 firmware |
| @sivathamizhan & @dish-glitch | Raspberry Pi vision stack — YOLOv8, gesture detection, serial comms |
| @hummos430 | Chassis design in Fusion 360 + 3D printing in PETG-CF |
| @dish-glitch, @hummos430, @sivathamizhan | Mechanical assembly + integration testing |
We used Claude (Anthropic) as a reference tool during this project and are disclosing it openly. We had no robotics program, no teacher, and no mentor. AI filled the role a textbook or more experienced teammate would have filled if we'd had access to one.
Where Claude helped:
pins_arduino.h not found) caused by a version conflict between espressif32@6.9.0 and 7.0.1What the team built and owns:
We are happy to answer questions about any part of this project. We have used AI to help build it, but we understand everything we built. If AI helped create any line of code or suggested a part that seemed better, we did the research to understand what that part or code does and why — before it went into the project. The reference robots, papers, and datasheets we used to back up those decisions are collected in docs/RESEARCH.md.
MIT — use, modify, share freely. See LICENSE.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 9 | 100nF | Capacitor_SMD:C_0603_1608Metric | C2, C3, C18, C20, C21, C25, C26, C28, C31 |
| 6 | TestPoint | TestPoint:TestPoint_Pad_D1.5mm | TP1, TP2, TP3, TP4, TP5, TP6 |
| 3 | 10k | Resistor_SMD:R_0603_1608Metric | R5, R10, R12 |
| 3 | 10uF | Capacitor_SMD:C_0805_2012Metric | C17, C19, C32 |
| 3 | 1K | Resistor_SMD:R_0603_1608Metric | R1, R3, R8 |
| 3 | 2K | Resistor_SMD:R_0603_1608Metric | R2, R7, R9 |
| 2 | 4.7k | Resistor_SMD:R_0603_1608Metric | R13, R14 |
| 2 | 470uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C27, C29 |
| 2 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2 |
| 2 | TB6612FNG | Package_SO:SSOP-24_5.3x8.2mm_P0.65mm | U6, U7 |
| 1 | 100 | Resistor_SMD:R_0603_1608Metric | R11 |
| 1 | 1000uF | Capacitor_THT:CP_Radial_D12.5mm_P5.00mm | C22 |
| 1 | 1uF | Capacitor_SMD:C_0603_1608Metric | C30 |
| 1 | 3.3k | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U5 |
| 1 | C 10uF | Capacitor_SMD:C_0805_2012Metric | C23 |
| 1 | C_Polarized 100uF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C24 |
| 1 | Conn_01x02 | Connector_AMASS:AMASS_XT30PW-F_1x02_P2.50mm_Horizontal | J7 |
| 1 | Conn_01x04 Center | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | Conn_01x04 Left | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2 |
| 1 | Conn_01x04 right | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | Conn_01x05 | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J8 |
| 1 | ENC_L | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J13 |
| 1 | ENC_R | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J14 |
| 1 | ESP32-WROOM-32 | RF_Module:ESP32-WROOM-32 | U8 |
| 1 | J_MAST | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J4 |
| 1 | J_ML_F | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J9 |
| 1 | J_ML_R | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J11 |
| 1 | J_MR_F | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J10 |
| 1 | J_MR_R | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J12 |
| 1 | J_PI_PWR | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J5 |
| 1 | J_UART | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |
| 1 | LED | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | MPU-6050 | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | U1 |
| 1 | Polyfuse 7A | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | F2 |
| 1 | Q_PMOS_GDS | Package_TO_SOT_SMD:TO-252-3_TabPin2 | Q2 |
| 1 | R 10k | Resistor_SMD:R_0603_1608Metric | R4 |
The 62 most common of 66 parts.

edgeggrr/Miners-Safety-Helmet
An IoT-based wearable safety helmet designed to enhance underground miner safety through multi-sensor hazard detection, real-time audio-visual alerts, and cloud telemetry via ThingSpeak.


Brian-Nziza/ESP32-Hackathon-Board
KiCad 10 project. Board is 100 × 80 mm, four layers, fabricated by JLCPCB.

joshua691/Gaucho-Rocket-Project_Onboarding_IMU_PCB
This project was developed as part of the onboarding process for Gaucho Rocket Project (GRP). The goal was to design a custom PCB for a rocket motion sensing system capable of collecting inertial measurement data, such…

OlegDemk/ESP32_GPS_loger_v1
GPS logger can log in GPS data every 5 seconds into Micro SD card.


rmingon/Falcon-Edge
A 3D-printable flying-wing airframe with a custom ESP32 flight computer—open hardware you can solder, screw together, and fly.

It measures 116 × 116 mm and has 2 copper layers, 1.6 mm thick.
66 parts, built around the ESP32-WROOM-32, AMS1117-3.3 and MPU-6050. 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.
From the dish-glitch/Philobot repository on GitHub, at the commit this page was made from: the board is hardware/kicad/Philo- main.kicad_pcb and its schematic hardware/kicad/POWER.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask dish-glitch before reusing the design.