Materials needed for this tutorial is:
In this tutorial an LDR sensor will be used to read Analog Data but any sensor with analog data will do just fine. LDR was chose because it is the cheapest and simple sensor on the market right now.
LDR is a Light Dependent Resistor, this sensor could read the amount of light that the sensor receive and later the data could translated into digital data via Linkit One board.
There's an unboxing video attached but it's in Indonesian (sorry).
In order to code with the Linkit One, Arduino IDE need to be installed first then Linkit One Library needs to be added.
Here are the full instruction on how to install the software.
Or this is instructables made by Light Bug has more clear instruction on installing the device software.
Then create a new ID, after new ID is complete. Click"channel"and then make new channel. Just enter the name Box with"LDR sensor"then save it.
when still in the channel page, click API keys. And then save the Write API Keys to notepad. It will be used later for the next step.
The linkit one board comes with 3 antenna. This tutorial will use wifi connectivity to send the data so the wifi data need to be attach to middle antenna port.
take 3 Jumper Wires and set the LDR and 1k Resistor just like in the picture. The Analog Pin A0 will be used to read the sensor data.
The code is made by combining the LWIFI example and the sample code from thingspeak.
On the WriteApiKey Variable write the API that has been made/save from the notepad at step 2.
Verify the code and upload it.
After the code has been uploaded open the serial monitor and set the baudrate at 115200. If the serial monitor print just like in the picture then data has been succesfully sent to the cloud. Check the Thingspeak channel to check the graph data.
This project is originally from Hendra Kusumah.