IoT Data Analytics with Cloudchip

Project description 

Building a cloud based monitoring system will reduce the cost of maintaining servers, to avoid data losses and to make access easy with multiple internet connected devices (computer, tablet, mobile phone) at the same time anywhere in the world. There are various industrial areas it requires you to monitor temperature and update the status to the cloud. Food preservation is one of the areas where the temperature must be maintained at the lowest level. IOT based temperature monitoring system help us to monitor the food preservation system temperature and update the data to the cloud at the regular interval.

Tools used: 

  1. Software Tools:

Hardware requirements 

  1.  Components

  1. Connections

           

  • Download Cloudchip IoT Libraries for Arduino IDE:

Open Arduino, Sketch->Include Library->Manage libraries->type “Cloudchip” 

                  

 

—>Click on Install and close.

Open Arduino IDE  go to Files->Examples->CLoudchip IoT->device_telemetry.

       

Login/Register to the Cloudchip here.

                 

 

  • After logging in to the Cloudchip, the following page will appear.

                         

Click on add a new device to the cloudchip, on  the below-right corner on the screen

 

  • A screen pops up for adding a new device.
          •  

 

 

  • Test devices will be added to the devices.

 

 

  • Click on the Test device, press and copy access token

 

  • Next, Go to Arduino IDE->File->Examples->Cloudchip IoT->device_telemetry,

  • Paste the access token in it…
  • Change the SSID with your WiFi username and password with WiFi password and upload the sketch to ESP32( To upload click on Upload.)

 

  • Go to the Cloudchip website Devices ->Test-> Telemetry 


  1. Code:

#include “DHT.h”
#include <Cloudchip.h>
Cloudchip cloudchip;
#define DHTPIN D7       // Digital pin connected to the DHT sensor

#define DHTTYPE DHT22     // DHT 22  (AM2302), AM2321
//#define DHTTYPE DHT11   // DHT 11
//#define DHTTYPE DHT21   // DHT 21 (AM2301)

#define SSID     “WiFi UserName”
#define PASSWORD “WiFi Password”
#define Token    “Clouchip Device Token”


DHT dht(DHTPIN, DHTTYPE);
float old_value = 0;

void setup()
{
  Serial.begin(115200);
  cloudchip.WiFiInit(SSID,PASSWORD);
  cloudchip.Credentials(Token);
  dht.begin();
}

void loop()
{
  cloudchip.run();
  float h = dht.readHumidity();
  float new_value =  dht.readTemperature();
  cloudchip.deviceTelemetry(“humidity”,h);
  cloudchip.deviceTelemetry(“temperature”,new_value);
  Serial.print(“Humidity: “);
  Serial.println(h);
  Serial.print(“%  Temperature: “);
  Serial.print(new_value);
  Serial.println(“°C “);
  delay(5000);
}

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *