arduino – 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. Thu, 17 Dec 2020 02:19:30 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 ThingSpeak Library for Arduino https://blogs.mathworks.com/iot/2019/02/12/thingspeak-library-for-arduino/?s_tid=feedtopost https://blogs.mathworks.com/iot/2019/02/12/thingspeak-library-for-arduino/#comments Tue, 12 Feb 2019 15:31:48 +0000 https://blogs.mathworks.com/iot/?p=2582

The ThingSpeak team has released an updated version of the ThingSpeak Communication Library for Arduino, ESP8266, and ESP32 devices. The ThingSpeak library is the easiest way to get Arduino devices... read more >>

]]>
The ThingSpeak team has released an updated version of the ThingSpeak Communication Library for Arduino, ESP8266, and ESP32 devices. The ThingSpeak library is the easiest way to get Arduino devices connected to ThingSpeak IoT services. The library now features a way to separate secret credentials from your main source code. This helps when you want to share your code but don’t want to share your WiFi credentials and ThingSpeak keys.

Installation

The Arduino IDE needs to have the ThingSpeak library installed in order for your devices to know how to send data to ThingSpeak. In the Arduino IDE, choose Sketch, Include Library, and Manage Libraries. Search for “thingspeak” and click Install.

Device Support

The ThingSpeak Communication Library supports many devices. Using the library makes the experience the same for each board type. When you learn one way to work with ThingSpeak, you will be to work with other devices in the same way.

  • Arduino or compatible using a WiFi Shield
  • Arduino or compatible using a WiFi Shield 101
  • Arduino or compatible using an Ethernet Shield
  • Arduino or compatible using a MKR ETH Shield
  • Arduino MKR1000 (use the WiFi101 library version 0.13.0 or older. WiFi101 library versions 0.14.0 and newer have a bug that stops this ThingSpeak library from working properly)
  • Arduino MKR1010
  • Arduino VIDOR 4000
  • Arduino GSM 14000
  • Arduino Yún (Rev1 and Rev2)
  • ESP8266 (tested with SparkFun ESP8266 Thing – Dev Board and NodeMCU 1.0 module)
  • ESP32 (tested with SparkFun ESP32 Thing)

Each supported device includes three ThingSpeak examples.

  • ReadField: Reading from a public channel and a private channel on ThingSpeak
  • WriteSingleField: Writing a sensor value to a single field on ThingSpeak
  • WriteMultipleFields: Writing sensor values to multiple fields and status in one transaction with ThingSpeak

Request Status Codes

To get the best compatibility with ThingSpeak IoT services, we recommend using the ThingSpeak library. The library has extra features that help you troubleshoot and get visibility into any issues with requests to ThingSpeak. I find it useful to store the last status code from ThingSpeak. I can use this code to understand if the request succeeded or failed. Here’s an example of how to use the “getLastReadStatus” method.

 // Read in field 1 of the private channel which is a counter  
 long fieldValue = ThingSpeak.readLongField(myChannelNumber, myFieldNumber, myThingSpeakReadAPIKey);  

  // Check the status of the read operation to see if it was successful
 statusCode = ThingSpeak.getLastReadStatus();
 if(statusCode == 200) {
   Serial.println("Field Value: " + String(fieldValue));
 }
 else {
   Serial.println("Problem reading channel. HTTP error code " + String(statusCode)); 
 }

The code behind the ThingSpeak library is available on GitHub. Discover other MathWorks Open Source and Community Projects on The MathWorks GitHub page.

]]>
https://blogs.mathworks.com/iot/2019/02/12/thingspeak-library-for-arduino/feed/ 1
Discussions About How to Use MATLAB and Arduino on the MATLAB Maker Community https://blogs.mathworks.com/iot/2018/03/30/discussions-about-how-to-use-matlab-and-arduino-on-the-matlab-maker-community/?s_tid=feedtopost https://blogs.mathworks.com/iot/2018/03/30/discussions-about-how-to-use-matlab-and-arduino-on-the-matlab-maker-community/#comments Fri, 30 Mar 2018 15:53:13 +0000 https://blogs.mathworks.com/iot/?p=2352

As most of you know I love building IoT projects. Most of these maker projects use an Arduino, Particle, or Raspberry Pi, like my IR color-changing robot that connects to ThingSpeak and the... read more >>

]]>
As most of you know I love building IoT projects. Most of these maker projects use an Arduino, Particle, or Raspberry Pi, like my IR color-changing robot that connects to ThingSpeak and the CheerLights project.

I recently became the moderator of the MATLAB Maker Community that is hosted on MATLAB Central. There are many times where MATLAB and Simulink can help build a hardware-based project or be used to create the code running on a device. I also use MATLAB for analytics. Here are the most popular colors on CheerLights in the last 30 days.

The goal of the MATLAB Maker Community is to connect makers and builders together. I learn by working with others and sharing my work. If you are interested in maker project, I suggest following the Maker Community and jumping in on conversations or starting new discussions. I find this helpful if I am exploring a new idea or looking for feedback.

Right now, there is a discussion thread about how to use MATLAB to interface and interact with an Arduino. Makers can use MATLAB to control an Arduino by first installing the MATLAB® Support Package for Arduino®. Once you have the support package, you can use MATLAB to control the Arduino with familiar MATLAB commands.

% create an Arduino object
a = arduino('com3', 'uno');
% turn on an LED connected to Pin D11
writeDigitalPin(a, 'D11', 1);
% turn off an LED connected to Pin D11
writeDigitalPin(a, 'D11', 0);

Share your ideas on how to use the MATLAB connection to Arduino on the MATLAB Maker Community.

]]>
https://blogs.mathworks.com/iot/2018/03/30/discussions-about-how-to-use-matlab-and-arduino-on-the-matlab-maker-community/feed/ 1
Learn How to Build a Condition Monitoring IoT System https://blogs.mathworks.com/iot/2018/02/22/learn-how-to-build-a-condition-monitoring-iot-system/?s_tid=feedtopost https://blogs.mathworks.com/iot/2018/02/22/learn-how-to-build-a-condition-monitoring-iot-system/#comments Thu, 22 Feb 2018 16:00:49 +0000 https://blogs.mathworks.com/iot/?p=2298

Douglas Mawrey created a Smart Humidity Sensor using ThingSpeak to collect data, MATLAB to analyze the data, and IFTTT to send push notifications for certain conditions. This project uses the outdoor... read more >>

]]>
Douglas Mawrey created a Smart Humidity Sensor using ThingSpeak to collect data, MATLAB to analyze the data, and IFTTT to send push notifications for certain conditions. This project uses the outdoor temperature to determine the ideal indoor humidity and inform you about the room’s comfort. The data and condition results are displayed on Douglas’ public ThingSpeak channel 418058. This project is a good starting point to see the power of the MATLAB integration on ThingSpeak and how to perform real-time condition monitoring.

Setting up the Sensor

This project uses the ESP-based NodeMCU as an IoT gateway to forward sensor data to ThingSpeak. The NodeMCU is essentially a microcontroller and a Wi-Fi device that costs less than $10 US. The humidity sensor that is used in this project is the DHT11. This a very common sensor used to monitor temperature and humidity. The sensor either comes in a 4 pin or 3 pin package. The NodeMCU is programmed with the Arduino IDE using the code in Douglas’ tutorial or GitHub.

Using ThingSpeak Metadata

Douglas uses the metadata setting within a ThingSpeak channel to store condition ranges. This allows you to adjust settings in your online analytics code without redeploying new code. Each ThingSpeak channel has a metadata setting. You can store arbitrary text data that can be used in your MATLAB Analysis code. To load your channel’s metadata into MATLAB, use the webread function and add metadata=true to the ThingSpeak API Read Data request.

