With Arduino
With Arduino
Automatic dustbin
Components Required
Dustbin with a Hinged Lid - A small trash bin to integrate the system.
How It Works
1. The ultrasonic sensor detects when an object (like a hand) comes within a predefined
distance (e.g., 10-15 cm).
2. Arduino processes this data and sends a signal to the servo motor.
4. After a set time (e.g., 5 seconds), the servo motor rotates back to close the lid.
Wiring Diagram
Ultrasonic Sensor:
o VCC → Arduino 5V
Servo Motor:
o VCC → Arduino 5V
Enhancements
4. Solar-Powered Smart Dustbin: Use a solar panel to charge the system, making it eco-
friendly.
Without Arduino
Materials Required
3. Resistors:
How It Works
This change in resistance controls the base voltage of the transistor, which acts as a switch.
In darkness, the transistor turns on, completing the circuit to light up the LED or bulb.
Steps to Build
o Connect the positive end of the LED to the collector of the transistor.
o Connect the power supply (+) to the LDR and the positive terminal of the LED.
Testing
Place the LDR in a well-lit environment: The LED should remain off.
Cover the LDR to simulate darkness: The LED should turn on.