The LinkIt ONE development board is an open source, high performance board for prototyping Wearables and IoT devices. It's based on the world's leading SoC for Wearables, MediaTek Aster (MT2502) combined with high performance Wi-Fi (MT5931) and GPS (MT3332) hipsets to provide you with access to all the features of MediaTek LinkIt. It also provides similar pin-out features to Arduino boards, aking it easy for you to connect to various sensors, peripherals, and Arduino shields.
Thanks to the Wi-Fi and GPRS function, LinkIt ONE is very fit for IoT solution. Here We will use LinkIt ONE to make a IoT demo.
1. Display household temperautre, humidity, luminosity, volume control data collection on OLED screen
2. Cloud service, data uploaded to Cloud platform Xively, real-time monitoring
3. Data retention for reviewing how data changes over time
4. Remote control Household Appliances by sending a message
5. Table Lamp, 3D Printing, controlled by your phone
Here we use LinkIt ONE as the controller, it's a very powerful board with GPRS and Wi-Fi.
Besides, We need some sensor:
1. Grove - Light Sensor
2. Grove - Sound Sensor
3. Grove - Temperature&Humidity Sensor Pro
And a Display:
Grove - OLED Display 0.96''
As well as a relay to control the lamp:
Grove - Relay
To fix all things together, we need a Skeleton Box and some screw and nut.
Thanks to the easy-to-use of Grove, the connection is very easy.
First, we need to fix the grove to a arcylic of skeleton box:
Then we insert a Sim card to the bottom of LinkIt ONE, and then fix it to the arcylic:
Fix the oled to another piece of arcylic with some screw and nut:
Finally, insert Base Shield to LinkIt ONE, and connect all the groves to it:
1. Grove - Light Sensor -> A2
2. Grove - Sound Sensor -> A0
3. Grove - Temp&Humi Sensor -> D2
4. Grove - Relay -> 5
5. Grove - OLED -> I2C
And fix the 2 side of skeleton box together, hardware is ok now.
Firstly, we need to download the Shell file here
There are 3 file in it:
1. Lamp Part_1.stl
2. Lamp Part_2.stl
3. Lamp Part_3.stl
You need to print all the 3 parts. When the 3 parts finish printing, you can make it into a Lamp easily.
What's more, you shile fix a led and some wire as shown in the above image.
You can download the code in our github page, please click here
It's a sketchbook, please click how to use sketchbook
Open IoT_Demo.ino, and uploade it to LinkIt ONE. If this is your first time to use a LinkIt ONE,
Please refer to LinkIt ONE Wiki Page
There are some need to be set in the code, line 48:
You should have an Xively account first, then make a API Key and the feed id, and write it to the code.
If it's your first time to use Xively, please refer to How to use Xively.
After uploading the code, the Wi-Fi SSID and key is also need to be set.
Make LinkIt ONE go into Storage Mode, connect it to PC via a micro USB cable
then you can find a u-disk in your PC.
Create a new .txt file named "wifi.txt", open and edit it:
Save it and switch to USB mode, and reset the system.
Then the demo will run, you can:
1. You can see the data of sensor display in the OLED
2. Send "ON" to turn on the lamp, "OFF" to turn off it.
3. Goto your xively page to see the sensor data
It's my data, you can take a look: https://xively.com/feeds/59487691#
It's just an evry simple demo, actually for the IoT application, there's a lot of things to do.
If you have any idea about how to make it better, please make it happen.