Professional Documents
Culture Documents
Idealab Final
Idealab Final
Engineering
By
Aerospace students
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
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.”