The prototype is started up by installing the components - infrared sensor, ultrasonic sensor, servo motor, LED, ESP8266 WiFi Module and Arduino Uno on a breadboard.
⇩
LED is connected on pin 13, sensor motor is connected on pin 9.
ESP8266 is supplied with 3.3V from the Arduino Uno.
5V of infrared sensor and ultrasonic sensor are supplied through Arduino Uno on pin 7 and pin11 (trig), pin 12(echo) respectively.
⇩
The prototype is programmed via Arduino IDE such that:
servo motor controls the open and close of the trash can lid with infrared sensor to detect motion.
ESP 8266 enables the Arduino Uno to WiFi network.
LED lights up when trash can is full.
Ultrasonic sensor detects the trash level and sends message to user when the trash can is full via Blynk.
Blynk able to display real-time data of the trash level with the widgets: Gauge as well as SmartChart.
⇩
Once the program is working, the components are installed to the trash can accordingly.