Smart Dustbin using Arduino
Introduction
A Smart Dustbin using Arduino is an automated waste management system that opens the bin’s lid when it
detects a person approaching, allowing touch-free disposal of garbage. This project uses ultrasonic sensors
to detect motion and servo motors to open and close the lid. It improves hygiene by minimizing human
contact and can be used in homes, offices, and public spaces.
Working on Basics
1. The ultrasonic sensor continuously measures the distance of nearby objects.
2. When a person comes within 20 cm, the Arduino sends a signal to the servo motor to open the
dustbin lid.
3. After 5 seconds, the lid automatically closes.
4. This cycle repeats, allowing hands-free waste disposal.
List Of Components:
• Arduino Uno (or any compatible board)
• Ultrasonic Sensor (HC-SR04) – for object detection
• Servo Motor – to open/close the dustbin lid
• Jumper Wires – for connections
• Breadboard (optional) – for easy wiring
• Dustbin – for the physical structure
• USB Cable – to upload code to the Arduino
• Power Source – Battery pack or USB power
Pin Description:
1. Arduino Uno
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external
power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give
supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage
regulator on the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the
microcontroller.
Analog Pins: The pins A0 to A5 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The pins 0 to 13 are used as a digital input or output for the Arduino board.
Serial Pins: These pins are also known as a UART pin. It is used for communication between
the Arduino board and a computer or other devices. The transmitter pin number 1 and receiver pin
number 0 is used to transmit and receive the data resp.
External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and
it is done by pin numbers 2 and 3.
PWM Pins: This pins of the board is used to convert the digital signal into an analog by varying the
width of the Pulse. The pin numbers 3,5,6,9,10 and 11 are used as a PWM pin.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintain SPI communication with
the help of the SPI library. SPI pins include:
1. SS: Pin number 10 is used as a Slave Select
2. MOSI: Pin number 11 is used as a Master Out Slave In
3. MISO: Pin number 12 is used as a Master In Slave Out
4. SCK: Pin number 13 is used as a Serial Clock
LED Pin: The board has an inbuilt LED using digital pin-13. The LED glows only when the digital
pin becomes high.
AREF Pin: This is an analog reference pin of the Arduino board. It is used to provide a reference
voltage from an external power supply
SG90 Micro servo motor Ultrasonic Sensor HC-SR04
➢ Applications of Automatic Traffic Light System:
Public Places:
• Used in parks, streets, and bus stops to promote hygiene and reduce littering.
• Helps municipalities monitor and manage waste collection more efficiently.
Hospitals and Healthcare Facilities:
• Provides contactless disposal of biohazard and medical waste, reducing contamination risks.
Smart Cities:
• Integrated into smart city systems to track waste levels and optimize garbage collection routes.
• Reduces overflowing bins and enhances urban cleanliness.
Homes and Offices:
• Improves hygiene in kitchens, bathrooms, and workplaces by offering hands-free waste
disposal.
Educational Institutions:
• Promotes environmental awareness and smart technology among students.
• Keeps school and college campuses cleaner and more organized.
Shopping Malls and Airports:
• Offers automated waste disposal in high-traffic areas, ensuring cleaner environments.
Industries and Factories:
• Helps manage industrial waste with automatic collection and monitoring systems.
Hotels and Restaurants:
• Ensures sanitary waste handling in food preparation areas, enhancing cleanliness and
customer satisfaction.
➢ Advantages of Automatic Traffic Light System:
• Hygienic: Reduces direct contact with waste.
• Automation: Fully automatic opening/closing mechanism.
• Energy Efficient: Consumes low power and operates only when needed.
• User-Friendly: Simple and easy to maintain.
➢ Future Scope of Automatic Traffic Light System:
• IoT Integration: Send waste levels to mobile apps for monitoring.
• Waste Segregation: Separate organic and inorganic waste.
• Solar-Powered Dustbin: Make the system eco-friendly with solar panels.
• Smart Notifications: Notify authorities when the bin is full.