Block DiagramĀ  The working of this Arduino smart dustbin

Block DiagramĀ 

The working of this Arduino smart dustbin is very simple. The ultrasonic sensor acts as the input and the servo motor acts as the output, the Arduino UNO microcontroller is the main brain behind the project. The block diagram for Arduino smart dustbin is shown below

smart dusbin using arduino block diagram

As shown in the block diagram, the Arduino microcontroller constantly monitors the values from the ultrasonic sensor which is placed outside the dustbin. When a person comes near the dustbin the values from the sensor change, this change is noticed by the microcontroller, and it then turns the servo motor to open the dustbin. After some time the controller turns the servo again in the opposite direction to close the dustbin, then the whole process is reapted again.