Smart Trash Bin Project Arduino
Smart Trash Bin Project Arduino
Prepared:
Mohammed Al-Sherif 22210050
Hasan Alghazali 22210015
Supervised:
DR Mohammed Nuri Hussein
Introduction:
Project Objectives:
1) Improve public hygiene by minimizing the need for manual contact with
the bin lid.
The smart trash can system is made of interconnected electronic components working together
harmoniously. The circuit diagram illustrates how each component is connected precisely.
The sensor measures the distance between the trash can and an approaching object (such as a
hand) using ultrasonic waves.
- VCC connects to 5V (an external power source is recommended for better performance).
The servo motor is used to open and close the lid of the trash can, based on Arduino
commands.
Component Description
Arduino Uno Microcontroller board responsible
for signal processing and system
control.
Ultrasonic Sensor (HC-SR04) Detects the presence of an object or
person within a specific range (e.g.,
10–30 cm).
Servo Motor Controls the movement of the bin
lid (opening and closing).
Regular Trash Bin Modified to accommodate motor
and lid mechanism.
Resistors and Wires For connecting electrical
components.
Power Source (9V Battery or USB) Supplies power to Arduino and
other components.
Execution Steps:
1. Mechanical Setup:
• Mount the servo motor on the trash bin lid to enable upward (open) and
downward(close)movement.
• Position the ultrasonic sensor at a suitable location (e.g., front of the bin) to
detect nearby objects.
2. Electrical Connections:
• HC-SR04 to Arduino:
- VCC connects to the 5V pin on the Arduino.
- GND connects to GND.
- Trig connects to digital pin D9.
- Echo connects to digital pin D10.
• Servo Motor:
- Signal connects to digital pin D6.
- VCC connects to 5V (an external power source is recommended for better performance).
- GND connects to GND.
3. Arduino Programming:
The Arduino C++ code reads the sensor data and activates the servo motor when a person
is nearby.
Project Results:
Challenge Solution
Unstable servo movement Use a sufficient power source (e.g.,
9V battery).
Distance measurement errors Calibrate the sensor and test with
various distances.
Connection issues Ensure proper wiring and secure
connections.
Future Improvements:
Conclusion:
References:
- HC-SR04 Datasheet:
https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf