Anil ChoudharyPrajakta jadhavabhishek patil
Published © GPL3+

Disinfectant tunnel

A tunnel/Machine where the human can be sanitized the whole body by spraying the solution(Sodium hypochlorite) which can kill the virus.

IntermediateShowcase (no instructions)10 hours312
Disinfectant tunnel

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
The main Controller board for driving the relay and ultrasonic sensor.
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
The ultrasonic sensor used for detecting the user come in the tunnel
×1
5V Trigger Relay Module For Arduino And Raspberry Pi
The relay module for driving the AC motor.
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Custom parts and enclosures

Tunnel Cadd Design

The Cadd Design of disinfectant tunnel

Schematics

Disinfected Tunnel Circuit Diagram

The Circuit diagram which shows the connection of sensor, relay and controller.

Code

Disinfectant tunnel Code

Arduino
Code for disinfectant tunnel. Upload it in arduino nano using arduino ide.
/* The Disinfectant tunnel project is made by Anil Choudhary, Abhishek Patil and Prajakta Jadhav
 * Component included:
 * Arduino Nano R3
 * Ultrasonic Sensor HC-SR04
 * 5v 1 channel relay module
 * 
 * Connection
 * Arduino Nano R3 ------> Device
 * Nano D4 pin     ------> Ultrasonic trig pin
 * Nano D5 pin     ------> Ultrasonic Echo pin
 * Nano D7 pin     ------> Relay Module input pin
 */

#define trigPin 4  //Defining the Ultrasonic trigger pin which is connected on arduino nano d4
#define echoPin 5 `//Defining the Ultrasonic Echo pin which is connected on arduino nano d5
#define relay 7    //Defining the Relay input pin which is connected on arduino nano d7

long duration;    // Variable
int centimeter;   // Variable for storing the distance

void setup() 
{
  Serial.begin(9600);           //Function to begin the serial monitor
  pinMode(trigPin,OUTPUT);      //Defining the trigger pin as OUTPUT
  pinMode(echoPin,INPUT);       //Defining the Echo pin as INPUT
  pinMode(relay,OUTPUT);        //Defining the Relay input pin as OUTPUT
  digitalWrite(relay,HIGH);     // Keep relay pin High for turn off the output
}

void loop() 
{
  distance();           // Calling the function to get distance
  if(centimeter < 30)   // If distance is less then 30cm then relay output low that means to turn on the output
  {
    digitalWrite(relay,LOW);
    Serial.println("ON");
    delay(15000);       //Keep on for 15 seconds
  }
  else              // Otherwise turn it off
  {
    Serial.println("OFF");
    digitalWrite(relay,HIGH);
  }
}
  
void distance()     // Fucntion for calculating the distance using ultrasonic sensor
{
  digitalWrite(trigPin, LOW);
  delayMicroseconds(5);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  centimeter = duration*0.034/2;
  Serial.print("Distance = ");
  Serial.print(centimeter);
  Serial.println(" cm");
}

Credits

Anil Choudhary

Anil Choudhary

2 projects • 7 followers
I love Invention and making own products. I Love task which uses brain and something logistic. Programming in C and Arduino is my passion.
Prajakta jadhav

Prajakta jadhav

1 project • 1 follower
abhishek patil

abhishek patil

1 project • 1 follower

Comments