"Connected plant" by using Nucleo, Wifi shield, environmental and Gas sensor | Students Mini Project

Document created by HAMDI Mustapha on May 12, 2017Last modified by HAMDI Mustapha on May 13, 2017
Version 5Show Document
  • View in full screen mode

This mini project "connected plant" was realised by a First-Year Engineering (FYE) team from Insat, the project consists of gathering data (Temperature, pressure, humidity, CO2) from a plant and sending them to IBM QuickStart by using Nucleo and Wifi sheild.

Used sensors : Environmental sensor (X-NUCLEO-IKS01A1) and Co2 sensor MQ5.

 

You should use free Pins : D12 and D13 for heating and reading analog from MQ5 sensor:

DigitalOut heater(D12);
AnalogIn sensor(D13);

 

 

You can connect through Wifi to IBM MQTT cloud https://quickstart.internetofthings.ibmcloud.com by using X-NUCLEO-IDW01M1 Wi-Fi expansion board.

 

Used MBED Ecosystem :

IDW01M1_Cloud_IBM - a mercurial repository | mbed 

MQTT message code: 

-----

heater = 1;
wait(0.1f);
heater = 0;
value = 1000*sensor;
sprintf(buf,
"{\"d\":{\"ST\":\"Nucleo-IoT-mbed\",\"Temp\":%0.4f,\"Pressure\":%0.4f,\"Humidity\":%0.4f,\"CO2\":%1.0f}}",
temp, press, hum,value);

----

Team :

Eya BOURGUIBA

Naouel CHERIF 

Streaming via IBM Quickstart :

CO2 test by using candle 

Humidity streaming:

1 person found this helpful

Attachments

    Outcomes