indoorChannelData = webread(strcat('https://api.thingspeak.com/channels/', ...
                                    num2str(indoorChannelID), ...
                                    '/feeds.json?metadata=true&api_key=', ...
                                    indoorChannelReadKey));

Using MATLAB for Condition Monitoring

Douglas uses MATLAB on ThingSpeak to determine the proper condition. This is a common requirement in complex IoT systems. This example could be a good starting point for building a condition monitoring system for industrial maintenance applications. You use MATLAB to determine the target humidity using a polynomial fit over the lookup data.

lookupFit = polyfit(humidityLookup(:, 1), humidityLookup(:, 2), length(humidityLookup) - 1);
optimalHumidity = polyval(lookupFit, curTempOut);

humidityDiff = curHumidity - optimalHumidity;

Using IFTTT for Alerts

Often you want to get notifications when a certain condition is met. Douglas shows you how to use IFTTT to send push notification directly to your phone. In this project, MATLAB is determining the condition and then interfaces with the IFTTT API to send the push notification. To send push notifications via IFTTT, use the webwrite function in MATLAB.

webwrite(strcat('https://maker.ifttt.com/trigger/', makerEvent, ...
                '/with/key/', makerKey), ...
                'value1', stateMsg, ...
                'value2', char(timeSinceChange, 'hh:mm'));

All of the MATLAB code can be deployed on ThingSpeak and scheduled to be executed periodically without having this on your desktop computer. The complete Smart Humidity Sensor project tutorial is available on Hackster.io. Feel free to discuss on the MATLAB Maker Community.

]]>
https://blogs.mathworks.com/iot/2018/02/22/learn-how-to-build-a-condition-monitoring-iot-system/feed/ 1
Collecting Resting Heart Rate Data Using ThingSpeak With a $5 Wi-Fi Device https://blogs.mathworks.com/iot/2017/10/27/collecting-resting-heart-rate-data-using-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/10/27/collecting-resting-heart-rate-data-using-thingspeak/#comments Fri, 27 Oct 2017 18:36:47 +0000 https://blogs.mathworks.com/iot/?p=2198

Naman Chauhan from SRM University created a proof-of-concept project that measures your resting heart rate and sends the data for analysis via a $5 Wi-Fi device. The project is fully documented with... read more >>

]]>
Naman Chauhan from SRM University created a proof-of-concept project that measures your resting heart rate and sends the data for analysis via a $5 Wi-Fi device. The project is fully documented with the source code on either Hackaday or Hackster.

Naman uses an Arduino for processing the heartbeat data and turns the data into heartbeats per minute. Then, periodically, the device sends the data to ThingSpeak for data storage and data analysis using MATLAB. The heart rate monitor is connected to the internet using DFROBOT’s ESP8266 Wi-Fi Bee. The Wi-Fi Bee turns serial data-to-Wi-Fi.

This heart rate monitor sensor is a pulse sensor which is developed based on PPG techniques. This is a simple and low-cost optical technique that can be used to detect blood volume changing in the microvascular bed of tissues. It is relatively easy to detect the pulsatile component of the cardiac cycle according to this theory.

To build your own, check out Naman’s tutorial on either Hackaday or Hackster.

]]>
https://blogs.mathworks.com/iot/2017/10/27/collecting-resting-heart-rate-data-using-thingspeak/feed/ 2
Send Bulk Sensor Data to ThingSpeak for Analysis https://blogs.mathworks.com/iot/2017/07/20/send-bulk-sensor-data-to-thingspeak-for-analysis/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/07/20/send-bulk-sensor-data-to-thingspeak-for-analysis/#comments Thu, 20 Jul 2017 15:00:17 +0000 https://blogs.mathworks.com/iot/?p=2167

Many IoT projects collect data from a sensor and send the data to ThingSpeak at the same time over and over. To continuously collect and send data to the cloud requires the device to be powered and... read more >>

]]>
Many IoT projects collect data from a sensor and send the data to ThingSpeak at the same time over and over. To continuously collect and send data to the cloud requires the device to be powered and connected all of the time. A battery-powered IoT device like a Particle Photon or Onion Omega2 would run out of power quickly. There are many IoT applications where you want your IoT device to collect the data offline over a long period of time, then send the data all at once to ThingSpeak for analysis.

The ThingSpeak team at MathWorks is excited to announce Bulk-Update! This new ThingSpeak feature is targeted at IoT devices trying to optimize battery use by allowing the device to update a lot of data at once. To help you get started with bulk-update, we have written examples for Arduino, ESP8266, Particle Photon, and the Raspberry Pi 3.

Once your data is on ThingSpeak, it is easy to analyze using the MATLAB Analysis and Visualization apps within ThingSpeak, MATLAB Online, or Desktop MATLAB. To read data from ThingSpeak into MATLAB, use the ThingSpeak Support Toolbox and the thingSpeakRead command. We have released documentation and examples to help you get started with bulk-update on ThingSpeak.

Resources for Bulk-Update

]]>
https://blogs.mathworks.com/iot/2017/07/20/send-bulk-sensor-data-to-thingspeak-for-analysis/feed/ 5
The Data Science Behind BBQ https://blogs.mathworks.com/iot/2017/05/29/the-data-science-behind-bbq/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/05/29/the-data-science-behind-bbq/#comments Mon, 29 May 2017 16:15:55 +0000 https://blogs.mathworks.com/iot/?p=2139

Smoking ribs or a pork shoulder requires lots of patience and practice. When everything works, you get to enjoy an amazing dinner. When things go wrong, you end up with dry, overcooked meat that only... read more >>

]]>
Smoking ribs or a pork shoulder requires lots of patience and practice. When everything works, you get to enjoy an amazing dinner. When things go wrong, you end up with dry, overcooked meat that only your dog may enjoy. Here’s what great BBQ looks like from @AndreasHarsch.

My process of smoking meat, cheese, or even ice cream is to monitor only the meat temperature and the internal temperature of the smoker. When I finish a cook, I go back and try to learn from the data. I do not attempt to control the smoker using the Internet of Things, I use IoT to collect the data with ThingSpeak, analyze the data with MATLAB, and apply the insights to the next cook. The best advice that I have been given is to not change too many variables. Stick with simple rubs, the same charcoal, the same wood, the same cuts of meat, etc. Only change one variable for one cook. It takes years of trial and error before you get great at BBQ.

With the help of ThingSpeak and MATLAB, I can help you understand one of the more frustrating parts of smoking meats… the stall! The stall is a period of time where what you are cooking does not seem to be increasing in internal temperature. I used to panic during the stall and mess with the temperature by adding more charcoal or turning the vents. Overtime, I realized this is normal. No reason to panic.

Cooking is taking something cold and getting its internal temperature up to a safe level. Everything that you cook has a different target internal temperature, but generally the sweet spot is 190-205F. Smoking is about low and slow cooking. This means that you are trying to raise that internal temperature slowly with a low temperature. I use a cook temperature of 230-250F. This means that smoking takes a lot of time to properly cook. In some cases, this is two hours per pound. Things don’t change much minute to minute in a BBQ pit, so you can collect data every few minutes and still have an accurate picture of what’s happening.

Collecting Data

First, I set up a ThingSpeak channel to store my temperature data. One field is for the smoker’s temperature and field two is for the internal temperature of what I am cooking. To get the data, you have many options. I did a quick search around the internet and discovered hundreds of Arduino and ThingSpeak projects to get data from a smoker. In general you need two temperature probes that can take the heat of the smoker, connectors, an Arduino with Wi-Fi like the MKR1000.

