An AllThingsTalk Experiment using a light sensor to measure environmental lumosity and show the result in a widget on your computer, displaying and interpreting the value in a lux scale.
For this experiment we use the Grove light sensor. It’s an ideal starter project to become familiar with the board, Grove and more importantly using the AllThingsTalk Maker to monitor and interpret real-time sensor values.
You’ll need basic knowledge of Arduino, if you’ve never used an Arduino before we suggest the setup guide.
First we need to create our device. Log in to AllThingsTalk Maker and navigate to the ground in which you want to create your device. Next follow these instructions.
If you just created a new account, you will have a default ground called playground setup for you. You can use this ground to create your devices.
You find the device credentials under the SETUP tab of your device settings, which you can find behind the gear icon.
Lightsensor.ino
file in your Arduino IDE which you can find under the examples and experiments folderWe are now ready to upload our sketch to the Arduino.
After the sketch has been compiled and uploaded, you should now see the asset created under your device in the AllThingsTalk Maker (you may need to refresh your browser).
It’s time to test the first part of the experiment.
To visualise our date, we will create a pinboard. For more information on pinboards, please check how to use pinboards.
Now we will pin a control (visual representation) for our Light sensor asset.
Note that you can pin the same asset multiple times. For example, pin the above asset again, this time using a label control. For some extra options to customise your controls, please check the Controls page.