rohit270798
Published © GPL3+

A.T.M (Anti Transmission Mechanism)

This project will help people withdraw cash from any ATM without actually making any physical contact with the buttons.

IntermediateFull instructions provided96
A.T.M (Anti Transmission Mechanism)

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
SG90 Micro-servo motor
SG90 Micro-servo motor
×9
Buzzer
Buzzer
×1
Jumper wires (generic)
Jumper wires (generic)
×1
9V 1A Switching Wall Power Supply
9V 1A Switching Wall Power Supply
×1

Software apps and online services

Tinkercad

Hand tools and fabrication machines

Storage Box, 1 Compartment
Storage Box, 1 Compartment

Story

Read more

Schematics

Schematic

Code

Code

Arduino
#include<Servo.h>
int trigger=9;
int sensor=0;
int echo=10;

Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;

long calibration (int trigger,int echo){
  pinMode(trigger,OUTPUT); 
  digitalWrite(trigger,LOW);
  delayMicroseconds(2);
  digitalWrite(trigger,HIGH);
  delayMicroseconds(10);
  digitalWrite(trigger,LOW);
   
  
pinMode(trigger, INPUT);
  return pulseIn(echo,HIGH);
}
 
void setup(){
  servo1.attach(2);
  servo2.attach(3);
  servo3.attach(4);
  servo4.attach(5);
  servo5.attach(6);
    
    }
void loop()
{
sensor = 0.01723 * calibration(9,10);
  Serial.println(sensor);
  delay(500);
if (sensor < 100 && sensor > 90){
    servo1.write(90);
    delay(400);
    servo1.write(0);
  }
if (sensor < 90 && sensor > 80){
    servo2.write(90);
    delay(400);
  servo2.write(0);
  }
if (sensor < 80 && sensor > 70){
    servo3.write(90);
    delay(400);
  servo3.write(0);
  }
if (sensor < 70 && sensor > 60){
    servo4.write(90);
    delay(400);
  servo4.write(0);
  }

  if (sensor < 60 && sensor > 50){
    servo5.write(90);
    delay(400);
    servo5.write(0);
  }
}

Credits

Adhrit Choudhary

Posted by rohit270798

Comments