Analyzing the Temperature Data

The first step is to read in the temperature data using MATLAB that was collected by ThingSpeak. Data on ThingSpeak is stored in a channel and identified by a channelID. If you have a private channel, you will need to supply a Read API Key to get access to the data.

smokerTT = thingSpeakRead(279400,'ReadKey','9AYZQDT1XFDM98FW','OutputFormat','timetable','NumPoints',115);

Sometimes the data from your temperature probe is noisey. This means the value that the temperature probe reports is sometimes higher or lower than the actual temperature. If you take a few samples and take a median, you get a consistent result. In MATLAB, I use smoothdata to take a moving median of my time-series sensor data.

smoothSmoker = smoothdata(smokerTT);

After I clean up the data, I want to visualize it and to see what happened. This is a good time to learn how long things actually take, so on your next cook you budget the right amount of time and don’t rush any phases.

plot(smoothSmoker.Timestamps, smoothSmoker.Variables);

I can use this data to determine how long the total cook will last and even set alerts using ThingSpeak. I tend to watch the smoker and tend the fire.

Results

After a lot of research, I discovered what the stall is doing and why it is important to keep your patience and push forward. This is starting to sound like a metaphor for life. According to Prof. Greg Blonder, “The stall is evaporative cooling”. Prof. Greg is a physicist, entrepreneur, former Chief Technical Advisor at AT&T’s legendary Bell Labs, and regularly contributes to AmazingRibs.com. He likes to bust myths about barbequing and help us understand the thermodynamics of cooking. You are heating the meat slowly, but the moisuture in the meat is evapotaring at the same rate. This effect causes a stall in the temperature rise. The temperature of the meat will go up when the moisture is depleted. The stall is important to the cooking process and leads to something called the bark. This is an outer layer of the meat that is slightly thicker and less tender than the rest of the meat, but traps in lots of flavor and adds to its complexity. So, don’t rush during the stall. Keep the smoker temperature constant – avoid the temptation to turn the heat up to get through faster. And in the end, enjoy some well made BBQ with friends and family over the summer weekends and holidays.

]]>
https://blogs.mathworks.com/iot/2017/05/29/the-data-science-behind-bbq/feed/ 4
Build IoT Projects on Arduino Day Using MATLAB and ThingSpeak https://blogs.mathworks.com/iot/2017/03/31/build-iot-projects-on-arduino-day-using-matlab-and-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/03/31/build-iot-projects-on-arduino-day-using-matlab-and-thingspeak/#respond Fri, 31 Mar 2017 22:01:05 +0000 https://blogs.mathworks.com/iot/?p=2042

April 1st is Arduino Day, no joke! For in person events near you, check out the Arduino Day website. If you have been kicking around an idea about a project to build, this is a great time to try to... read more >>

]]>
April 1st is Arduino Day, no joke! For in person events near you, check out the Arduino Day website. If you have been kicking around an idea about a project to build, this is a great time to try to get it done and share it with others from around the world. We provide some great tools to build projects that use Arduino.

MathWorks Arduino Resources

Maybe it’s time to build your version of a MATLAB and Arduino powered dartboard.

We hope you build some awesome projects using Arduino, MATLAB, Simulink, and ThingSpeak on Arduino Day!

]]>
https://blogs.mathworks.com/iot/2017/03/31/build-iot-projects-on-arduino-day-using-matlab-and-thingspeak/feed/ 0
Building a Dynamic and Self-organizing Network of Devices https://blogs.mathworks.com/iot/2017/03/25/building-a-dynamic-and-self-organizing-network-of-devices/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/03/25/building-a-dynamic-and-self-organizing-network-of-devices/#respond Sat, 25 Mar 2017 19:24:56 +0000 https://blogs.mathworks.com/iot/?p=2039

Anders Sollander, a principal technical consultant at MathWorks, and his team put together a project to determine what demo was the most popular at one of our demo showcases. Anders made an... read more >>

]]>
Anders Sollander, a principal technical consultant at MathWorks, and his team put together a project to determine what demo was the most popular at one of our demo showcases. Anders made an assumption that if your demo was popular, you would have a lot of visitors. If you have a lot of visitors, your demo would be the loudest.

Anders was determined to measure sound from over 20 demo stations at the same time and figure out who the the winner is. This turns out to be a complicated challenge and he used our tools such as MATLAB, Simulink, and ThingSpeak, to produce some interesting results. Here’s what the raw data looks like from just five sound sensor nodes at the demo stations.

The sensor nodes uses the Arduino Nano devices because they’re small, low-cost, and Simulink has an Arduino support package. Arduino Nano’s both low cost and energy efficient which is great, but it doesn’t have Wi-Fi. They connect the sensor nodes to an Internet-connected Raspberry Pi using an RF mesh network with the nRF24l01+ radio. The RF24 solution is both very cheap and energy efficient, which is valuable if you’re running them with battery power. Simulink Coder has a Raspberry Pi Support Package which simplified the workflow.

When you follow the tutorial, you are going to learn many things and experience their analytic workflow as they decide how to develop an algorithm to normalize sound levels, determine which data to send to ThingSpeak, and build visualizations to see the results of the project.

Anders also shared a library on File Exchange that allows users to communicate with RF24 chips on Raspberry Pi and Arduino boards. The library relies on the RF24Mesh library, and has S-functions that interact with the classes there. The File Exchange submission includes an example for the Arduino to read sensor data from a temperature sensor and sends it to the gateway Raspberry Pi and then sends the data to ThingSpeak. In order to download the File Exchange, you need to sign in with your MathWorks account. This would be the same account that you use on ThingSpeak.com.

Visit ThingSpeak Tutorials, to see the complete tutorial for Building a Dynamic and Self-organizing Network of Devices.

]]>
https://blogs.mathworks.com/iot/2017/03/25/building-a-dynamic-and-self-organizing-network-of-devices/feed/ 0
IoT Quick Start With the Arduino MKR1000 and ThingSpeak https://blogs.mathworks.com/iot/2016/05/27/iot-quick-start-with-the-arduino-mkr1000-and-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2016/05/27/iot-quick-start-with-the-arduino-mkr1000-and-thingspeak/#comments Fri, 27 May 2016 17:38:29 +0000 https://blogs.mathworks.com/iot/?p=1833

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... read more >>

]]>
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]

]]>
https://blogs.mathworks.com/iot/2016/05/27/iot-quick-start-with-the-arduino-mkr1000-and-thingspeak/feed/ 6
Arduino WiFi 101 ThingSpeak Data Uploader Tutorial https://blogs.mathworks.com/iot/2015/12/04/arduino-wifi-thingspeak-data-uploader/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/12/04/arduino-wifi-thingspeak-data-uploader/#respond Fri, 04 Dec 2015 22:45:48 +0000 https://blogs.mathworks.com/iot/?p=1565

Arduino has published a tutorial for their WiFi 101 Shield that sends data to ThingSpeak. The Arduino WiFi Shield 101 is a powerful Internet of Things shield with crypto-authentication that connects... read more >>

]]>
Arduino has published a tutorial for their WiFi 101 Shield that sends data to ThingSpeak. The Arduino WiFi Shield 101 is a powerful Internet of Things shield with crypto-authentication that connects your Arduino or Genuino board to the internet using WiFi.

Arduino WiFi 101 ThingSpeak

You only need a few things to build a light and temperature sensor that writes data to ThingSpeak:

  • Arduino Zero or Uno Board
  • Arduino Wifi Sheild 101
  • Photocell
  • Temperature Sensor (This example uses a TMP36)
  • 10K Ohm Resistor

