The project is an intelligent dustbin device, which integrates multiple sensors to monitor the status of garbage.

Good waste management has become an important issue in the world. In public and natural spaces, many people often leave garbage without paying attention. When there is no available garbage collection scenario, it is easier to leave the garbage on site than to take them away. Therefore, for this reason, even some so-called storage spaces are polluted by garbage.

In order to protect natural areas, it is important to provide well managed garbage collection points:

To prevent them from overflowing, the bins must be raised regularly. The key is to determine the time of this period. If it is too fast, the trash can will be emptied; But too late, the garbage can overflow. In some places where it is difficult to popularize garbage cans (such as some mountain trails and farmlands), the problem will be more serious.

Classification can be a major challenge in this rational waste management. Organic waste can be directly treated in nature for composting; Non organic waste must be collected for treatment through a specific process.

Project purpose

The purpose of our project is to provide a monitoring device for intelligent garbage cans, and integrate multiple sensors to monitor the status of garbage.

Liquid level sensor: Based on the ultrasonic system, it is used to prevent overflow by alerting the garbage collection team.

Temperature and humidity sensor: used to monitor the garbage environment. This can be used to manage the condition of organic compost and to prevent pollution in certain cases (very wet or hot conditions, fire risk in very dry conditions)

Flame sensor: some may deposit incandescent waste (such as cigarette butts) or may deliberately ignite garbage cans. Garbage fires can have a huge impact on the environment (for example, it may cause forest fires). The flame sensor can alert the monitoring team to the problem.

Humidity sensor: for the composting process, it is important to maintain a certain humidity level in the composting material. The humidity sensor included in our project will measure the humidity level of the compost.

Open sensor: an open detector will be installed on the garbage can cover to count the garbage usage and detect whether it is closed.

Location system: garbage must be identified and localized to help the garbage collection team manage it. It will provide more flexibility in garbage location management, and can deploy temporary garbage cans (for example, on the beach and hiking trails in summer, on the ski resort in winter, in special events such as music festivals and sports competitions)

The project fully demonstrates its significance through a trash can with two compartments:

One for non organic waste.

An organic waste used for composting.

Sigfox usage

Garbage will be installed in isolated areas. Power will be supplied by batteries, possibly connected to solar panels. Sigfox seams are a very good solution for us:

Sigfox communication system has a wide range of coverage: it allows large-scale deployment of projects.

The sigfox system provides sufficient communication capabilities for our use cases.

Sigfox can provide a 100m positioning solution: there is no need to add GPS shielding on the garbage can.

Sigfox is a low-power solution that allows devices to run autonomously for a long time.

Project details

Hardware design method

Project steps

Step 1: learn about sigfox

Sigfox is a solution for connecting devices within the Internet of things. It currently operates in more than 45 countries and 3million devices. Messages can be up to 12 bytes long, with a maximum of 140 uplink and 4 downlink messages per day.

Step 2: Hardware discovery

Hardware used:

Arduinomkr fox 1200

Micro microswitch

Hc-sr04-ultrasonic sensor

DHT11 temperature and humidity sensor

Ky-026-flame sensor module

Humidity sensor (customized) – ordinary humidity sensor can be used, but after several months of use, the two legs of the probe will be corroded, and the thin copper layer on the legs will be completely corroded. Therefore, we use custom humidity sensors made of copper to make them have a longer service life before corrosion.

Raspberry pie 3B

Step 3: hardware connection and layout

Step 4: Arduino code

To install the arduinoide:

Install arduinoide from this link: https://www.arduino cc/en/Main/Software

Get code:

https://github.com/honhon01/Smart-Waste-Bin

Arduinosamd board (32-bit armcortex-m0+)

Library:

To install libraries, go to sketch includelibrary managelibraries.

Library category:

Arduino low power

Arduinosigfox for mkrfox1200

DHT sensor Library

Adafruit unified sensor driver https://github.com/adafruit/Adafruit_Sensor

RTCZero

View code:

  • #include: used to manage sigfox modules and send or receive values from devices.
  • #Include: used to put the module into sleep and save battery life.
  • #include: generally, it is used for DHT11 operation.

Functions:

Setup (): in this function, we check whether sigfox has started. In addition, set DHT11 and ultrasonic sensor pins.

Loop (): in this function, we check whether the button is pressed, which means that bin is closed. If the button is not pressed, sigfox will not send the value, but if the button is pressed, it will get the value from all the sensors and send it to the sendpayload() function.

Sendpayload(): this function will start the sigfox module and send all values to sigfox as bytes. Then it will end the sigfox module

Run code:

After you understand how the code works. Try compiling and uploading the code.

Don’t forget to select the board to arduinomkrfox1200 and the port to your device port.

Step 5: activate your device

Once you have your device, go to this link to activate it https://buy.sigfox.com/activate 。 Then, fill in the information and you will install the device.

Step 6: send data

Try running the arduinoide again, this time the device will be able to send data to sigfox. You can check whether you receive data at the sigfox backend.

Step 7: application server

Raspberrypi3modelb is used as an application server. This includes node red, MariaDB, and web applications.

Step 8: use the back end of node red

To install node Red:

Follow the instructions in this link: https://nodered org/docs/getting-started/installation

NPM needs:

Node red node MySQL

To get data from sigfox, we need to create our own server to receive data. We use node red as a tool to get data from sigfox.

Step 9: database MariaDB

To install MariaDB:

RaspbianRaspberryPi: https://howtoraspberrypi.com/mariadb-raspbian-raspberry-pi/

Other operating systems: https://mariadb com/downloads

Step 10: front end application (website)

Leave a Reply

Your email address will not be published.