Smart Dustbin with Ultrasonic Sensor and Servo

Build a smart dustbin that opens automatically using an ultrasonic sensor and an Arduino UNO.

Aug 20, 2021

36151 views

5 respects

Components and supplies

3

Male/Male Jumper Wires

1

Ultrasonic Sensor - HC-SR04 (Generic)

1

Arduino UNO

4

Male/Female Jumper Wires

1

SG90 Micro-servo motor

Apps and platforms

1

Arduino IDE

Project description

Code

Smart_Dustbin_Code

cpp

Upload this code to your Arduino

Downloadable files

Smart Dustbin Connections

Follow this circuit diagram to make this project.

Smart_Dustbin_Connections.png

Immagine

Comments

Only logged in users can leave comments

Immagine
Immagine

scorpion_boss

2 years ago

Nice project but it is not working for me. Could you pls check? Thank you

Immagine
Immagine

Anonymous user

3 years ago

HI GOOD PROJECT .. I MADE THIS TOO . NUT THE PROBLEM IS THAT MOTOR IS ROTATING IN LOOP . ONCE ULTRASONIC SENSOR READ YOUR HAND OR PROXIMITY SERVO MOTOR STARTS BUT IT DOESNT STOP ITS OPENING AND CLOSING BIN CAP AGAIN AND AGAIN , ANY ISSUE IN CODE ?? IDK

Immagine
Immagine

1727jahpranav

3 years ago

Hi, I also make Arduino projects. I also have a YouTube channel I wanna collab with you. Will you collab with me?

Immagine
Immagine

Anonymous user

2 years ago

HI PRANAV GOOD PROJECT IT IS .. I MADE THIS TOO . BUT THE PROBLEM IS THAT MOTOR IS ROTATING IN LOOP . ONCE ULTRASONIC SENSOR READ YOUR HAND OR PROXIMITY SERVO MOTOR STARTS BUT IT DOESNT STOP ITS OPENING AND CLOSING BIN CAP AGAIN AND AGAIN , ANY ISSUE IN CODE ?? IDK