Arduino_WiFi_1010_ThingSpeak

Once you have the circuit built, you create a ThingSpeak channel, connect the Arduino WiFi 1010 to your Wi-Fi network, and install the source code from the tutorial on the Arduino.

Data is now being sent to your ThingSpeak Channel. Go to your channel to see two charts of the light and temperature data. To take the project a step further, go to ThingSpeak Apps and use MATLAB to analyze and visualize and trigger actions from the data.

[via Arduino.cc]

]]>
https://blogs.mathworks.com/iot/2015/12/04/arduino-wifi-thingspeak-data-uploader/feed/ 0
Official ThingSpeak Library for Arduino and Particle https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comments Fri, 09 Oct 2015 16:24:54 +0000 https://blogs.mathworks.com/iot/?p=1523 We are thrilled to announce the official ThingSpeak Communication Library for Arduino and Particle devices. This library enables an Arduino or other compatible hardware to write or read data to or... read more >>

]]>
We are thrilled to announce the official ThingSpeak Communication Library for Arduino and Particle devices. This library enables an Arduino or other compatible hardware to write or read data to or from ThingSpeak, an open data platform for the Internet of Things with built-in MATLAB analytics and visualization apps.

Arduino IDE Installation

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

Particle / Spark IDE Installation

In the Particle/ Spark Web IDE, click the libraries tab, find ThingSpeak, and choose “Include in App”.

Compatible Hardware

  • Arduino or compatible using an Ethernet or Wi-Fi shield (we have tested with Uno and Mega)
  • Arduino Yun running OpenWRT-Yun Release 1.5.3 (November 13th, 2014) or later.
  • Particle Core or Photon (Formally Spark)

ThingSpeak Examples

The library includes several examples to help you get started.

  • CheerLights: Reads the latest CheerLights color on ThingSpeak, and sets an RGB LED.
  • ReadLastTemperature: Reads the latest temperature from the public MathWorks weather station in Natick, MA on ThingSpeak.
  • ReadPrivateChannel: Reads the latest voltage value from a private channel on ThingSpeak.
  • ReadWeatherStation: Reads the latest weather data from the public MathWorks weather station in Natick, MA on ThingSpeak.
  • WriteMultipleVoltages: Reads analog voltages from pins 0-7 and writes them to the 8 fields of a channel on ThingSpeak.
  • WriteVoltage: Reads an analog voltage from pin 0, converts to a voltage, and writes it to a channel on ThingSpeak.

Complete open source code and examples for the ThingSpeak Library are available on GitHub. Discover other MathWorks Open Source and Community Projects on GitHub.

]]>
https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/feed/ 22
You’ve Collected Lots of IoT Data, Now We Can Help You Figure Out What It Means! https://blogs.mathworks.com/iot/2015/08/20/you-have-collected-lots-of-iot-data/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/08/20/you-have-collected-lots-of-iot-data/#comments Thu, 20 Aug 2015 19:27:30 +0000 https://blogs.mathworks.com/iot/?p=1475

For the last several years, I have been collecting data with ThingSpeak from devices all around my house. I have been tracking temperature, humidity, light levels, outside weather data, my deep... read more >>

]]>
For the last several years, I have been collecting data with ThingSpeak from devices all around my house. I have been tracking temperature, humidity, light levels, outside weather data, my deep freezer’s temperature, the state of My Toaster, and air quality metrics. I just recently started to think about what all of this data really means to me and if it’s good data to begin with. Wouldn’t it be great if I could explore my data in ThingSpeak?  Well, I am happy to say that with the latest upgrade to ThingSpeak, you can do just that.

We have been working with the MATLAB team at MathWorks to provide two new ThingSpeak Apps: MATLAB Analysis and MATLAB Visualizations. With these new built-in Apps, the ThingSpeak web service can automatically run MATLAB code. That makes it easier to gain insight into your data.

ThingSpeak MATLAB Apps

With the MATLAB Analysis app, I am now able to turn my home’s temperature and humidity data into dew point. Dew point is important to find out if the environment is comfortable independent of just knowing the temperature alone. If the dew point is too high or too low, your guests may notice their glasses sweating or that they are uncomfortable.

I am also able to clean up my sensor data and filter out bad data and write it back to a new ThingSpeak channel. From time to time, I see one of my sensors report a really high value, and I’d like to have a way to fix it.

We have provided many MATLAB code examples to get started quickly.

Some of our analysis examples include:

  • Calculate Average Humidity
  • Calculate Dew point
  • Convert Celsius to Fahrenheit
  • Eliminate data outliers
  • Convert Fahrenheit to Celsius
  • Calculate hourly max temperature
  • Replace missing values in data

With MATLAB Visualizations, we made it way easier to chart data from multiple data fields. By selecting the “Wind Velocity” example MATLAB Visualization, I can see a plot of the wind velocity data collected by my weather station.

MATLAB Plot Output on ThingSpeak

Other visualization examples include:

  • View temperature variation over the last 24 hours using a histogram
  • Plot wind velocity over the last hour using a compass plot
  • Understand relative temperature variation
  • Plot data from multiple fields
  • View temperature and pressure levels
  • Visualize relationship between temperature and humidity

Are you looking for an easy way to connect your Arduino or Raspberry Pi devices to ThingSpeak? We have also been working with the MATLAB team at MathWorks on some Hardware Support Packages to help with that. I’ll talk about that in a future blog!

This is really big news for the ThingSpeak Community. I am really excited to see what you do with these new apps. I will share projects on the blog as they come in. Let’s find out together what all of this data means. Get started at ThingSpeak.com!

 

]]>
https://blogs.mathworks.com/iot/2015/08/20/you-have-collected-lots-of-iot-data/feed/ 2
Collecting Dust Levels with ThingSpeak and ESP8266 Wi-Fi https://blogs.mathworks.com/iot/2015/08/07/collecting-dust-levels-with-thingspeak-and-esp8266-wi-fi/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/08/07/collecting-dust-levels-with-thingspeak-and-esp8266-wi-fi/#comments Fri, 07 Aug 2015 16:32:50 +0000 https://blogs.mathworks.com/iot/?p=1460

Using the ESP8266 Wi-Fi module, [shadowandy] built a dust sensor to measure dust levels in his house. The project incorporates the Shinyei PPD42NS dust sensor to do the measurements and posts the... read more >>

]]>
Using the ESP8266 Wi-Fi module, [shadowandy] built a dust sensor to measure dust levels in his house. The project incorporates the Shinyei PPD42NS dust sensor to do the measurements and posts the data to his ThingSpeak channel from data collection and reaction to dust levels.

Dust Sensor sending data to ThingSpeak

The sensor records the PM10 and PM2.5 dust levels to get an accurate indication of the dust in the air. This project is a great example of how a little sensor could turn into something important for protecting machine shops, construction sites, and garages.

[via shadowandy / GitHub]

]]>
https://blogs.mathworks.com/iot/2015/08/07/collecting-dust-levels-with-thingspeak-and-esp8266-wi-fi/feed/ 2
There is a Hamster on Twitter Now… Thanks to ThingSpeak, Arduino, and ESP8266 Wi-Fi https://blogs.mathworks.com/iot/2015/04/20/hamster-on-twitter/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/04/20/hamster-on-twitter/#comments Mon, 20 Apr 2015 15:21:48 +0000 https://blogs.mathworks.com/iot/?p=1432

What does an adorable hamster need? Internet of Things, but of course. Using ThingSpeak, ESP8266 Wi-Fi, and Arduino, Ángel from San Sebastián built a monitoring system for his hamster which is dubbed... read more >>

]]>
What does an adorable hamster need? Internet of Things, but of course. Using ThingSpeak, ESP8266 Wi-Fi, and Arduino, Ángel from San Sebastián built a monitoring system for his hamster which is dubbed “RunnerHam“.

Hamster Internet of Things

RunnerHam Tweets his distance and time when he takes a run on his wheel, “I’m done! 57.62m at 0.61m/s”. You can also check out his ThingSpeak Channel where he records lots of data about his day.

Hamster on wheel IoT ThingSpeak

Ángel also released an Instructables explaining his “pet project” so you can make your own and make your own enhancements. Just imagine what you can do with some sensors, connectivity, and ThingSpeak Web Services!

[via Instructables]

]]>
https://blogs.mathworks.com/iot/2015/04/20/hamster-on-twitter/feed/ 3
Blynk Internet of Things App for Arduino to Support ThingSpeak Web Services https://blogs.mathworks.com/iot/2015/02/12/blynk-internet-of-things-app-for-arduino-to-support-thingspeak-web-services/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/02/12/blynk-internet-of-things-app-for-arduino-to-support-thingspeak-web-services/#comments Thu, 12 Feb 2015 20:55:00 +0000 https://blogs.mathworks.com/iot/?p=1416

A really awesome Kickstarter campaign called Blynk has came to our attention as users from their community and ours were asking if our systems could work together. Blynk is an Android / iOS app that... read more >>

]]>
A really awesome Kickstarter campaign called Blynk has came to our attention as users from their community and ours were asking if our systems could work together.

Blynk Kickstarter IoT

Blynk is an Android / iOS app that allows for a 5 minute, out-of-the-box experience for Internet of Things projects. Blynk already supports Arduino, Raspberry Pi, and in the future Electric Imp, Spark, The Airboard, Wildfire by Wicked Device, Tiny Duino, and ESP8266 Wi-Fi.

ThingSpeak offers the Internet of Things stable data storage, fast retrieval, data processing, data visualizations, and hooks to every web service possible. We are thrilled that Blynk is planning to support the open APIs of ThingSpeak to extend any IoT project with ThingSpeak web services.

Blynk ThingSpeak IoT Kickstarter

The Blynk Kickstarter campaign ends at 12pm EST on February 14th. You have less than 48 hours to support Blynk! $20+ pledges will also get free 1 year premium account at Codebender.

[via Kickstarter]

]]>
https://blogs.mathworks.com/iot/2015/02/12/blynk-internet-of-things-app-for-arduino-to-support-thingspeak-web-services/feed/ 1
ThingSpeak Used to Track Luggage for Travel Internet of Things Applications https://blogs.mathworks.com/iot/2015/01/16/thingspeak-used-to-track-luggage-for-travel-internet-of-things-applications/?s_tid=feedtopost https://blogs.mathworks.com/iot/2015/01/16/thingspeak-used-to-track-luggage-for-travel-internet-of-things-applications/#comments Fri, 16 Jan 2015 23:01:41 +0000 https://blogs.mathworks.com/iot/?p=1378

Chris Forsberg created an example Internet of Things project to track luggage using ThingSpeak, an Adafruit GSM Module, and an Arduino. He built a simple system to send data to ThingSpeak, such as... read more >>

]]>
Chris Forsberg created an example Internet of Things project to track luggage using ThingSpeak, an Adafruit GSM Module, and an Arduino. He built a simple system to send data to ThingSpeak, such as latitude, longitude, and status data. ThingSpeak exposes a data channel API for any system like this to being able to store data and then process the data.

ThingSpeak Travel IoT Project

The idea is that it is frustrating waiting for luggage at the airport and wondering where it is and why it is not on the baggage carousel. With this project, you can track luggage from start to finish. The advantages are not only for the traveler, the airlines could track luggage as well and get quality statistics for each airport. And, the base system has many applications outside of travel such as the Automotive Industry.

Chris explains the project really well on his blog and with a YouTube video.

]]>
https://blogs.mathworks.com/iot/2015/01/16/thingspeak-used-to-track-luggage-for-travel-internet-of-things-applications/feed/ 1
CheerLights Arduino Sketch for FastLED Compatible Lights #featurefriday https://blogs.mathworks.com/iot/2014/12/19/cheerlights-arduino-sketch-for-fastled-compatible-lights-featurefriday/?s_tid=feedtopost https://blogs.mathworks.com/iot/2014/12/19/cheerlights-arduino-sketch-for-fastled-compatible-lights-featurefriday/#respond Fri, 19 Dec 2014 19:16:49 +0000 https://blogs.mathworks.com/iot/?p=1375

We just created a FastLED and Arduino tutorial and Arduino Sketch to read in the latest CheerLights color and display it on FastLED compatible lights. CheerLights is a global network of colored... read more >>

]]>
We just created a FastLED and Arduino tutorial and Arduino Sketch to read in the latest CheerLights color and display it on FastLED compatible lights. CheerLights is a global network of colored lights that all synchronize to one color based on Twitter. People all around the world have built very creative displays of the latest CheerLights color. The new tutorial and Arduino sketch will make it easy to get started with NeoPixel lights from Adafruit and RGB-123 light panels.

CheerLights with Arduino FastLED RGB-123

For more information check out the FastLED and Arduino tutorial and the Arduino Sketch on GitHub.

]]>
https://blogs.mathworks.com/iot/2014/12/19/cheerlights-arduino-sketch-for-fastled-compatible-lights-featurefriday/feed/ 0
Cigar Humidor Updates Twitter – Powered by ThingSpeak and Arduino https://blogs.mathworks.com/iot/2014/04/04/cigar-humidor-updates-twitter-powered-by-thingspeak-and-arduino/?s_tid=feedtopost https://blogs.mathworks.com/iot/2014/04/04/cigar-humidor-updates-twitter-powered-by-thingspeak-and-arduino/#comments Fri, 04 Apr 2014 19:11:56 +0000 https://blogs.mathworks.com/iot/?p=1178

CAVA created a cigar humidor with a social life. A humidor stores cigars in a humidity controlled environment to maintain freshness, but this special humidor sends the humidity sensor value to... read more >>

]]>
CAVA created a cigar humidor with a social life. A humidor stores cigars in a humidity controlled environment to maintain freshness, but this special humidor sends the humidity sensor value to ThingSpeak and alerts Twitter when you need to add water. The project uses a humidity sensor and an Arduino Ethernet to post the data to the ThingSpeak API and ThingTweet to send messages to Twitter.

ThingSpeak Cigar Humidor IoTMi Humidor de Cigarros conectado a Internet por medio de un Arduino

]]>
https://blogs.mathworks.com/iot/2014/04/04/cigar-humidor-updates-twitter-powered-by-thingspeak-and-arduino/feed/ 2
Introducing TalkBack, the New Internet of Things App to Control Things with the ThingSpeak Cloud https://blogs.mathworks.com/iot/2014/01/21/introducing-talkback-the-new-internet-of-things-app-to-control-things-with-the-thingspeak-cloud/?s_tid=feedtopost https://blogs.mathworks.com/iot/2014/01/21/introducing-talkback-the-new-internet-of-things-app-to-control-things-with-the-thingspeak-cloud/#comments Tue, 21 Jan 2014 16:55:13 +0000 https://blogs.mathworks.com/iot/?p=1152

Introducing… TalkBack! We have developed a new ThingSpeak App and it is available now to all ThingSpeak Users. The new TalkBack App allows devices to check ThingSpeak for commands to execute.... read more >>

]]>
Introducing… TalkBack!

