Introduction: Whistle Controlled Dustbin

About: I build fun and awesome projects with Arduino, Raspberry Pi, ESP8266, ESP32 based boards.

In this project, a sound sensor will detect the sound intensity of your surroundings and will move an servo motor (open the dustbin) if the sound intensity is above a certain threshold.

Step 1: Hardware and Materials Required

Arduino Mega + USB Cable II Arduino Uno : II

9v battery:


Jumper wires:

Male DC Barrel Jack Adapter for Arduino :

Micro Servo 9g :

Sound Sensor:

Mini Breadboard :

Ice Cream Stick :


Step 2: Connecting Servo Motor

First, I will start with the mechanism to open the lid. In order to open the lid,Glue one end of the popsicle stick to the flat side of the servo's horn. It must be palced near the hinge where the lid is connected to the main can.

Step 3: Programming

Connect the arduino and upload the given program on your arduino uno.

Step 4: Wiring

You can place Arduino, Sound Sensor, Mini Breadboard, and 9 Battery on Dustbin with the help of double tape and Wire the circuit as shown in the picture.

Step 5: Testing

Test your whistle to open the dustbin.

Thank You