15. Measure Temperature and Upload data in ThingSpeak
Overview of ThingSpeak IoT platform
According to its developers, "ThingSpeak is an open-source
Internet of Things (IoT) application and API
to store and retrieve data from things using the HTTP
protocol over the Internet or via a Local Area
Network. ThingSpeak enables the creation of sensor logging applications,
location tracking applications, and a social network of things with status updates".
ThingSpeak was originally launched by ioBridge in 2010 as
a service in support of IoT applications.
ThingSpeak
has integrated support
from the numerical
computing software MATLAB from MathWorks, allowing
ThingSpeak users to analyze and visualize uploaded data using MATLAB without
requiring the purchase of a MATLAB license from MathWorks.
ThingSpeak has a close relationship with MathWorks,
Inc. In fact, all of the ThingSpeak documentation
is incorporated into the MathWorks' MATLAB documentation site and even enabling
registered MathWorks user accounts as valid login credentials on the ThingSpeak
website. The terms of service and privacy policy of ThingSpeak.com are between
the agreeing user and MathWorks, Inc.
Connection of LM35:
The Output pin of LM35 is Connected to A0 pin of ESP8266 Module, Ground
pin is connected to the ground pin of ESP8266 Module and VCC is connected to
3V3 Pin of ESP8266 module.
Method to interface IFTTT:
Step1: Search Thingspeak in browser and open it.
Step2: click on “Get Started For free” and create account.
Step3: click on New channel.
Step4: Edit name and choose field and
its name. then, click on save channel according to below figure.
Step5: After save channel open a new
window. In this window have field chart, API key, channel setting and many
more. Now click on API keys and get API keys as shown in figure.
Method to make code using TUNIOT:
Step1: Search TUNIOT in browser and
open it. Then, we see Two Blocks, first block is Setup and Second Block is main Loop. In Left side given the blocks.
Step2: first, we disconnect network.
Go-to—IOT—IOT STATION—Select Disconnect.
Step3: Now Esp8266 Connect with a network.
So, we use network ssid and password.
So, GOTO—IOT—IOT Access Point—WIFI ssid and password block. And change ssid and password
according to your WIFI network.
Step4: when network is not connected
then network is continuously search and try to connected. GOTO—IOT—Select
Repeat while.
Step5: Then Go to—IOT—Thingspeak and
Select field Block and in place of value we delete Text block and add Analog
pin. So, go to—IN/OUT— ANALOG—Select Analog pin according to figure. And also
fill API key in API key Text bar.
Step6: then add delay block and enter delay value is 3000
milliseconds and match all the blocks according to the below figure.
Step7: block arrangement is completed then convert all the
blocks in code. Then click on Video icon
and enter name and press Ok. After, downloading the Code open in Arduino IDE
and upload in NodeMCU.
Comments
Post a Comment