Smart Compost Bin Monitoring System -Based on 4G IoT and SHT20

by Jaychouu in Circuits > Sensors

1283 Views, 4 Favorites, 0 Comments

Smart Compost Bin Monitoring System -Based on 4G IoT and SHT20

Smart Compost Bin Monitoring System -Based on 4G IoT and SHT20
堆肥箱封面.jpg
堆肥箱3.jpg

A compost bin is a container for fertilizer production, which can provide nutrition for plants, vegetables, and pot plants. And the fertilizer quality depends on the temperature and humidity of a compost bin as well as other factors. The other day my friend asked me to help him remake his compost bin, he wants a device that allows him to remotely get the real-time temperature and humidity inside. So I add some electronic parts to it. The project goes like this:

The device sends the data collected by the sensors through the 4G module, and Aliyun(an IoT platform) receives the data and displays them on the web page so we can check data on a PC. For the sake of convenience, I also connect the DingTalk to the IoT platform so that the data can be transferred from DingTalk to the mobile phone.

Thought

1. IoT Platform: Aliyun

2. The electronic parts need to be waterproof because the compost bin is placed outdoor and exposed to various weather. A waterproof connector and waterproof box are used here.

3. Solar panels and suitable batteries for the device to work for a long time without a manual power supply. It is measured that a flexible solar panel of about 40*40cm and a 18650 battery are enough, which can work for 25-30 days when it is fully charged (make the device enter low-power mode when not working).

4. Temperature and humidity sensors: choose two sets of SHT20 temperature and humidity sensors with waterproof function produced by DFROBOT because they need to be inserted into the fertilizer directly (the fertilizer is monitored by layer, up and down).

5. 4G module: use air724 full Netcom module from Luat, which is compatible with phone card or 4G IoT card. The full Netcom is for people in remote suburbs to change several operators and achieve comprehensively signal coverage.

6. LCD1602 can display real-time temperature and humidity data, and give some information about devices like low power warning.

7. Controller: Esp32-E.

8. Solar power manager module: choose 5V1A module with suitable volume.

9. Add a battery power monitoring module (detect battery power) and a anti-reverse diode (prevent damage caused by battery reverse connection). The MOSFET module and relay module are used to power off modules with high power consumption, and the buzzer module is used to provide low battery alarm.

10. Each module is mainly connected by welding, and a few pins are connected by wires (when ESP32-E burns the program again, a few pins need to be in the air).

Supplies

堆肥箱传感器1.jpg
堆肥箱传感器2.jpg
堆肥箱控制器.jpg
堆肥箱太阳能充电.jpg
堆肥箱LCD.jpg
堆肥箱电池.jpg
堆肥箱电池检测1.jpg
堆肥箱电池检测3.jpg
堆肥箱电池检测4.jpg
堆肥箱太阳板.jpg
堆肥箱电池检测2.jpg
堆肥箱连接管.jpg
堆肥箱4G.jpg

堆肥箱连接图.jpg
堆肥箱step1.jpg
堆肥箱step2.jpg

Connect all parts according to the connection diagram first. Plug the "SDA" and "SCL" of the two SHT20 sensors, pin15 of the button module and pin36 of the battery fuel gauge into ESP32-E controller through jumper wires. Other parts are welded. And use hot melt adhesive when fixation is needed.

Build your "products" and "devices" inside the IoT project at Aliyun.

Open the program at the end of the article, change the macro definition equipment of Aliyun at the beginning into information you want, and burn it to ESP32-E controller (first unplug the jumper wires mentioned before, after burning, plug it back).

堆肥箱step4(1).jpg
堆肥箱step4(2).jpg
堆肥箱step4(3).jpg

There is a new function involved here: the device will send a message to DingTalk when it's in low power mode. A robot in DingTalk needs building through the computer terminal now. First build a project group, in which create a robot assistant, and then copy the webhook of the robot assistant to Aliyun platform.

Click the small icon on the upper right successively, "save", "deploy", and "publish", and it's done.

You'll see a message in the DingTalk group when battery is running low.

When the device works normally, every 3 hours or if the button is pressed, the temperature and humidity sensor will be triggered and report data. Such information can be seen on the page of Aliyun.

The above is the whole process of compost bin transformation.