Thing Speak
Thing Speak
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.
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.
Trigger a reaction.
Send Data to
ThingSpeak with
Arduino
Arduino with network connectivity
Setup ThingSpeak
In the Arduino IDE, choose Sketch/Include Library/Manage Libraries. Click the ThingSpeak Library from the
list, and click the Install button.
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.
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 %%
%% 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 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