Hans on IoT

ThingSpeak, MATLAB, and the Internet of Things

IoT Quick Start With the Arduino MKR1000 and ThingSpeak 5

Posted by Hans Scharler,

If you are looking to start with the Internet of Things, then try out the Arduino MKR1000 and connect it to the ThingSpeak IoT Platform. We have put together a complete tutorial that uses the MKR1000 to collect data about your Wi-Fi signal and send it to ThingSpeak for storage, analysis, and visualization.

Arduino MKR1000

The Arduino MKR1000 is a great starting point when learning about the “things” in IoT. The MKR1000 has a microcontroller, Wi-Fi module, encryption module, and a battery-charging circuit. It’s easy to get started and once you get it connected to ThingSpeak, you have a lot of “cloud power”. ThingSpeak has a suite of apps to allow the Arduino to post messages to Twitter, do data analysis, show charts and visualizations, and be controlled by schedules and external events. With these building blocks you can prototype any IoT system.

ThingSpeak Channel Data

Once you have your data on ThingSpeak, you can analyze and visualize the data with built-in MATLAB apps.

[via ThingSpeak Tutorials]

5 CommentsOldest to Newest

sborsay replied on : 1 of 5

I already wrote code for connecting the MKR1000 to Thingspeak with data from a dht11 months ago. See the 3rd and 4th programs down in my wireless repository. I had to write a rough string handler to handle the int to float conversion, as unlike the esp8266, the MKR1000 doesn’t seem to be able to handle that natively.

https://github.com/sborsay/Arduino_Wireless

BSB replied on : 2 of 5

So glad I found this reference. I think your INT to float fixed an issue I have been chasing for a while where the MKR just locks up.

BSB replied on : 3 of 5

OOPS it wasn’t that. I used your updated code and I still get random lockups. Dang this MKR it wont play nice at all.

BSB replied on : 5 of 5

Seeing possible random lock ups anywhere from a couple of hours to over 10

Or at least I thought they were.

Seems there may also be an issue with TS.
re-wrote debug output to tell me more about the connection itself.
Saw my debug was getting a connection to TS and sending data but my channel was reporting no data for (x) hours.

Going to scrub my DHT MKR data from TS and run a separate channel based on something much simpler to rule out the MKR.

Add A Comment

Your email address will not be published. Required fields are marked *

What is 1 + 8 ?

Preview: hide