Elmin Delibašić
Published © GPL3+

COVID-19: Hand Disinfection Machine

This is a device that is used for touchless hand disinfection. When the hands are moved to the unit, the sprinkler starts automatically.

AdvancedFull instructions provided20 hours11,090
COVID-19: Hand Disinfection Machine

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Distance Measuring Sensor, Optoelectronic
Distance Measuring Sensor, Optoelectronic
×1
Grove - Relay
Seeed Studio Grove - Relay
×1
Water pump 5V
×1
Breadboard (generic)
Breadboard (generic)
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fusion
Autodesk Fusion

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

Tip for scattering

Base model

Cover model

Schematics

Schematic

Code

code.ino

Arduino
int ir_sensor = A0;
int led = 2;
int relay = 3;

 
void setup() {
  //initialize serial communications at 9600 bps
  Serial.begin(9600);
  pinMode(led, OUTPUT);
  pinMode(relay, OUTPUT);
}
 
void loop() {
  int sensor_value = analogRead(ir_sensor);  //read the sensor value
  int distance_cm = pow(3027.4/sensor_value, 1.2134); //convert readings to distance(cm)

  if (distance_cm < 10) {
    digitalWrite(led, HIGH); //turn ON LED diode
    digitalWrite(relay, HIGH); //turn ON Water pump
    delay(5000); //delay 5000ms (5 seconds)
    digitalWrite(led, LOW); //turn OFF LED diode
    digitalWrite(relay, LOW); //turn OFF Water pump
    }
  else {
    digitalWrite(led, LOW); //turn OFF LED diode
    digitalWrite(relay, LOW); //turn OFF Water pump
  }

    delay(500); //delay 500ms (0.5 second)
  
}

Credits

Elmin Delibašić

Elmin Delibašić

12 projects • 81 followers
Bachelor of Electrical Engineering || Enthusiast for AI and IoT || Master Student at Faculty of Electrical Engineering

Comments