We've created a Arduino library to connect your Arduino to ThingSpeak. You can set up the new ThingSpeak Communication Library for Arduino in about 60 seconds from within the Arduino IDE, and try out the examples right away! You can read and write with just 1 line of code!
See the 60 second video:
Send us your feedback!
Great that there is a Library for Arduino that connect to ThingSpeak! But when I try to add the library in "manage library" I can't find ThingSpeak when I use the filter? I follow every step in the video but still nothing.. Will try again later!
I've found that sometimes the Arduino IDE caches this info, and then doesn't always update. Assuming you're using windows, if you go to the AppData/Arduino15 directory, there's a file called library_index.json. Quit the Arduino IDE, delete that file, and start it up again, and you should be all set.
On my computer, this file is at:
I actually haven't had any success with the ThingSpeak library for Arduino yet. I have installed the library and trying the "WriteVoltage" example. I'm using an Arduino Uno R3 with a Wifi Shield. I started by "uncomment the line below" in order to use the Wifi Shield. I have checked the ssid and password and the Arduino connects to my network. The channelnumber and writeAPIkey is correct and I even tried to change between "public channel" and "private channel" in ThingSpeak but without any succes. I have attached a 3 V to A0 but there is no reaction at my ThingSpeak Channel. I can update the channel by a HTTP Post request but not from my Arduino.
The 'WriteVoltage' example is hard coded to read analog input from pin 0.
You can add a print statement after this line to determine if the sensor value is being read correctly.
Have you gotten the standard wi-fi shield examples working? I have found that I had to get them working, first, and I found I had to upgrade the firmware on the wi-fi shield as well. To say the least, my experience with it has been mixed.
There's no direct support for the status field, but now that you've asked for it, I'll work on that. For now, you can use the "writeRaw"function to write fields that aren't directly supported.
I am the new user with the Arduino and want to learn more and more about it.
Can you please tell me something more about this library?
I want to know which type of library is it and which type of data type and keywords it contains?
Also is it compatible with all the Arduino hardware?
I am interested in using thingspeak and twitter to send me a tweet when a condition changes (Trigger a reaction-Turn off that Humidifier! It's above 60). I have been trying to follow along with the community ThingTweet here;
I downloaded the code here;
and replaced String thingtweetAPIKey = "XXXMX2WYYR0EV68M"; with the API key that was generated when I linked my twitter account to thingspeak. I have also added the thingspeak library to the sketch, #include
The sketch compiles and loads. However when I open the serial monitor I see
Connecting Arduino to network...
Arduino connected to network using DHCP
Connecting to ThingSpeak...
and then that's it. According to the sketch I would expect to see that the connection failed. No matter what I have tried, I get the same results! Possibly you could offer some insight? I am using an arduino mega 2560 r3, with an arduino PoE ether shield (although I am not using a PoE port) using Arduino 1.6.5. I am able to connect to the web with a different sketch using Temboo and the same hardware and am able to send myself an email (via gmail).
Any help you can provide would be appreciated.
The 'ThingSpeak and MATLAB Tutorial' Documentation section covers a similar workflow to what you have described. The tutorial covers how to create a Channel, how to write data to the Channel, how to analyze the Channel data using MATLAB and how to perform actions when data conditions are matched.
From the description, it appears that data from the Arduino is being sent to ThingSpeak. If so, you can skip to the 'Act' section of the tutorial which "shows how to send a tweet when your dew point data exceeds 60°F using ThingTweet and React apps."
To summarize the major points:
1. Attach Twitter Account using the ThingTweet app
2. Create a React app with the appropriate condition and the action 'ThingTweet' with the message to tweet.
Version 1.1.0 of these libraries now supports ESP8226 devices, the Particle Electron (coming soon!).
You can use these libraries directly from within the Arduino and Particle IDEs.
All the best,
As a new user I need help in finding an appropriate Example for Aurdino with an Ethernet Shield. My intended application is to use ThingSpeak to log the exact time and date of pulses that are created by my water flow rate sensor. Each pulse from my sensor indicates one gallon of flow. I intend to use the reed switch in the meter to trigger an interrupt in the Aurdino and to have the Sketch write a one digit field representing one gallon of flow to my channel. I assume the exact Time and Date will be appended to the channels log file. The maximum pulses rate will be 10/minute and up to 400 per day and 15,000/month. Are there are Sketch examples for Aurdino with Ethernet Shield and Interrupt initiated writes?
Hi I've had an early developer edition Due+Ethernet/wiznet shield running connected to xively for a couple of years and decide to switch to thingspeak
Seems like it would be wired Ethernet shield and be transparent to the upper layer.
I tried the example first, and I wonder if anybody can shed some light on the error
Arduino: 1.6.8 (Windows 8.1), Board: "Arduino Due (Programming Port)"
WARNING: library ThingSpeak claims to run on [avr architecture(s) and may be incompatible with your current board which runs on esp8266] architecture(s).
In file included from C:\..\Documents\Arduino\libraries\ThingSpeak\examples\ReadWeatherStation\ReadWeatherStation.ino:19:0:
C:\..\Documents\Arduino\libraries\ThingSpeak\src/ThingSpeak.h:86:8: error: #error Only Arduino Yun, Uno/Mega/Due with either Wired or wi-fi Ethernet shield, ESP8266, and Spark Core/Photon/Electron are supported.
#error Only Arduino Yun, Uno/Mega/Due with either Wired or wi-fi Ethernet shield, ESP8266, and Spark Core/Photon/Electron are supported.
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee