Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

RV College of Go, change the world

Engineering

Touchless Automatic Motion


Sensor Trash Can
IDEA LAB
(21ME25)

By
Aerospace students

Keshav Jindal (1RV21AS025)


Avinash (1RV21AS013)
Naushik Maurya (1RV21AS022)
Under the Guidance of

Prof. VijayKumar

RV COLLEGE OF ENGINEERING
RV Vidyaniketan Post, Mysore Road, Bengaluru – 560 059
Compents Used

Dustbin

Arduino Uno

9g Servo

Ultrasonic Sensors
9V Battery
INTERFACING ULTRASONIC SENSOR WITH ARDUINO

As shown in picture, the HC-SR04 Ultrasonic


sensor is a 4 pin module, whose pin names are
Vcc, Trigger, Echo and Ground respectively. This
sensor is a very popular sensor used in many
applications where measuring distance or sensing
objects are required. The module has two eyes like
projects in the front which forms the Ultrasonic
transmitter and Receiver.

APPLICATION OF ULTRASONIC SENSORWORKING PRINCIPLE


 Proximity Detection. When an electrical pulse of high voltage is applied to the
 Liquid Level Sensing. ultrasonic transducer it vibrates across a specific spectrum of
frequencies and generates a burst of sound waves. Whenever
 Obstacle Detection. any obstacle comes ahead of the ultrasonic sensor the sound
 Ranging/Distance Measurement. waves will reflect back in the form of echo and generates an
electric pulse. It calculates the time taken between sending
 Anti Collision system. sound waves and receiving echo. The echo patterns will be
 Contouring or Profiling. compared with the patterns of sound waves to determine
detected signal’s condition.
 Presence Detection.
 Product Counting and Sorting.
 Anti Intrusion System.
 Medical Imaging.
Why Arduino?
 It is Open Source,both in terms of Hardware and
Software.

 It is cheap,(about $20,the cost of going out for pizza)

 USB connectivity(MacBooks don’t have serial ports)

 More powerful than a BASIC stamp(it costs around $180)

 Simple and easy to use by someone without formal


electronics training.Editing and rewriting is often easier
than writing from scratch.That’s where the BeagleBoard

Some Application of Arudino falls short.”It has virtually no example application that you
Board can just copy and hack to learn from”.

Interactive real-time auditory feedback system

GPS receiver module  We know simple is attractive.

Ultrasonic sensor

Infrared detectors

SONARS

Sensor tube for heart monitor

Pulse rate monitor

Seven segment LED dice

Simple room temperature readout

INTERFACING Servo SG90 Motor WITH ARDUINO

Each lead has a color code. connect the brown


wire from the micro servo to the GND pin on the
Arduino. Connect the red wire from the servo to
the +5V on the Arduino. And finally, connect the
orange wire from the SG90 servo to a digital pin
(pin 9) on the Arduino.

APPLICATION OF Servo SG90 Motor

radio-controlled airplanes
working principle of servo


Stair Climbing Robot
motor 
DIY Idea with RFID
A servo motor is an electromechanical 
Ugly Bug
device that produces torque and velocity  Automated Dino Game using Arduino
based on the supplied current and voltage.  Quadruped Robot
A servo motor works as part of a closed

Keypad Garage Opener
loop system providing torque and velocity

Record and Play Arduino 3D Printed Robotic Arm
as commanded from a servo controller

Arduino Servo Barometer with BMP085 Sensor
utilizing a feedback device to close the loop. Solar Traker

Servo Clock

Simple Mimicking Robot Arm Using Arduino

COVID - 19 Touchless Hand Wash Timer
Circuit Diagram
Arduino Code
#include <Servo.h> //servo library void measure() {
Servo servo; digitalWrite(10,HIGH);
int trigPin = 5; digitalWrite(trigPin, LOW);
int echoPin = 6; delayMicroseconds(5);
int servoPin = 7; digitalWrite(trigPin, HIGH);
int led= 10; delayMicroseconds(15);
long duration, dist, average; digitalWrite(trigPin, LOW);
long aver[3]; //array for average pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
dist = (duration/2) / 29.1; //obtain distance
void setup() { }
Serial.begin(9600); void loop() {
servo.attach(servoPin); for (int i=0;i<=2;i++) { //average distance
pinMode(trigPin, OUTPUT); measure();
pinMode(echoPin, INPUT); aver[i]=dist;
servo.write(0); //close cap on power on delay(10); //delay between measurements
delay(100); }
servo.detach(); dist=(aver[0]+aver[1]+aver[2])/3;
}
if ( dist<50 ) {
//Change distance as per your need
servo.attach(servoPin);
delay(1);
servo.write(0);
delay(3000);
servo.write(150);
delay(1000);
servo.detach();
}
Serial.print(dist);
}
WORKING:
After wiring and attaching all the devices and
setting up to the Smart Dustbin, now observe all
the important setup whether they are well
connected or something missed.
After connection set up now next step is to
submit/upload code in Arduino and supply power
to the circuit.
When system is powered ON, Arduino keeps
monitoring for any things that come near the
sensor at give range.
When Ultrasonic sensor detect any object for
ADVANTAGES:
example like hand or others, here Arduino 
 A reduction in the number of waste
calculates its distance and if it less than a certain
predefines value than servo motor get activate 
collections needed by up to 80%,
first and with the support of the extended arm of
the lid. 
resulting in less manpower, emissions,
Lid will open for a given time than it will
automatically close. 
fuel use and traffic congestion.

 A reduction in the number of waste

bins needed.

 Maintain environment hygiene (i.e. no

overflowing of waste and less

unpleasant odor).
“Somewhere in me is a curiosity sensor. I
want to know what's over the next hill.
You know, people can live longer without
food than without information. Without
information, you'd go crazy.”

You might also like