File Exchange

image thumbnail

Analyzing Weather Data from an Arduino-based weather station

Analyze data from a weather station connected to ThingSpeak

17 Downloads

Updated 22 Mar 2019

View License

This example illustrates how to analyze data from a weather station connected to ThingSpeak, an IoT analytics platform. The data is visualized and analyzed in MATLAB. The example shows how to visualize wind speed and direction, calculate and plot dew point, and verify pressure trends. It also demonstrates some techniques to remove outlier data and fill in missing data.
If using MATLAB versions R2014b through R2018b, this example requires the user to first install the MATLAB Support for ThingSpeak which is available here:
http://www.mathworks.com/matlabcentral/fileexchange/52244
If using R2019a or higher, there is no need to download the ThingSpeak support as the needed functions are built-in to MATLAB.
For more information on IoT andThingSpeak, see the following resource pages:
http://www.mathworks.com/thingspeak
www.mathworks.com/solutions/internet-of-things

Cite As

MathWorks Internet of Things Team (2019). Analyzing Weather Data from an Arduino-based weather station (https://www.mathworks.com/matlabcentral/fileexchange/47049-analyzing-weather-data-from-an-arduino-based-weather-station), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Naïm Samet

Could somebody give me the reference of Arduino card and components please?

Vivek Asati

The example is not up to date with current Thingspeak Support Toolbox. Ex.: function thingSpeakFetch is now called thingSpeakRead, and DateRange argument works differently.

Daniel

Updates

1.4.1

Re-uploaded file.

1.4.00

Updated code to use latest version of thingSpeakRead. Updated plotting code to use yyaxis instead of plotyy.

1.3.0.1

Updated description.

1.3.0.1

Updated license

1.3.0.0

Added new resource link in description.

1.2.0.0

Updated description text.

1.1.0.0

Updated File for initial release.

MATLAB Release Compatibility
Created with R2019a
Compatible with R2014b to any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor