Skip to content

WebSystemProject/GoogleIoT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoogleIoT

Team Members

1. Abhay Tyagi

2. Manohar Singh Rajawat

3. Payal Singh

4. Vijayalaxmi Patil

This project is based on nodemcu mictocontroller board.

Introduction to Google Cloud IoT

1. What is Google IOT cloud

Google IoT services collects real time data from IoT devices. They collect data at the edge or in the cloud.This is a fully managed service provided by Google. It allows to us to securely connect, ingest and manage data from IoT devices. The combination of Cloud IoT Core with other services on Google's cloud platform provide us a complete package to collect, manage, process,analyze and visualize Iot data.

2. Benefits Of Google Cloud for IoT devices

IoT(Internet of Things) generates lots of data. We need an efficient,affordable and scalable method to manage these devices.There comes Google cloud in picture. It provides a coherent mechanism to handle the informations generated by the devices. Google Cloud provides a platform to store, analyze and process the data.

Key Features of Google cloud IoT

  1. Google cloud provides tools for all our IoT applications starting fom ingestion to intelligence.
  2. It lets us automatically predicts when equipment needs maintenance.
  3. It provides feature of Real-time asset tracking.

3. Device Management in Google Cloud:

1. IoT Core device manager:

This is a fully managed service. IoT Core device manager manages the devices in the google cloud.It handles registration, authentication, and authorization inside the Google Cloud resource hierarchy as well as device metadata stored in the cloud. It has the ability to send device configuration from the service to devices.

2. Ingestion:

It is a process of importing data from devices into the Google Cloud services. Depending upon the data like whether it is telemetry or operational information about the devices, Google cloud provides different ingestion services.

3. IoT Core MQTT:

MQTT stands for Message Queue Telemetry Transport. It is a messgaing protocol for the Internet of Things. It is an OASIS standard protocol used for IoT connectivity. This is very simple and lightweight messaging protocol. It is basically designed for the devices which has low bandwdth,high-latency.

IoT Core provides a secure MQTT messaging protocol for IoT devices and they are managed by IoT core. The IoT core MQTT directly connects with Google cloud Pub/Sub. The advantages of using this protocol is that with the help of configuration management feature, it can send real-time telemetry data and can immediately receive messages sent from the cloud to the device.

4.Pub/Sub

It gives globally durable message ingestion service. It helps to connect to other Google Cloud services like ingestion, data pipe lines and storage systems. If we create topics for streams/channels , we can enable different components of our application in order to subscribe to certain streams of data. We do not need to construct subscriber-specific channels on our IoT devices.

Introduction to Project on Google IoT

Project Title: Google Based IoT Cloud Service - Weather Temperature Monitoring

Hardware Requirements:

  1. Microcontroller - Nodemcu esp8266
  2. Sensor - BME 280
  3. Breadboard
  4. Jumper Wires
  5. USB cable

Flow Diagram Of Project

flowdiagram

Steps

1. Read data From the sensor with microcontroller

ESP8266 Arduino code prints BME280 sensor data temperature, pressure, humidity, altitude to the Arduino Serial Plotter (9600)

2. MQTT bridge

MQTT client running on ESP8266 collects data from BME280 and sends to Google cloud IoT

It uses Google Cloud IoT Core JWT and Arduino MQTT libraries

a. MQTT Client

Uses the Google Cloud IoT Core JWT and Arduino MQTT libraries

b. MQTT Bridge

Connects IoT device to Google Cloud IoT Core using Google PUB/SUB Broker.

3. Setup MQTT in google cloud

1. Creating Google Pub/Sub Topic in Google Cloud

To create a Cloud Pub/Sub topic, run:

gcloud pubsub topics create mytopic

create pub/sub topic

2. Creating Subscription on Pub/Sub

create Subscription on Pub/Sub

3. publishing Message on Pub sub

publishing Message on Pub sub

4. listening on pub/sub

listening on pub/sub

4. Registtry and device creation on Google Cloud

Create Registry for the Project

registry1

Set Registry Properties

registry2

In cloud Pub/Sub topics create a topic

registry3

registry4

Registry created details

registry5

Go to devices and select CREATE A DEVICE

devices1

Add Device ID and click create

devices2

In Registry details you can see your device details

devices3

Setting up BigQuery

bigQuery1

bigQuery2

bigQuery3

bigQuery4

bigQuery5

Setting up DataFlow

DataFlow DataFlow DataFlow DataFlow

Setting up Google Storage

googleStorage1 googleStorage2 googleStorage3 googleStorage4 googleStorage5 googleStorage6 googleStorage7

Setting up Pub-Sub

pubSub1

pubSub2

pubSub3

pubSub4

pubSub5

pubSub6

pubSub7

Future of Google IoT cloud

Every year the number of IoT devices keep increasing. The data generated by these devices are very extensive. These data can be used to provide powerful insights. This is one of the biggest growth area especially with the arrival of 5G technology. The data generated by these IoT devices are different. Some of the data types are used to provide GPS co-ordinates, temperature, pressure, humidity, vehicle speed, etc. These are very complex data and need a reliable platform to analyze. Cloud Computing will help to analyze and provide insights on data.

Conclusion

As the number of IoT devices keeps increasing the data generated by them will increase multiple folds. Cloud Computing plays a major role in storing, analyzing and providing insights on the data. Google Cloud offers a complete package where these data can be stored and analyzed.

References

  1. https://mqtt.org/faq/
  2. https://cloud.google.com/solutions/iot-overview
  3. https://cloud.google.com/solutions/iot#section-7
  4. https://cloud.google.com/solutions/iot
  5. https://cloud.google.com
  6. https://nodemcu.readthedocs.io/en/release/
  7. https://protosupplies.com/product/gy-bme280-pressure-humidity-temperature-sensor-module/

About

This project is based on nodemcu mictocontroller board.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages