Agri-2-Eye

by Agri2eye in Circuits > Sensors

308 Views, 1 Favorites, 0 Comments

Agri-2-Eye

83275666_2554469824840752_1099407045322342400_n.jpg

For the first semester of the fourth year of our engineering school, we choose to work on a agriculture monitoring system. It has to measure some relevant value for the plant growth. The device must be autonomous in energy and use a LPWAN protocol.

Step 1 : the Components of AGRI-2-EYE

Microcontroler :

STM32L432KC

Sensor :

LPWAN Communication :

Wisol SFM10R1

Alimentation :

Solar Panel 6V - 2W

Screen display :

ARCELI SSD1306

Step 2 : Agri-2-EYE Prototype

82241852_525443611404183_2033099932944039936_n.jpg

Step 3 : Project Schematics

2.PNG
3.PNG
Capture (1).PNG

For the project we need 3 PCB :

  • a power supplier PCB
  • an interfacing PCB
  • an outside sensor PCB

Step 4 : Mbed Development

The Arm Mbed IoT Device Platform provides for users an online platform easy to use for Mbed compatible hardware. It allow access of huge amount of library. The Mbed community develops library, gives access to exemple software for compatible device and helps users for their issues.

How does Mbed Platform work?

  1. The first step is to go to the Mbed website : https://www.mbed.com/en/
  2. Create an account
  3. Go to compiler menu and chose your device : STM32L432KC (our microcontroler)
  4. Create a project
  5. Import useful library ex : DHT library
  6. Start the program
  7. Compile the code
  8. Export to the device with the micro-usb port connect between the PC and the STM32L432KC

Pay attention to the pin map to correspond with the schematics.

Step 5 : Sigfox Configurations

Capture d’écran 2020-01-20 à 20.05.26.png
Capture d’écran 2020-01-20 à 20.14.18.png

For the LPWAN Protocol we choose a Sigfox Module. Sigfox protocol is really useful for IoT application because is communication not consume a lot of energy, and it also can send data in long range of distance. It communicates with the backend of Sigfox. In this project the module help to transmit data to the IoT platform.

You need to connect the module with the CPU (Like in the picture 2).

To send data you have to use AT command format. For exemple :

AT send OK,

AT$T? return the temperature value.

We use this format to send each sensor values.

Step 6 : Agri-2-EYE Codes

Capture d’écran 2020-01-20 à 20.30.31.png

We develop an cpp code based a sensor library. In the main you can find all code you need to understand how we configure the screen display, the transmission...

In the picture you can see how we send the sensor value.

Downloads

Step 7 : Ubidots Cloud Platform

logo_color.9c7e99e.png

The product owner choose Ubidots as a data storage platform. To use it you have to follow step by step the process.

  1. Go to https://ubidots.com/ and create an account
  2. Select the device and create a new device with a click on the "+"
  3. Choose a label and name
  4. Configure the token to be connect with Sigfox backend
  5. In the dashboard add all widget you need
  6. Select add variable and choose the devise you created.

Step 8: Our Ubidots Interface

Capture d’écran 2020-01-20 à 20.49.02.png
Capture d’écran 2020-01-20 à 20.49.27.png
Capture d’écran 2020-01-20 à 20.49.39.png
Capture d’écran 2020-01-20 à 20.49.49.png

Step 9: Our Final Device

Projet_final.jpg