We have developed a new ThingSpeak App and it is available now to all ThingSpeak Users.

The new TalkBack App allows devices to check ThingSpeak for commands to execute. TalkBack is perfect for battery-powered devices that need to sleep most of the time and wake up to see if there is anything to do and then go back to sleep, like a door lock for example. The lock is mostly going to be asleep to save battery power, but it can wake up periodically and check TalkBack or be woken up by a button press to see if it should be opened or not.

Devices powered by ThingSpeak and now with TalkBack will be able to both push sensor data to the ThingSpeak Cloud and check TalkBack if any commands are available all in one request. To get started, we have the complete TalkBack API Documentation and an Arduino Yún Tutorial available now.

ThingSpeak TalkBack to Cloud

Atmel-powered Arduino Yún Tutorial

With the release of TalkBack, we created a tutorial for the Arduino Yún. The “Yún” is a special combination of easy-to-program Arduino with an additional processor, an Atheros AR9331, running Linux and the OpenWrt wireless stack. Programming the Arduino via USB is identical to the Arduino Leonardo. Once the Arduino Yún is connected to Wi-Fi, the Arduino has full access to ThingSpeak Cloud Services and the TalkBack App and API. Check out the Controlling the Arduino Yún with TalkBack tutorial for a step-by-step way of controlling the Arduino Yún via TalkBack and the ThingSpeak Cloud.

Arduino Yun ThingSpeak TalkBack Tutorial

TalkBack is available now to all ThingSpeak Users and to new users by Sign Up for Free at ThingSpeak.com! Please feel free to share with us and the ThingSpeak Community with the awesome ways you use TalkBack with your ThingSpeak Projects!

]]>
https://blogs.mathworks.com/iot/2014/01/21/introducing-talkback-the-new-internet-of-things-app-to-control-things-with-the-thingspeak-cloud/feed/ 8
Indoor Environmental Quality Station https://blogs.mathworks.com/iot/2013/05/21/indoor-environmental-quality-station/?s_tid=feedtopost https://blogs.mathworks.com/iot/2013/05/21/indoor-environmental-quality-station/#respond Tue, 21 May 2013 20:31:57 +0000 https://blogs.mathworks.com/iot/?p=1054

[donmatito] created an Indoor Environmental Quality Station based on the Arduino platform and uses Bluetooth for connectivity to ThingSpeak cloud services. The great news is that... read more >>

]]>
[donmatito] created an Indoor Environmental Quality Station based on the Arduino platform and uses Bluetooth for connectivity to ThingSpeak cloud services. The great news is that Don completely documented the project at Instructables for others to learn from and add to. By using ThingSpeak he has made it easy to get access to the data with an app and share the data with other users.

ThingSpeak Air Quality Monitor

Indoor Environmental Quality (IEQ) is the measure of comfort and includes factors such as temperature, humidity, pressure, noise level, and indoor air quality. don’s original goal was to monitor the IEQ of his baby’s room, but he soon realized that his project has more applications around the house and for others.

Don published the full details of the project and submitted it to the Green Design Contest at Instructables. Great work!

[via Instructables]

]]>
https://blogs.mathworks.com/iot/2013/05/21/indoor-environmental-quality-station/feed/ 0
Slot Car Race Powered by Twitter https://blogs.mathworks.com/iot/2012/09/04/slot-car-race-powered-by-twitter/?s_tid=feedtopost https://blogs.mathworks.com/iot/2012/09/04/slot-car-race-powered-by-twitter/#respond Tue, 04 Sep 2012 05:16:51 +0000 https://blogs.mathworks.com/iot/?p=983 The community from RS Components created a Scalextric Slot Car Race that is powered by your tweets. Two cars went head-to-head last week with a live Twitter race between a red and blue car. The cars... read more >>

]]>
The community from RS Components created a Scalextric Slot Car Race that is powered by your tweets. Two cars went head-to-head last week with a live Twitter race between a red and blue car. The cars move based on the number of Tweets that included their hashtag. If you want the blue car to win, you needed to Tweet, “Go #RSBlueTeam”. The team wrote a web service like TweetControl that pulls in tweets from the Twitter Stream and distributes commands to an Arduino that controls the track. This is another great project that further demonstrates how social intersects with technology and marketing. Go Tweet Racer!

RS Components Twitter Race

[via Facebook]

]]>
https://blogs.mathworks.com/iot/2012/09/04/slot-car-race-powered-by-twitter/feed/ 0
A Twitter Powered Gumball Machine Built on ThingSpeak + Arduino https://blogs.mathworks.com/iot/2012/06/27/a-twitter-powered-gumball-machine-built-on-thingspeak-arduino/?s_tid=feedtopost https://blogs.mathworks.com/iot/2012/06/27/a-twitter-powered-gumball-machine-built-on-thingspeak-arduino/#respond Wed, 27 Jun 2012 19:46:26 +0000 https://blogs.mathworks.com/iot/?p=956 Kevin, from the brilliant minds at Philter Communications, created a gumball machine known as the Tweet-a-Tweat. This clever device encourages social media interaction. People who visit your office... read more >>

]]>
Kevin, from the brilliant minds at Philter Communications, created a gumball machine known as the Tweet-a-Tweat. This clever device encourages social media interaction. People who visit your office need to send a Tweet to @tweetatweat to get a tasty gumball. The idea is to stimulate your brand by offering a real-world interaction. The combination of social media+internet of things forms a powerful link and the “web of things” vision emerges. We love working with our partners to enable strong(er) relationships with customers, coworkers, and visitors; and ultimately seeing new ideas take shape.

The technology behind Tweet-a-Tweat is Arduino + ThingSpeak — this is another powerful combination. The Gumball Machine is from Beaver Vending and has an Arduino inside listening to the TweetControl App from ThingSpeak. TweetControl listens to the Twitter stream for keywords that trigger HTTP requests in real-time. The heavy lifting happens in the cloud so that the embedded Arduino only has to focus on moving servos and being ready for web requests.

For more information, visit Tweet-a-Tweat and check out the live video feed of Philter’s Twitter powered gumball machine being operated live.

[via Tweet-a-Tweat]

]]>
https://blogs.mathworks.com/iot/2012/06/27/a-twitter-powered-gumball-machine-built-on-thingspeak-arduino/feed/ 0
Solar Hot Water Temperature Monitoring with Arduino + ThingSpeak https://blogs.mathworks.com/iot/2012/06/04/solar-hot-water-temperature-monitoring-with-arduino-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2012/06/04/solar-hot-water-temperature-monitoring-with-arduino-thingspeak/#respond Tue, 05 Jun 2012 04:33:30 +0000 https://blogs.mathworks.com/iot/?p=944 Here’s another “Klink Family Adventure”. The Klink’s created a solar water heater monitor using an Arduino connected to multiple waterproof DS18B20 temperature sensors.... read more >>

]]>
Here’s another “Klink Family Adventure”. The Klink’s created a solar water heater monitor using an Arduino connected to multiple waterproof DS18B20 temperature sensors. What’s great about this project is that it has the complete schematic and source code for interfacing multiple sensors to ThingSpeak at the same time. This is a common request in the ThingSpeak forum, so we are glad to see the code in the wild. The application is great. Monitoring the yield of a solar water heating system allows you to keep track of efficiency and savings.

Here’s what the temperature looks like now in Australia:

Check out the family’s blog for the source code and to learn how to create your own solar water heater monitoring system.

