Salah UddinIoT-Bangladesh
Published © LGPL

Helmet Sterilization Box

UV sterilization lamp based Helmet sterilization box is presented in this project.

IntermediateFull instructions provided24 hours2,908

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
Main Controller Board
×1
UV Sterilizer Germicidal Lamp LED
×1
Pushbutton switch 12mm
SparkFun Pushbutton switch 12mm
×1
Seeed Grove Buzzer
×1
Base Shield V2
Seeed Base Shield V2
×1
MOSFET Transistor, Switching
MOSFET Transistor, Switching
×1
uPVC Board
×1
9V 1A Switching Wall Power Supply
9V 1A Switching Wall Power Supply
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
Soldering iron (generic)
Soldering iron (generic)
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)

Story

Read more

Schematics

circuit diagram

Code

Source Code

Arduino
Source code for Arduino
const int BUTTON_PIN = 7; // Arduino pin connected to button's pin
const int BUZZER_PIN = 3; // Arduino pin connected to Buzzer's pin
const int UV_PIN = 8; // Arduino pin connected to UV LIGHT 

void setup() {
  Serial.begin(9600);                // initialize serial
  pinMode(BUTTON_PIN, INPUT_PULLUP); // set arduino pin to input pull-up mode
  pinMode(BUZZER_PIN, OUTPUT);       // set arduino pin to output mode
  pinMode(UV_PIN, OUTPUT);
}

void uvLamp()
{
    Serial.println("......Sanitizing in progress.......");
    digitalWrite(UV_PIN, HIGH); // turn on UV LAMP
    delay(7000);
    digitalWrite(UV_PIN, LOW); // turn off UV LAMP
    digitalWrite(BUZZER_PIN, HIGH); // turn on BUZZER
    delay(800);
    digitalWrite(BUZZER_PIN, LOW); // turn off BUZZER
}



void loop() {
  int buttonState = digitalRead(BUTTON_PIN); // read new state

  if (buttonState == LOW) {
    Serial.println("The button is being pressed");
    // digitalWrite(BUZZER_PIN, HIGH); // turn on BUZZER
    uvLamp();
  }
  else
  if (buttonState == HIGH) {
    Serial.println("The button is unpressed");
    digitalWrite(BUZZER_PIN, LOW);    // turn off BUZZER
    digitalWrite(UV_PIN, LOW);        // turn off UV LAMP
  }
}

Credits

Salah Uddin

Salah Uddin

38 projects • 122 followers
Technology and IoT Hacker, Robot Killer and Drone lover.
IoT-Bangladesh

IoT-Bangladesh

17 projects • 36 followers

Comments