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.
Basic knowledge of Intel Edison is a must have, if you’ve never used an Intel Edison 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.
The Intel Edison will use a node.js project which you edit using the Intel XDK. You can find the light sensor
project in the /intel/experiments/
folder of the nodejs-client-examples that you downloaded in the setup guide.
1 | { |
You find the device credentials under the SETUP tab of your device settings, which you can find behind the gear icon.
After the project has started, 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.