[via Klink Family Adventures]

]]>
https://blogs.mathworks.com/iot/2012/06/04/solar-hot-water-temperature-monitoring-with-arduino-thingspeak/feed/ 0
Smart Home Project with ThingSpeak, Arduino, chipKIT, and Drupal https://blogs.mathworks.com/iot/2012/05/11/smart-home-project-with-thingspeak-arduino-chipkit-and-drupal/?s_tid=feedtopost https://blogs.mathworks.com/iot/2012/05/11/smart-home-project-with-thingspeak-arduino-chipkit-and-drupal/#comments Fri, 11 May 2012 07:29:20 +0000 https://blogs.mathworks.com/iot/?p=941 Via Twitter, we caught wind of a project by a group of Rutgers University SCI ITI students. As their final project, the team built a working model of a smart home using sensors connected to... read more >>

]]>
Via Twitter, we caught wind of a project by a group of Rutgers University SCI ITI students. As their final project, the team built a working model of a smart home using sensors connected to ThingSpeak cloud services via Arduino and chipKit. They were able to embed their data and integrate with their Drupal-based website and show a live demonstration of the smart house. Lots of cool technology went into their project including a small scale model complete with balsa wood and Popsicle sticks. This proved to be a great way to show how their project works with other students and faculty.

This video that we discovered on YouTube is the team’s presentation. You will get to see ThingSpeak in action, live in front of an audience about halfway thru…

We hope you got an “A” on the project (do they still give letter grades?)!

]]>
https://blogs.mathworks.com/iot/2012/05/11/smart-home-project-with-thingspeak-arduino-chipkit-and-drupal/feed/ 1
CheerLights: Connecting Lights Together to Bring Us Closer https://blogs.mathworks.com/iot/2011/12/07/cheerlights-connecting-lights-together-to-bring-us-closer/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/12/07/cheerlights-connecting-lights-together-to-bring-us-closer/#respond Wed, 07 Dec 2011 13:17:51 +0000 https://blogs.mathworks.com/iot/?p=866 It’s that time of year… holiday time and family time. I was inspired this time to create a project that brings us a little closer. Lights are a big part of the holidays and with... read more >>

]]>
It’s that time of year… holiday time and family time. I was inspired this time to create a project that brings us a little closer. Lights are a big part of the holidays and with CheerLights you can connect your lights to other lights via Twitter with a little help by ThingSpeak Apps.

Since the project release, there has been much activity. A part from CheerLights being discussed on blogs like MAKE and Lifehacker, the community has created some interesting bits of tech that extend the project further than lights. So if you don’t have a way to connect your lights together with CheerLights, you can connect your mobile phone, browser, and web sites together by subscribing to the CheerLights feed. Right now you can check the latest CheerLights color with an Android App created by @ChrisLeitner. Another really neat thing is a browser plugin for Chrome designed by Josh Crumley. So, in the top corner of your web browser you can see the latest color in an unassuming way. It’s a little reminder that we are connected.

To join CheerLights, all you have to do is build something that subscribed to the CheerLights ThingSpeak Channel or access the data using JSON and XML. You can also use the apps, browser plugins, or web widgets to see the colors. Visit the CheerLights website hosted on Tumblr for details on making a controller with Arduino, ioBridge, or Digi’s ConnectPort.

To control CheerLights, just send a Tweet to @CheerLights and mention a color.

Just think when you send this Tweet that you are updating 1000’s of lights, apps, browsers, and widgets all at the same time.

Spread some cheer…

[via MAKE / Lifehacker / CBC / ioBridge Projects]

]]>
https://blogs.mathworks.com/iot/2011/12/07/cheerlights-connecting-lights-together-to-bring-us-closer/feed/ 0
Arduino 1.0 to ThingSpeak Sketch https://blogs.mathworks.com/iot/2011/10/17/arduino-to-thingspeak-sketch/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/10/17/arduino-to-thingspeak-sketch/#comments Mon, 17 Oct 2011 20:47:19 +0000 https://blogs.mathworks.com/iot/?p=838 The Arduino team recently released the release candidate of Arduino 1.0 on Google Code. It’s a available for Windows, Mac, and Linux. Version 1.0 of Arduino’s IDE includes enhancements to... read more >>

]]>
The Arduino team recently released the release candidate of Arduino 1.0 on Google Code. It’s a available for Windows, Mac, and Linux. Version 1.0 of Arduino’s IDE includes enhancements to the GUI and additions and changes to the Arduino Hardware API. Since the release, we have been beta testing Arduino 1.0-rc1 and find the updates to be spot on. This is definitely a step forward. A big change that affects ThingSpeak Arduino Sketches is the inclusion of DHCP and DNS support to the Ethernet library, which was integrated by Adrian McEwen. We are able to use the new Arduino 1.0 to make it as easy as possible to connect the Arduino platform to the Internet. Download the latest Arduino IDE on Google Code.

Arduino 1.0 and ThingSpeak Examples

We have created a new ThingSpeak Sketch for Arduino 1.0 that you can use for the Arduino and Ethernet Shield or the Arduino Ethernet all-in-one. All you have to do is add your ThingSpeak Write API Key to the sketch, upload to the Arduino, and connect to your network. The sketch includes automatic network configuration with DHCP, domain name resolution using DNS, a watchdog / reset function to keep the Arduino online, and a function to update ThingSpeak Channels. The new sketch has been running without hiccup in our lab for few weeks. We hope that you get the same reliability. Go ahead and copy, transform, and combine…

View Arduino 1.0 –> ThingSpeak Sketch on GitHub

]]>
https://blogs.mathworks.com/iot/2011/10/17/arduino-to-thingspeak-sketch/feed/ 1
Arduino and ThingSpeak Examples are Now on GitHub https://blogs.mathworks.com/iot/2011/10/16/arduino-and-thingspeak-examples-are-now-on-github/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/10/16/arduino-and-thingspeak-examples-are-now-on-github/#respond Sun, 16 Oct 2011 20:02:07 +0000 https://blogs.mathworks.com/iot/?p=830 We are moving our Arduino Examples to GitHub to make it easier to copy, modify, and combine with your ideas. If you want to collaborate on creating the very best source code and examples for Arduino,... read more >>

]]>
We are moving our Arduino Examples to GitHub to make it easier to copy, modify, and combine with your ideas. If you want to collaborate on creating the very best source code and examples for Arduino, feel free to contact us. We will be releasing our brand-new Arduino 1.0 sketches shortly. GitHub Speaks…

ThingSpeak on GitHub

]]>
https://blogs.mathworks.com/iot/2011/10/16/arduino-and-thingspeak-examples-are-now-on-github/feed/ 0
DIY Weather Station with Arduino, Processing, and ThingSpeak https://blogs.mathworks.com/iot/2011/09/01/diy-weather-station-with-arduino-processing-and-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/09/01/diy-weather-station-with-arduino-processing-and-thingspeak/#respond Thu, 01 Sep 2011 21:58:48 +0000 https://blogs.mathworks.com/iot/?p=810 [lars] created a weather station from scratch using sensors and bits from SparkFun and Adafruit. Lars wanted to log weather data and access it from remotely. He built the weather station using... read more >>

]]>
[lars] created a weather station from scratch using sensors and bits from SparkFun and Adafruit. Lars wanted to log weather data and access it from remotely. He built the weather station using humidity, temperature, pressure, and light sensors collecting data from his apartment in Ithaca, NY. Originally, Lars was collecting data with his own web application created with PHP and MySQL. He has since started publishing his data to ThingSpeak where others can view the data and potentially build applications.

ThingSpeak Weather Station

Behind the scenes, Lars uses the Arduino microcontroller to collect data from the sensors and uses Processing to publish data to his ThingSpeak Channel.

From Lars’ project site:

