chukwunwogor Faithful
Published © GPL3+

Mobile Full Body Sanitizer for Corona virus Prevention

The mobile full body sanitizer is a design prototype which employs a linear moving pressurized sanitizing spray to sanitize half of the body

IntermediateFull instructions provided24 hours11
Mobile Full Body Sanitizer for Corona virus Prevention

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Buzzer
Buzzer
×1
Electrolytic Capacitor, 4700 µF
Electrolytic Capacitor, 4700 µF
×1
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×1
LED (generic)
LED (generic)
×4
PM42s-048 stepper motor
×1
60W PCIe 12V 5A Power Supply
Digilent 60W PCIe 12V 5A Power Supply
×1
Solar Power Manager For 12V Lead-Acid Battery
DFRobot Solar Power Manager For 12V Lead-Acid Battery
×1
PiJuice Solar Panel - 22 Watt
PiJuice Solar Panel - 22 Watt
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Rope 7ft
×1
Wooden frame
×1
aerosol sanitizer
×1

Software apps and online services

Arduino IDE
Arduino IDE
circuito.io
circuito.io

Hand tools and fabrication machines

hand saw
Mastech MS8217 Autorange Digital Multimeter
Digilent Mastech MS8217 Autorange Digital Multimeter

Story

Read more

Custom parts and enclosures

The video of the project working.

To see how the project works.

Schematics

Schematica and circuit diagrams

For help in creating the circuit.

Code

The Code

Arduino
It should be uploaded to the arduino
#include <Stepper.h>
#include <Servo.h>
#define echoPin 2 // attach pin D2 Arduino to pin Echo of HC-SR04
#define trigPin 3 //attach pin D3 Arduino to pin Trig of HC-SR04
long duration; // variable for the duration of sound wave travel
int distance; // variable for the distance measurement
int led1 = 12;
int led2 = 5;
int led3 = 6;
int led4 = 13;
int beep = 7;
const int stepsPerRevolution = 200;
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
Servo myservo;
void setup() {
  // put your setup code here, to run once:
  myStepper.setSpeed(60);// set the speed of stepper motor at 60 rpm:
  myservo.attach(4);
  // Assign output display LEDs
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(beep, OUTPUT);
pinMode(trigPin, OUTPUT); // Sets the trigPin as an OUTPUT
pinMode(echoPin, INPUT); // Sets the echoPin as an INPUT
}

void loop() {
/* The ultrsonic sensor code to measure distance
and turn the LEDs, stepper motor and servo to push the spray sanitizer */
// Clears the trigPin condition
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  // Sets the trigPin HIGH (ACTIVE) for 10 microseconds
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  // Reads the echoPin, returns the sound wave travel time in microseconds
  duration = pulseIn(echoPin, HIGH);
  // Calculating the distance
  distance = duration * 0.034 / 2; // Speed of sound wave divided by 2 (go and back)
  if (distance < 15) {
   
    digitalWrite(beep, HIGH);
    digitalWrite(led1, HIGH);
    delay(3000);
    digitalWrite(beep, LOW);
    digitalWrite(led1, LOW);
    digitalWrite(led2, HIGH);
    delay(5000);
    myservo.write(30); // Activate spray can
    myStepper.step(stepsPerRevolution*60); // lift spray can
    myservo.write(0); // Deactivate spray can
    digitalWrite(led2, LOW);
    digitalWrite(led3, HIGH);
    digitalWrite(beep, HIGH);
    delay(5000);
    digitalWrite(beep, LOW);
    myservo.write(30); // Activate spray can
    myStepper.step(-stepsPerRevolution*60); // lower spray can
    myservo.write(0); // Deactivate spray can
    digitalWrite(beep, HIGH);
    digitalWrite(led3, LOW);
    digitalWrite(led4, HIGH);
    delay(5000);
    digitalWrite(beep, LOW);
    digitalWrite(led4, LOW);
    delay(5000);
    }
}

Credits

chukwunwogor Faithful

chukwunwogor Faithful

1 project • 0 followers

Comments

Add projectSign up / Login