Professional Documents
Culture Documents
● Components used :
HC-SR04 Ultrasonic sensor
SG90 Tower Pro Servo Motor
Arduino UNO R3
5V Power Supply
Jumper Wires
● Male to Male
● Female to Male
● Female to Female
Dustbin
Miscellaneous ( Glue , Scissor , Cutter)
HC-SR04 Ultrasonic sensor
Jumper Wires
Concept Behind Smart Dustbin :
The main concept behind the Smart Dustbin
using Arduino project is Object Detection.
I have used an Ultrasonic sensor in this project
to sense the rubbish as an object .When the
sensor detects any object, it will trigger Arduino
to open the lid . I have used a Servo motor to
persuade the mechanism of lid-opening.
For this mechanism , to be able to open the lid
of the dustbin , it must be placed near the hinge
where the lid is connected to the main dustbin.
int distance;
float duration;
float cm;
void setup()
pinMode(trigpin, OUTPUT);
pinMode(echopin, INPUT);
void loop()
digitalWrite(trigpin, LOW);
delay(2);
digitalWrite(trigpin, HIGH);
delayMicroseconds(10);
digitalWrite(trigpin, LOW);
distance = cm;
if(distance<70)
delay(3000);
else{
servoMain.write(0);
delay(50);
}
Servo Motor
A servomotor is a rotary actuator or linear actuator that allows
for precise control of angular or linear position, velocity and
acceleration. It consists of a suitable motor coupled to a sensor
for position feedback. It also requires a relatively sophisticated
controller, often a dedicated module designed specifically for use
with servomotors.
Servo motors are not a specific class of motor, although the term
servomotor is often used to refer to a motor suitable for use in a
closed-loop control system.
Servo motors are used in applications such as robotics, CNC
machinery or automated manufacturing.
Difference between Servo Motor and DC Motor :