در این DIY، ما قصد داریم یک سیستم مانیتورینگ زباله/سطل زباله مبتنی بر IOT بسازیم که به ما می گوید که آیا سطل زباله از طریق وب سرور خالی یا پر است و می توانید وضعیت "سطل زباله" یا "سطل زباله" خود را از این طریق بدانید. در هر کجای دنیا از طریق اینترنت بسیار مفید خواهد بود و می توان آن را در سطل زباله در مکان های عمومی و همچنین در خانه نصب کرد.
در این پروژه IOT ، از سنسور اولتراسونیک برای تشخیص اینکه آیا سطل زباله پر از زباله است یا خیر استفاده می شود. در اینجا سنسور اولتراسونیک در بالای سطل زباله نصب شده است و فاصله زباله از بالای سطل زباله را اندازه گیری می کند و می توانیم مقدار آستانه را با توجه به اندازه سطل زباله تعیین کنیم. اگر فاصله کمتر از این مقدار آستانه باشد، به این معنی است که سطل زباله پر از زباله است و پیام "سبد پر است" را در صفحه وب چاپ می کنیم و اگر فاصله بیشتر از این مقدار آستانه باشد، چاپ خواهیم کرد. پیام "سبد خالی است".
در اینجا مقدار Threshold را در کد برنامه 5 سانتی متر قرار داده ایم. ما از ماژول Wi-Fi ESP8266 برای اتصال آردوینو به وب سرور استفاده خواهیم کرد. در اینجا ما از وب سرور محلی برای نشان دادن عملکرد این سیستم نظارت بر زباله استفاده کرده ایم.
اجزای مورد نیاز:
- Arduino Uno (شما می توانید از هر دیگری استفاده کنید)
- ماژول وای فای ESP8266
- سنسور اولتراسونیک HC-SR04
- مقاومت های 1K
- تخته نان
- سیم های اتصال
بیشتر بخوانید: مانیتورینگ Dumpster مبتنی بر IOT با استفاده از Arduino و ESP8266
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
In this DIY, we are going to make an IOT based dumpster/garbage Monitoring System which will tell us that whether the trash can is empty or full through the webserver and you can know the status of your ‘Trash Can’ or ‘Dumpsters’ from anywhere in the world over the Internet. It will be very useful and can be installed in the Trash Cans at public places as well as at home.
In this IOT Project, an Ultrasonic Sensor is used for detecting whether the trash can is filled with garbage or not. Here Ultrasonic Sensor is installed at the top of Trash Can and will measure the distance of garbage from the top of Trash can and we can set a threshold value according to the size of trash can. If the distance will be less than this threshold value, means that the Trash can is full of garbage and we will print the message “Basket is Full” on the webpage and if the distance will be more than this threshold value, then we will print the message “Basket is Empty”.
Here we have set the Threshold value of 5cm in the Program code. We will use ESP8266 Wi-Fi module for connecting the Arduino to the webserver. Here we have used Local webserver to demonstrate the working of this Garbage Monitoring System.
Components Required:
- Arduino Uno (you can use any other)
- ESP8266 Wi-Fi module
- HC-SR04 Ultrasonic sensor
- 1K Resistors
- Breadboard
- Connecting wires
Read More: IOT Based Dumpster Monitoring using Arduino & ESP8266