Project tutorial
Make Touchless ANY THING using ultrasonic sensor module

Make Touchless ANY THING using ultrasonic sensor module © CC BY-NC-ND

In this condition of COVid-19 we should avoid to touch like Doorbell so in this project to make anything Touchless/NON-contact

  • 3,736 views
  • 14 comments
  • 29 respects

Components and supplies

About this project

How you can make anything Touchless/NON-contact:

FOR EXAMPLE:

Touchless Doorbell

Social distancing is the one of the best method to escape from COVID-19. I strongly recommend to stay at home. But we can't avoid some emergency visits to some homes. When we arrived at infront of a house, first we search the doorbell button/ calling bell button. And press the button. But in this special situation this doorbell button can cause the virus to spread. When some infected person press the button the virus hold on that button and when a non infected person touch this button the virus spread to that person. We can avoid this danger by using the touchless doorbell. The existing doorbell can convert to a touchless doorbell.

like this you can make any Touchless/NON-contact switch:

"So guys if you like the project so don't forget to follow and like it"

Code

CODEC/C++
//this project is made by BEASTIDREES62 https://id.arduino.cc/?code=MTxqeHweG6vL2cur&state=amxEcTB2bnNiYjluTUxmRExWaWZnOXIzUk1BLWRqZTZYUGtJNGtxODB%2Bdg%3D%3D
const int pingPin = 7;
//adjust this to set the min speed of wave gesture
const int waveBackWait = 5000;
//Range of detection from the sensor in cm
const int range = 7;
void setup() {
  pinMode(10, OUTPUT);
}
void loop() {
  long duration, cm;
  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  delayMicroseconds(2);
  digitalWrite(pingPin, HIGH);
  delayMicroseconds(5);
  digitalWrite(pingPin, LOW);
pinMode(pingPin, INPUT);
  duration = pulseIn(pingPin, HIGH);
  
  cm = microsecondsToCentimeters(duration);
if(cm < range && cm > 1){
    for(int i=waveBackWait; i>0; i--){
      long new_duration, new_cm;
      pinMode(pingPin, OUTPUT);
      digitalWrite(pingPin, LOW);
      delayMicroseconds(2);
      digitalWrite(pingPin, HIGH);
      delayMicroseconds(5);
      digitalWrite(pingPin, LOW);
      pinMode(pingPin, INPUT);
      new_duration = pulseIn(pingPin, HIGH);
  
      new_cm = microsecondsToCentimeters(new_duration);
      if(new_cm < range && new_cm > 1){
        //ring the doorbell
        digitalWrite(10,HIGH);
        delay(500);
        digitalWrite(10,LOW);
      }
    }
  }
}
long microsecondsToCentimeters(long microseconds) {
  return microseconds / 29 / 2;
}

Schematics

Schematics of this projects
1  rgz3rdyfcixgd4cszuxrw rkx5boh5ic
Schematics of relay module
if you do not have a relay module so don't worrie you can make your own by this Schematics
Relay module flgzqjdffp 1quwaonwea

Comments

Similar projects you might like

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 14,908 views
  • 10 comments
  • 31 respects

Ultrasonic Sensor with LCD Display Using 433MHz

Project tutorial by mcharrison500

  • 15,451 views
  • 1 comment
  • 25 respects

IOT - Smart Jar Using ESP8266, Arduino and Ultrasonic Sensor

Project tutorial by Team Smazee

  • 12,536 views
  • 5 comments
  • 15 respects

Ground Proximity Sensing with Ultrasonic Sensor

Project tutorial by AeroGeeks

  • 8,794 views
  • 0 comments
  • 14 respects

Door Alarm With Ultrasonic Sensor

Project showcase by MattG

  • 19,833 views
  • 7 comments
  • 21 respects

Touchless Doorbell

Project showcase by gadhaguy

  • 686 views
  • 1 comment
  • 4 respects
Add projectSign up / Login