Waliko Sichinga
Published

Smart Disinfection and Sanitation Tunnel

The smart tunnel prevents further outspread of COVID-19 / SARS-CoV-2. It can disinfect a person fully in a time span of just 15 seconds.

AdvancedWork in progress3 days1,077
Smart Disinfection and Sanitation Tunnel

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
HIGH VOLTAGE DC-DC: SIP SERIES
XP Power HIGH VOLTAGE DC-DC: SIP SERIES
×1
Connector Accessory, VITA 67.3 SMPM Backplane Module C
Connector Accessory, VITA 67.3 SMPM Backplane Module C
×1

Story

Read more

Schematics

Smart Tunnel Circuit

Code

Smart Tunnel

C/C++
int relayPin = 12;                // choose the pin for the Relay Pin

int inputPin = 2;               // choose the input pin (for PIR sensor)
int inputPin2 = 3;               // choose the input pin (for PIR sensor 02)

int pirState = LOW;             // at start, assuming no motion detected
int val = 0;                    // variable for reading the pin status
int val2 = 0;                    // variable for reading the pin status

 
void setup() {
  pinMode(relayPin, OUTPUT);      // declare Relay as output
  pinMode(inputPin, INPUT);     // declare sensor as input
  pinMode(inputPin2, INPUT);  
  Serial.begin(9600);
}
 
void loop(){
  val = digitalRead(inputPin);  // read input value
  val2 = digitalRead(inputPin2);  // read input value
  if (val == HIGH || val2 == HIGH) {            // check if the input is HIGH
    digitalWrite(relayPin, HIGH);  // turn Relay ON
    if (pirState == LOW) {
      // turned on
      Serial.println("Motion detected!");
      // 15 sec delay
      delay(15000);
      pirState = HIGH;
    }
  } else {
    digitalWrite(relayPin, 0); // turn Relay OFF
    if (pirState == HIGH){
      // turned off
      Serial.println("Motion ended!");
      pirState = LOW;
    }
  }
  
}

Credits

Waliko Sichinga
1 project • 1 follower
Thanks to Yash Nayak.

Comments