Hackster – Internet of Things https://blogs.mathworks.com/iot Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. Fri, 12 Jan 2018 18:40:04 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 Don’t Get Stuck in the Mud, Understand Tide Levels with MATLAB https://blogs.mathworks.com/iot/2017/09/14/dont-get-stuck-in-the-mud-understand-tide-levels-with-matlab/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/09/14/dont-get-stuck-in-the-mud-understand-tide-levels-with-matlab/#respond Thu, 14 Sep 2017 14:25:28 +0000 https://blogs.mathworks.com/iot/?p=2189

Tides go up and down. But, the question is when and how will the tide levels change in the future. If you are planning a boating trip or trying to understand how the wind affects tide levels during... read more >>

]]>
Tides go up and down. But, the question is when and how will the tide levels change in the future. If you are planning a boating trip or trying to understand how the wind affects tide levels during storms, you want to predict the tide levels using data that you have collected locally. In a tutorial published on Hackster.io, you will be able to learn how to use ThingSpeak to collect sensor data that represents the tide height at a given time, use MATLAB to preprocess the data, use MATLAB to predict future tide levels, and use ThingSpeak to send alerts. Here’s what the system looks like installed at a dock in Cape Cod.

The tide height is calculated using an ultrasonic level sensor. This measurement is taken periodically and then sent to ThingSpeak, an IoT analytics cloud platform by MathWorks, using a cellular modem. The system can easily be adapted to collect data about any environmental system such as greenhouses or oyster farms.

Once you have the data in a ThingSpeak channel, you use MATLAB to preprocess and clean up the data. The raw data some times has extraneous values caused by environmental factors such as lighting, cabling, and electrical interference. Sometimes, you have missing data caused by connectivity issues. It is important to clean up the data before you use the data in your analysis.

To predict future tide levels and send alerts when the tide is rising or falling, we use the MATLAB Analysis app on ThingSpeak. With MATLAB, we can use historical data to make a prediction about the future tide levels. This predicted tide level can be used to help schedule a boating trip or plan for a water surge after a storm.

 

Tide Alerts

Remembering to check the tide level when fishing or lazing on the beach is not particularly convenient. A much more useful approach is to have the system send a message when the time has come to pack up and start heading back to the dock. The timing of the alert depends on how much water depth is needed by a particular boat. Larger boats need higher water levels in order to move without getting stuck in the mud. One way to send alerts is to use ThingSpeak and MATLAB to detect changes in tidal height and send alerts.

Conclusion

Developing a tide monitoring system provided accurate tide level measurement and tide level prediction, with the added ability to send alerts. Robert has been able to avoid being stuck in the bay by providing enough time to get back to his dock using this system. This project also serves as a useful approach to solving many data-driven puzzles by having a reliable way to collect, analyze, and act on data. Using MATLAB, the accuracy of the tide levels improved by understanding the proper tide levels at a specific location and when the tide levels will change. If you used the general tide forecast, you would have to account for several inches of tide height difference.

Resources

]]>
https://blogs.mathworks.com/iot/2017/09/14/dont-get-stuck-in-the-mud-understand-tide-levels-with-matlab/feed/ 0
Weather Station with Particle, SparkFun, ThingSpeak, and MATLAB https://blogs.mathworks.com/iot/2016/06/06/weather-station-data-analysis/?s_tid=feedtopost https://blogs.mathworks.com/iot/2016/06/06/weather-station-data-analysis/#respond Mon, 06 Jun 2016 14:46:25 +0000 https://blogs.mathworks.com/iot/?p=1837

[Haodong Liang] has released a weather station project with full MATLAB data analysis, device source code, and procedures on Hackster.io. He used the Particle Electron to connect the SparkFun weather... read more >>

]]>
[Haodong Liang] has released a weather station project with full MATLAB data analysis, device source code, and procedures on Hackster.io. He used the Particle Electron to connect the SparkFun weather station to ThingSpeak anywhere covered by a 2G/3G cellular data network. The project demonstrates how to build your own and start exploring data collected by ThingSpeak with MATLAB.

MathWorks Weather Station

The project also shows you how to use MATLAB to get very detailed visualizations and data analysis of the data collected by the weather station. Some of the examples include histograms of temperature, humidity, and pressure, curve fitting, daily comparisons, and 3D plots of temperature.

MATLAB weather station temperature plot

Visit Hackster.io for the complete tutorial to build your own weather station, connect it to the internet with the Particle Photon, collect your data with ThingSpeak, and do data analysis with MATLAB.

