Skip to content

AggroFox: IoT Sensing, notifications, dashboard and analytics platform for urban and large-scale agriculture,with automated irrigation, using Sigfox technology.

Notifications You must be signed in to change notification settings

EddOliver/AggroFox

Repository files navigation

AggroFox is an IoT sensing, notifications, dashboard and analytics platform for urban and large-scale agriculture, with automated irrigation, using Sigfox technology.

Table of contents

Introduction:

Imagine a world where there is not enough food for you and your loved ones, an arid world where there is nothing to satisfy your hunger. Because of the current methods of agriculture, where excess fertilizers and pesticides have been used. These methods are not sustainable and we have to find new methods to optimize crops. Remember, we cannot create new land to grow crops, and the water reserves are being reduced each year. For that, Industry 3.0, with IoT, Big Data and predictive analysis solutions have to emerge to avoid this scenario from happening.

Problematic:

Let's take a look at some FACTS:

• The population in Mexico (Both of the author's own country) and in the world will grow.

• By 2050 the production of food will have to DOUBLE to feed this population.

• The amount of arable Land will not increase.

• The amount of Water available will be decreasing.

• Sustainable Disruption is needed.

• Current methods are insufficient for this.

• Infrastructure is costly.

• Most fields are in remote areas.

• Urban agriculture needs a cheap and readily available solution, for it to be sustainable.

If only there was a way to monitor the field through a network of sustainable sensors, which could be monitored in real time 365 days a year, performing data analytics in the cloud and taking weather predictions to generate models. Taking all this information to manage resources such as water, in order to save most of them, and above all being powered by solar panels ....... oh wait, there is Aggrofox!

Our Solution:

Our solution to the problem was to create a sustainable platform of sensing and irrigation automation with predictive analysis via cloud. With one objective in mind: SAVE WATER.

1.- Using temperature with humidity, soil moisture and soil temperature sensors, we used a Pycom FiPy dev board with Sigfox technology to obtain sensor data every 6 min. Sigfox chosen because the characteristics of long range and low power are excellent for remote areas.

  • Each batch of sensing is done at this frequency to send 120 data per day and not pass the data quota of Sigfox which is 140 data packets per day.

  • For this system it was decided to use an Arduino board to obtain the data from the sensors (using the vast array of libraries from Arduino) and send them through Serial at 9600 baud rate to the Pycom FiPy board.

  • Once on the Pycom board we receive the data from the sensors and through Sigfox we send them to the Sigfox Backend platform.

On the image above you can see at: A)The main sensor circuit, with the Pycom FiPy with Sigfox and the sensors connected, also the solar power management. B) The irrigation system circuit that uses a Particle Photon and a Solenoid Valve. And C) an implementation of the system.

This other image shows the finished Hardware product, with the irrigation system on the left and the sensor system with its solar panel on the right.

2.- Once the data is in the Sigfox Backend, we send the data through a callback to the Thingspeak website through its API (more information in the link below).

Link: https://github.com/EddOliver/AggroFox/tree/master/Sigfox%20Configuration/Aggrofox%20Conf

3.- Once we have the data at Thingspeak, through the Thingspeak API we send the data to IBM Bluemix.

  • On the Bluemix platform, we made it possible to develop almost any application with the obtained data. (All the applications are based on Node Red to make the prototyping easier).

  • Examples of these applications:

    Generate databases of our crops and their conditions.

    Do data analysis to obtain predictive models in the long term.

    Water automation systems with the data obtained (as we do in this project).

    Crop yield analysis.

3.1- We made a Dashboard with the data obtained for the complete and simple visualization of the data.

In this image you can see the Node-RED flow and the Dashboard we made.

These other images above show the Web Desktop Dashboard and some screenshots of the mobile version.

  • For the application, we made a data crossing with the OpenWeatherMap API, to perform the control of an electrovalve connected to a Particle Photon microcontroller.

  • The crossing of data obtained is used to check if that day is going to rain and thus not use irrigation water in crops.

  • Also if the system detects that water is needed in the field by the humidity sensors, the irrigation system is turned on.

  • In turn once a day an email will be sent to the farmer with the general information of his field or he can check anytime on his dashboard.

  • Also everytime the irrigation system is online, a notification will be sent.

Here are some images of the solution implemented on various crops:

In the images you can see an Hydroponic Chili,an Onion Culture and the implementation on a Fig Tree

Here is a Video of AggroFox in action!, click on the image:

AggroFox VIDEO!

Where should I start:

1.-Do the first configuration for your board.

Link: https://github.com/EddOliver/AggroFox/tree/master/Sigfox%20Configuration/First%20Configuration

2.- Enter the following folder: AggroFox Configuration, and complete all the steps to perform the corresponding configuration.

Link: https://github.com/EddOliver/AggroFox/tree/master/Sigfox%20Configuration/Aggrofox%20Conf

3.- Do the Arduino configuration.

Link: https://github.com/EddOliver/AggroFox/tree/master/Arduino%20Code

4.- Do the Pycom configuration.

Link: https://github.com/EddOliver/AggroFox/tree/master/Pycom%20Code

5.- Make the circuits:

Link: https://github.com/EddOliver/AggroFox/tree/master/Circuit

6.- Link it to IBM IoT Cloud for amazing dashboards, data storage and access to other cloud services.

Link: https://github.com/EddOliver/AggroFox/tree/master/IBM%20cloud%20AggroFox

7.- Automation of irrigation via IBM cloud with weather forecast.

Link: https://github.com/EddOliver/AggroFox/tree/master/Irrigation%20System

8.- Going Green (Add a Solar panel to your sensor module).

Link: https://github.com/EddOliver/AggroFox/tree/master/Solar%20Power

Enjoy!!

Future Rollout

• Adding a water fluxometer to know exactly how much water we use.

• Custom PCB for all the hardware components.

• Maybe migrate to the SiPy version of the Pycom Board.

• Get the data to a SQL database for long term predictive ML models.

• Expand to the use of several other clouds such as AWS and Google cloud which we already dominate.

• Replace the Particle Photon with Sigfox for the actuators so it uses only one communication platform.

References:

All the information about the technology used and direct references are in our wiki:

Wiki: https://github.com/EddOliver/AggroFox/wiki

Top

About

AggroFox: IoT Sensing, notifications, dashboard and analytics platform for urban and large-scale agriculture,with automated irrigation, using Sigfox technology.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages