Embedded SystemsBeginnerPRJ-052

Smart Helmet Reminder Using ESP8266

The bike won’t "start" until the helmet is on, and a buzzer nags until it is.

Built and tested by Shahan Fathima K · Industrial Robotics Institute

Circuit diagram of the Smart Helmet Reminder using ESP8266 NodeMCU
Circuit diagram · ESP8266 NodeMCU
LevelBeginner
Build time1–2 hours
BoardESP8266 NodeMCU
Parts6 components

What is the Smart Helmet Reminder?

A road-safety system that checks the rider is wearing a helmet. An IR sensor inside the helmet detects when it is worn. Only then does the ESP8266 switch on the LED or relay that stands in for the bike’s ignition; without the helmet, the ignition stays off and the buzzer sounds.

How it works

  1. The IR sensor inside the helmet detects the rider’s head.
  2. Helmet worn: the LED/relay (ignition) turns on and the buzzer stays off.
  3. Helmet not worn: the ignition stays off and the buzzer warns the rider.
  4. The ESP8266 checks five times a second.

Parts list

ComponentQty
ESP8266 NodeMCU1
IR Sensor Module1
Buzzer1
LED or Relay Module1
Jumper WiresAs needed
Power Supply1

Software

  • Arduino IDE

Wiring and connections

FromConnect to
IR sensor VCC3.3V
IR sensor GNDGND
IR sensor OUTD1
LED / Relay IND2
Relay VCC / GND5V (VIN) / GND
Buzzer +D3
Buzzer −GND

How to build the Smart Helmet Reminder

  1. Fix the IR sensor inside the helmet so it faces the wearer’s head.
  2. Connect the sensor output to D1.
  3. Connect an LED (or relay for a real ignition circuit) to D2, and the buzzer to D3.
  4. Upload the code from the Arduino IDE.
  5. Put the helmet on and off to check that the LED and buzzer swap.

Smart Helmet Reminder code

Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the ESP8266 NodeMCU.

#define sensorPin D1
#define ledPin    D2
#define buzzer    D3

void setup()
{
  pinMode(sensorPin, INPUT);
  pinMode(ledPin, OUTPUT);
  pinMode(buzzer, OUTPUT);
}

void loop()
{
  int helmetStatus = digitalRead(sensorPin);

  if (helmetStatus == HIGH)       // helmet worn
  {
    digitalWrite(ledPin, HIGH);   // ignition allowed
    digitalWrite(buzzer, LOW);
  }
  else                            // helmet not worn
  {
    digitalWrite(ledPin, LOW);
    digitalWrite(buzzer, HIGH);
  }

  delay(200);
}

Real-world uses

  • Two-wheeler safety
  • Delivery rider fleets
  • Road safety awareness
  • Smart vehicle models

Frequently asked questions

What is a Smart Helmet Reminder?

A road-safety system that checks the rider is wearing a helmet. An IR sensor inside the helmet detects when it is worn.

What components are needed for the Smart Helmet Reminder?

You need: ESP8266 NodeMCU (1), IR Sensor Module (1), Buzzer (1), LED or Relay Module (1), Jumper Wires, Power Supply (1). Software: Arduino IDE.

Is the Smart Helmet Reminder project good for beginners?

Yes. It is rated beginner and takes about 1–2 hours to build, using the ESP8266 NodeMCU. The guide on this page explains every connection and step.

Where can I get the code for the Smart Helmet Reminder?

The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.

Can I buy a kit for the Smart Helmet Reminder?

Yes. IRI sells a kit with the parts for this project (PRJ-052). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.

Industrial Robotics Institute
Logo