[via Hackster.io]

]]>
https://blogs.mathworks.com/iot/2016/06/06/weather-station-data-analysis/feed/ 0
ThingSpeak is a New Hackster Platform for Sharing Projects https://blogs.mathworks.com/iot/2016/03/31/thingspeak-is-a-new-hackster-platform-for-sharing-projects/?s_tid=feedtopost https://blogs.mathworks.com/iot/2016/03/31/thingspeak-is-a-new-hackster-platform-for-sharing-projects/#respond Thu, 31 Mar 2016 15:48:10 +0000 https://blogs.mathworks.com/iot/?p=1760

Hackster.io announced that ThingSpeak is now a platform on their project sharing website! The ThingSpeak platform joins the likes of Amazon Echo, ESP8266 Wi-Fi, and Particle.io platform. ThingSpeak... read more >>

]]>
Hackster.io announced that ThingSpeak is now a platform on their project sharing website!

Hackster Platforms

The ThingSpeak platform joins the likes of Amazon Echo, ESP8266 Wi-Fi, and Particle.io platform. ThingSpeak users can easily document, share, and reproduce hardware and Internet of Things projects using Hackster.io. We are already off to a great start with 13 documented projects and tutorials and 31 community members. Check out our platform on Hackster.io to discover great projects and build your own IoT projects.

]]>
https://blogs.mathworks.com/iot/2016/03/31/thingspeak-is-a-new-hackster-platform-for-sharing-projects/feed/ 0
Getting Started with IoT using the Particle Electron and ThingSpeak https://blogs.mathworks.com/iot/2016/03/08/getting-started-with-iot-using-the-particle-electron-and-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2016/03/08/getting-started-with-iot-using-the-particle-electron-and-thingspeak/#comments Tue, 08 Mar 2016 19:59:17 +0000 https://blogs.mathworks.com/iot/?p=1737

Julien Vanier over at Hackster.io created a new tutorial showing you how to get started with the Internet of Things using the new Particle Electron and ThingSpeak. The Electron is a new 3G connected... read more >>

]]>
Julien Vanier over at Hackster.io created a new tutorial showing you how to get started with the Internet of Things using the new Particle Electron and ThingSpeak.

Particle Electron Kit using ThingSpeak IoT

The Electron is a new 3G connected IoT device using cellular data and works anywhere you can get 3G in the United States. It is really awesome to plug-in a device and get it connected without the issues of Wi-Fi. This development kit also makes it possible to build battery-powered, mobile sensors. Good thing that ThingSpeak supports GPS data and offers sensor data analytics.

Check out Julien’s tutorial to go “From 0 to IoT in 15 Minutes” and other ThingSpeak projects on Hackster.io.

]]>
https://blogs.mathworks.com/iot/2016/03/08/getting-started-with-iot-using-the-particle-electron-and-thingspeak/feed/ 2
Uber Ride Analysis with ThingSpeak and MATLAB https://blogs.mathworks.com/iot/2016/02/05/uber-ride-analysis-with-thingspeak-and-matlab/?s_tid=feedtopost https://blogs.mathworks.com/iot/2016/02/05/uber-ride-analysis-with-thingspeak-and-matlab/#respond Sat, 06 Feb 2016 03:17:02 +0000 https://blogs.mathworks.com/iot/?p=1641

Have you ever wondered how long it will take to get an Uber at your location? This project uses ThingSpeak to log the ETA for an Uber service based on your latitude and longitude. We will use... read more >>

]]>
Have you ever wondered how long it will take to get an Uber at your location? This project uses ThingSpeak to log the ETA for an Uber service based on your latitude and longitude. We will use ThingSpeak’s MATLAB Analysis and TimeControl apps to track Uber’s ETA over time.

Uber Ride Estimate

The Uber API allows you to pass a latitude and longitude to determine the estimated time of arrival for an Uber car. The API also allows you to schedule a car. I have made a button that requests an Uber car and also schedules an Uber at the right time.

MATLAB Analysis Code

% Read the ThingHTTP for 'Uber Ride Estimate'
data = webread('https://api.thingspeak.com/apps/thinghttp/send_request?api_key=XXX')

% Convert the response to a number
eta = str2num(data);

% Write the data to the 'Uber Ride Estimate Data' ThingSpeak Channel
thingSpeakWrite(Channel_ID,eta,'WriteKey','XXX');

Each time the MATLAB Analysis code is executed, it will write the estimated time of arrival (ETA) for Uber to your ThingSpeak channel. To track the ETA over time, schedule the MATLAB code with TimeControl. I am running the code every 5 minutes to get an idea of when the peak times are for Uber to pick me up at my office in Natick, MA. Check out the ThingSpeak channel number 840700 to see the estimated times.

Uber_Ride_Estimate_Data

Step-by-step project details are available at Hackster.io.

]]>
https://blogs.mathworks.com/iot/2016/02/05/uber-ride-analysis-with-thingspeak-and-matlab/feed/ 0