This project is aimed at presenting a soil monitoring system obtained by integrating Agrumino Lemon with the Blynk IoT platform.
RequirementsFor this project, just the Lifely Agrumino Lemon will be needed.
Step 1 - Blynk basic setup- Create an account on https://blynk.io/
- Create a new template by clicking the following symbol from the left of the page
- In the newly opened dialog, in fields Hardware and Connection Type select respectively ESP8266 and WiFi
WARNING: After completing the changes and creating the template, save them by clicking the relative button at the top right of the screenStep 1.1 - Configuring the datastreams
- Go to the Datastreams tab
- Create a new datastream, selecting Newdatastream > VirtualPin
- The first data flow we will set is the one relating to the ambient temperature. This can be done by filling in the relevant fields within the dialog, as shown below:
With the same procedure we can also add more datastreams, using the following parameters each of them:
Soil Moisture
- Name: Soil moisture
- Pin: V1
- Data type: Integer
- Units: Percentage, %
- Min: 0
- Max: 100
Illuminance
- Name: Illuminance
- Pin: V2
- Data type: Integer
- Units: Lux, lx
- Min: 0
- Max: 16000
BatteryLevel
- Name: Battery level
- Pin: V3
- Data type: Integer
- Units: Percentage, %
- Min: 0
- Max: 100
To configure the web dashboard go to the relative tab as shown in the following figure
Then:
- Scroll down the widget box on the left
- Double click or drag the relative widget on the dashboard (in our case we selected the Gauge widget)
- Go into the settings of the widget
- Give the widget a name and connect it to its datastream (previously created)
You can repeat this process to add other data representations. At the end of the procedure, the screen will look like this. In our case we have added an additional chart to show the time trend of the temperature.
- Click the Search button on the side of the screen, as shown in the figure
- Add the device by clicking on the New Device button
- And choose From template
- From the relative box select the template you just created and click on Create button
- Download the code from the link below
- Open the file and go to the following lines of code (see figure). These must be modified by taking the relative values from Blynk
- To do this, open the device page on Blynk and click on the Device Info tab
- Copy the values highlighted in the figure and replace them within the code
- To set up the device connection, on the same sketch, go to the following lines of code and fill in the SSID and password fields with your WiFi credentials
- As a final step, open the official Arduino IDE and upload the sketch you just modified to the board.
- If the procedure was successful, the output on the serial monitor should look like the following
NOTE: To install the Agrumino library on the Arduino IDE or for further problems, see the official Agrumino guide at the following link: Agrumino Dev Guide - rev 0.4_ENG (lifely.cc)
This is an example of what the output on the Blynk page should look like at this point
This project shows how simple it is to integrate Agrumino through the Blynk IoT platform to obtain constant soil monitoring.
Possible applications, in this sense, could be intelligent irrigation and monitoring systems, aimed at improving the health of our plants.
Comments