Python to build an IoT system for agriculture

By Nguyễn Hồng Quân

Elevator Pitch

At AgriConnect, we build an automatic system to help grow mushroom. Our system monitors environmental condition like temperature, humidity, carbon dioxide and control the cooling pad, sprinkler to maintain the condition in a suitable range for mushroom.

The main logic part is written in Python.

Description

At AgriConnect, we build an automatic system to help grow mushroom. Our system monitors environmental condition like temperature, humidity, carbon dioxide and control the cooling pad, sprinkler to maintain the condition in a suitable range for mushroom.

The main logic part is written in Python, running either on a BeagleBone Black board, or a cloud server. It is made to three modules: Collector to retrieve data from sensors; ControlView to give a web UI for user to see the data and set the desired condition, or schedule for actuators; ControlCenter to turn on/off the actuators based on what user input.

We also apply some asynchronous techniques, like asyncio, task queue. We encountered some technical challenge in embedded system and let’s see how we solved them.