Automatic Rain
Automatic Rain
Automatic Rain
In today's innovative world, where contactless solutions are highly valued, building a smart
dustbin can be a fantastic project. In this tutorial, we'll guide you through creating a smart
dustbin using Arduino Uno and an ultrasonic sensor. This project will not only help you keep
your surroundings clean but also introduce you to the exciting world of Arduino
programming.
Hardware Required:
Arduino Uno
Ultrasonic Sensor HC-SR04
SG-90 Micro Servo Motor
Dustbin
Full Kit
Software Required:
Arduino IDE
Arduino Uno:
The HC-SR04 ultrasonic sensor is used to measure distances using sonar technology. It emits
ultrasound waves and calculates the time taken for the waves to bounce back, allowing
precise distance measurements.
The SG-90 micro servo motor is lightweight, high-quality, and fast. It is commonly used in
remote-controlled vehicles and robotics projects. In this project, it controls the lid of the
dustbin, making it open and close automatically.
Working Concept:
Arduino Code:
#include <Servo.h>
void setup() {
delay(100);
}
void measure() {
delayMicroseconds(5);
delayMicroseconds(15);
void loop() {
delay(1);
servo.write(0); // Open the cap
Serial.print("Distance: ");
Conclusion:
Building a smart dustbin using Arduino and an ultrasonic sensor not only contributes to a
cleaner environment but also enhances your skills in programming and electronics. This
project demonstrates the seamless integration of sensors and microcontrollers for practical
applications. Feel free to experiment, modify, and extend this project to explore even more
possibilities in the world of electronics and automation. Happy tinkering!