0% found this document useful (0 votes)
77 views18 pages

Thing Speak

The Internet of Things (IoT) consists of objects with embedded technologies that can sense data and send it for a specific purpose. ThingSpeak is an open cloud platform that allows storage and retrieval of IoT sensor data for visualization and analysis. Data can be sent to ThingSpeak from devices like Arduino using libraries, and visualized using MATLAB code. Example IoT projects include environmental monitoring and smart home applications using ESP32 and ESP8266 microcontrollers.

Uploaded by

silvainxyts
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views18 pages

Thing Speak

The Internet of Things (IoT) consists of objects with embedded technologies that can sense data and send it for a specific purpose. ThingSpeak is an open cloud platform that allows storage and retrieval of IoT sensor data for visualization and analysis. Data can be sent to ThingSpeak from devices like Arduino using libraries, and visualized using MATLAB code. Example IoT projects include environmental monitoring and smart home applications using ESP32 and ESP8266 microcontrollers.

Uploaded by

silvainxyts
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Internet of Things

JOCELYN F. VILLAVERDE
Internet of
Things
The Internet of Things consists of
objects with embedded or attached
technologies that enable them to sense
data, collect them and send them for a
specific purpose
Internet
of Things
is a system of interrelated
computing devices, mechanical
and digital machines, objects,
animals or people that are
provided with unique identifiers
(UIDs) and the ability to transfer
data over a network without
requiring human-to-human or
human-to-computer interaction.

https://cdn-images-1.medium.com/max/1600/1*ck9_cs-g08kFCUXrYgwV2w.png
Internet of Things
ThingSpeak is an open cloud data platform where you can store and retrieve data.
The Internet of Things (IoT) in education includes data
storage, processing, and data visualization.
ThingSpeak™ has a simple interface that makes it easy to
learn cloud analytics and teach IoT. Then use
ThingSpeak communities to provide support for your
cloud education curriculum. ThingSpeak also supports
and integrates with Arduino®, RPI, and other hardware.
•See instant visualizations of data posted by your
devices or equipment.
•Execute MATLAB® code in ThingSpeak, perform online
analysis and data processing with live data, and see
automatic visualizations.
•Build IoT systems without setting up servers or
developing web software.
ThingSpeak
ThingSpeak™ is an IoT analytics platform service that allows you to aggregate, visualize and analyze live
data streams in the cloud. ThingSpeak provides instant visualizations of data posted by your devices to
ThingSpeak. With the ability to execute MATLAB® code in ThingSpeak you can perform online analysis and
processing of the data as it comes in. ThingSpeak is often used for prototyping and proof of concept IoT
systems that require analytics.
ThingSpeak Key Features
ThingSpeak allows you to aggregate, visualize and analyze live data streams in the cloud. Some of the key
capabilities of ThingSpeak include the ability to:

Easily configure devices to send data to ThingSpeak using popular IoT protocols.

Visualize your sensor data in real-time.

Aggregate data on-demand from third-party sources.

Use the power of MATLAB to make sense of your IoT data.

Run your IoT analytics automatically based on schedules or events.

Prototype and build IoT systems without setting up servers or developing web software.

Automatically act on your data and communicate using third-party services like Twilio® or Twitter®.
ThingSpeak
Send sensor data
privately to the cloud.

Analyze and visualize


your data with MATLAB.

Trigger a reaction.
Send Data to
ThingSpeak with
Arduino
Arduino with network connectivity

Setup ThingSpeak

ThingSpeak requires a user account and


a channel. A channel is where you send
data and where ThingSpeak stores data.
Each channel has up to 8 data fields,
location fields, and a status field. You
can send data every 15 seconds to
ThingSpeak, but most applications work
well every minute.
Send Data to ThingSpeak with Arduino
Install ThingSpeak Communication Library for Arduino

In the Arduino IDE, choose Sketch/Include Library/Manage Libraries. Click the ThingSpeak Library from the
list, and click the Install button.

To include the library : choose Sketch --- Thingspeak

Another method : File --- Examples --- ThingSpeak


Send Data to ThingSpeak with Arduino
Setup Arduino Sketch

You will need to configure the myChannelNumber and myWriteAPIKey variables

unsigned long myChannelNumber = 31461;

const char * myWriteAPIKey = "LD79EOAAWRVYF04Y";


Send Data to ThingSpeak with Arduino
Send an Analog Voltage to ThingSpeak

The WriteSingleField Arduino sketch example reads an analog voltage from pin 0, and writes it to a channel
on ThingSpeak every 20 seconds. Load the example in the Arduino IDE. Make sure to select the correct
Arduino board and COM port. Then, upload the code to your Arduino.
Send Data to ThingSpeak with Arduino
Examples

The library includes several examples organized by board type to help you get started. These are accessible
in Examples > ThingSpeak menu of the Arduino IDE.

ReadField: Reading from a public channel and a private channel on ThingSpeak.

WriteSingleField: Writing a value to a single field on ThingSpeak.

WriteMultipleFields: Writing values to multiple fields and status in one transaction with ThingSpeak.

Complete source code and examples for the ThingSpeak Library are available on GitHub.

.
Send Data to ThingSpeak with Arduino
MATLAB Visualization

Now that your data is on ThingSpeak you can see this data on ThingSpeak using the MATLAB Visualizations
app. On ThingSpeak, select Apps and then MATLAB Visualizations. Click “New”, select “Custom (no starter
code), and click “Create”.

Enter the following MATLAB code and click Run and Save:
readChannelID = 93156; fieldID1 = 1; readAPIKey = 'MCI6XM81ZFOY8UCE';

%% Read Data %%

data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 10, 'ReadKey', readAPIKey);

%% Visualize Data %%

plot(time, data);
IoT Projects
ESP32 Based IoT Projects

ESP32 is a popular low-power system on chip microcontrollers with integrated Wi-Fi and dual-
mode Bluetooth, making it suitable for designing and prototyping IoT solutions. This section covers various
basic tutorials and projects to start with ESP32 NodeMCU based IoT projects. These IoT projects covers a
wide range of popular IoT projects and applications to learn and build interesting applications.
IoT Projects
ESP32 Based IoT Projects

ESP32 is a popular low-power system on chip microcontrollers with integrated Wi-Fi and dual-
mode Bluetooth, making it suitable for designing and prototyping IoT solutions. This section covers various
basic tutorials and projects to start with ESP32 NodeMCU based IoT projects. These IoT projects covers a
wide range of popular IoT projects and applications to learn and build interesting applications.

ESP8266 Based IoT Projects

ESP8266 is a Wi-Fi module with in-built microcontroller mainly used for making IoT applications due to its
low cost and its compatibility with other microcontrollers. Below are some tutorials and projects to start
with ESP8266 based IoT projects.
Resources
https://github.com/mathworks/thingspeak-arduino/tree/master/examples

https://github.com/mathworks/thingspeak-arduino

https://www.mathworks.com/support/search.html/videos/iot-data-explorer-for-thingspeak-and-matlab-
1597832862566.html?fq=asset_type_name:video%20category:thingspeak/index&page=1

https://www.youtube.com/watch?v=4Mi-hDa8e-4

https://www.youtube.com/watch?v=2tCOMeBYs30

You might also like