Vikas Shukla
Created August 15, 2020 © MIT

Open door without touching with Arduino and Proximity Sensor

Proximity Sensor using MTCH101 controlled by Arduino Nano for motorized automatic door opening can reduce COVID-19 infection in offices .

IntermediateFull instructions provided4 hours36
Open door without touching with Arduino and Proximity Sensor

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
MTCH101 Proximity Sensor
This sensor present in Saniabox
×1

Story

Read more

Schematics

Proximity Sensor Schematics

Code

Sensing Proximity Sensor

C/C++
Program that uses Arduino Nano and Touch Sensor from SaniaBox to
* light up LED when Touch Sensor is Activated. Written by
* Abhinav Shukla V 0.02
/* Program that uses Arduino Nano and Touch Sensor from SaniaBox to 
 * light up LED when Touch Sensor is Activated. Written by
 * Abhinav Shukla V 0.02
*/

int val = 0;      // variable to store the read value

void setup() {
  pinMode(A0, INPUT);    // sets the digital pin AO as input
  pinMode(LED_BUILTIN, OUTPUT); //set up LED on Arduino Nano
}
void loop() {
  val = digitalRead(A0);   // read the input pin
  if (val == 0) { //A0 will recieve HIGH (0) if Touch Sensor is activated, LOW (1) if not
   digitalWrite(LED_BUILTIN, HIGH); //If a value of 0 is recieved, turn on LED
} else {
   digitalWrite(LED_BUILTIN, LOW);//Else turn off
   }

Credits

Vikas Shukla

Vikas Shukla

1 project • 0 followers
Thanks to Abhinav Shukla.

Comments