The goal of this project is to log some weather data and be able to access it from anywhere. There is some sensor data (temperature, relative humidity, pressure, and ambient light) and some computed data (dew point). You can see the weather condition in my apartment in Ithaca, NY at my ThingSpeak Channel 346. You can also look at the Google Chart of my own MySQL solution, which I no longer maintain.

Check out a detailed breakdown of the Weather Station project and more awesome projects on Lars’ project site, called “make.larsi.org“.

]]>
https://blogs.mathworks.com/iot/2011/09/01/diy-weather-station-with-arduino-processing-and-thingspeak/feed/ 0
Connecting Arduino to ThingSpeak using Python https://blogs.mathworks.com/iot/2011/07/20/connecting-arduino-to-thingspeak-using-python/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/07/20/connecting-arduino-to-thingspeak-using-python/#comments Wed, 20 Jul 2011 05:07:18 +0000 https://blogs.mathworks.com/iot/?p=754 Over on the Tenet Technetronics Blog there are some great posts about how to connect Arduino to ThingSpeak using Python as the middleware. Please check it out and thank them for putting together an... read more >>

]]>
Over on the Tenet Technetronics Blog there are some great posts about how to connect Arduino to ThingSpeak using Python as the middleware. Please check it out and thank them for putting together an awesome ThingSpeak Application Note and video. The video demonstrates publishing sensor data to the web using ThingSpeak and Python. The sensor data is collected by an Arduino MCU.

]]>
https://blogs.mathworks.com/iot/2011/07/20/connecting-arduino-to-thingspeak-using-python/feed/ 1
Using REST, Arduino, and Python to Update ThingSpeak Channels https://blogs.mathworks.com/iot/2011/07/06/using-rest-arduino-and-python-to-update-thingspeak-channels/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/07/06/using-rest-arduino-and-python-to-update-thingspeak-channels/#respond Thu, 07 Jul 2011 00:16:17 +0000 https://blogs.mathworks.com/iot/?p=735 [sirleech] of Australian Robotics created a project based on the RESTduino libraries by Jason Gullickson for Arduino-based microcontrollers. RESTduino turns an Arduino into a RESTful device and gives... read more >>

]]>
[sirleech] of Australian Robotics created a project based on the RESTduino libraries by Jason Gullickson for Arduino-based microcontrollers. RESTduino turns an Arduino into a RESTful device and gives you the ability to access it with structured URLs. In this project, sirleech extends RESTduino with some Python scripting so that a RESTduino device can update a ThingSpeak Channel. Visit GitHub for the complete project source code.

]]>
https://blogs.mathworks.com/iot/2011/07/06/using-rest-arduino-and-python-to-update-thingspeak-channels/feed/ 0
Instructables Make it Tweet Contest https://blogs.mathworks.com/iot/2011/06/28/instructables-make-it-tweet-contest/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/06/28/instructables-make-it-tweet-contest/#respond Tue, 28 Jun 2011 23:34:10 +0000 https://blogs.mathworks.com/iot/?p=727 [willnue] of NUEwire created a project for the “Make it Tweet Contest” over on Instructables.com sponsored by Adafruit. The contest is simple: make something tweet. If you use our... read more >>

]]>
[willnue] of NUEwire created a project for the “Make it Tweet Contest” over on Instructables.com sponsored by Adafruit. The contest is simple: make something tweet. If you use our ThingTweet app, sending a Tweet could not be easier. And, if you have an Arduino setup as a device on your ThingSpeak account, ThingTweet generates the Arduino sketch for you automatically. Here is the tutorial to help you get started with ThingTweet and Arduino: Update Twitter with ThingTweet and Arduino + Ethernet Shield.

willnue added the ability to tweet to his GE Wireless Control Center Alarm system. He added an Arduino with Ethernet Shield and uses the ThingTweet app to connect the alarm to Twitter. Check out his detailed Instructables to learn more, build your own social thing, and enter the contest.

NUEwire Tweeting Alarm System

wilnue says,

This project will add tweeting capabilities to the GE 45142 Choice-Alert Wireless Control Center Alarm system. The alarm system allows you to connect up to 16 different sensors across 4 zones and with the addition of the Arduino powered AlarmingTweet you can enable it to keep you informed of its status anytime anywhere.

Good luck with the contest!

]]>
https://blogs.mathworks.com/iot/2011/06/28/instructables-make-it-tweet-contest/feed/ 0
Seriot: Serial Bridge for the Internet of Things https://blogs.mathworks.com/iot/2011/05/31/seriot-serial-bridge-for-the-internet-of-things/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/05/31/seriot-serial-bridge-for-the-internet-of-things/#respond Tue, 31 May 2011 23:18:46 +0000 https://blogs.mathworks.com/iot/?p=671 [willnue] created Seriot which is a Windows-based serial bridge for sensors (and devices like Arduino and Netduino) and ThingSpeak web services. Seriot listens to serial commands and sends them to... read more >>

]]>
[willnue] created Seriot which is a Windows-based serial bridge for sensors (and devices like Arduino and Netduino) and ThingSpeak web services. Seriot listens to serial commands and sends them to ThingSpeak without having to have a dedicated network connection at each sensor. Visit NueWire to download the Windows application and learn more about this project.

[via NueWire / Arduino Forum]

]]>
https://blogs.mathworks.com/iot/2011/05/31/seriot-serial-bridge-for-the-internet-of-things/feed/ 0
ThingSpeak Shower Time Analysis with RFID and Arduino https://blogs.mathworks.com/iot/2011/04/26/thingspeak-shower-time-analysis-with-rfid-and-arduino/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/04/26/thingspeak-shower-time-analysis-with-rfid-and-arduino/#respond Tue, 26 Apr 2011 16:28:43 +0000 https://blogs.mathworks.com/iot/?p=611 [Paul Asselin] was curious to see how long he spent showering in an effort to reduce energy and resource consumption. Paul had a bunch of parts laying around, an Arduino, Ethernet Shield, Real-time... read more >>

]]>
[Paul Asselin] was curious to see how long he spent showering in an effort to reduce energy and resource consumption. Paul had a bunch of parts laying around, an Arduino, Ethernet Shield, Real-time Clock module, and an RFID reader. He decided to make a system that allows you to “check in” when you shower and upload the data for analysis to ThingSpeak.

ThingSpeak Showering Analysis and Resource Monitoring

Paul says,

I wanted to know how much time I was spending under the shower each day, especially in these environmentally conscious times. The benefits of that are that I can perhaps save some money on the water bills and also study the effect of temperature on my showering time.

ThingSpeak Shower Time Analysis with RFID and Arduino Ethernet

[via Paul Asselin]

]]>
https://blogs.mathworks.com/iot/2011/04/26/thingspeak-shower-time-analysis-with-rfid-and-arduino/feed/ 0
Using Arduino and Python to Update a ThingSpeak Channel https://blogs.mathworks.com/iot/2011/01/22/using-arduino-and-python-to-update-a-thingspeak-channel/?s_tid=feedtopost https://blogs.mathworks.com/iot/2011/01/22/using-arduino-and-python-to-update-a-thingspeak-channel/#respond Sun, 23 Jan 2011 00:28:20 +0000 https://blogs.mathworks.com/iot/?p=77 “mattyw” shows us how to read a thermistor temperature sensor with an Arduino and use a python script to update a ThingSpeak Channel. window.onload = document.write(" "); ... read more >>

]]>
“mattyw” shows us how to read a thermistor temperature sensor with an Arduino and use a python script to update a ThingSpeak Channel.

]]>
https://blogs.mathworks.com/iot/2011/01/22/using-arduino-and-python-to-update-a-thingspeak-channel/feed/ 0