Introduction: Connect MediaTek LinkI ONE Development Board to IBM Bluemix

Overview
Skill Level: Any Skill Level

Basic Arduino Knowledge

Ingredients

Microsoft Windows XP/Vista/7/8, Or Mac OS X 10.09 or 10.10. Arduino IDE Version 1.5.6-r2 BETA and 1.5.7 BETA LinkIt ONE SDK and HDK

Step 1: Getting Started With LinkIt ONE Board

Getting started with LinkIt ONE board
MediaTek LinkIt ONE development platform enables you to design and prototype Wearables and Internet of Things (IoT) devices, using hardware and an API that are similar to those offered for Arduino boards.

Select the below link to see step by step guide to set up the LinkIt ONE development environment on Microsoft Windows PC or Apple OSX Computer. Register here to get Mediatek Lab’s SDK & HDK and create wearable and IoT products.

LinkIt ONE : Get Started

Optimized performance and power consumption to offer consumers appealing, functional Wearables and IoT devices

Based on MediaTek MT2502 (Aster) SOC, board offers comprehensive communications and media options, with support for GSM, GPRS, Bluetooth 2.1 and 4.0, SD Cards, and MP3/AAC Audio, as well as Wi-Fi and GNSS (hardware dependent)

Step 2: Connect LinkIt ONE Board to WiFi Access Point

Now let’s try to connect LinkIt ONE board to your WiFi Access point.
For that let’s try to run a simple WiFi Example sketch on LinkIt ONE board and verify it is connected to your WiFi Access Point

1.Open the LinkIt ONE developer guide from the link http://labs.mediatek.com/fileMedia/download/5fed7...

2.Follow the instructions mentioned in the section “5.3. Connecting to the web using Wi-Fi” of the adove document, to connect to WiFi access point and run the example. This verifies that LinkIt ONE board is connected to your WiFi access point and can access internet.

Step 3: Download the LinkItONE-IBMBluemix Example Code & Modify

1. Download the example sketches from the link :

https://github.com/ISweek/LinkIt-ONE-WiFi-to-IBM-B...

2. Follow the instructions mentioned in the readme.md file

https://github.com/ISweek/LinkIt-ONE-WiFi-to-IBM-B...

3. If you have Grove base shield, connect the shield to the LinkIt ONE board first and then the temperature sensor to the D2 pin of the Grove Connect.

4. Open the quickstart.ino ( from the downloaded zip file) sketch in Arduino IDE , modify the sketch with your WiFi Access point details.

~#define WIFI_AP “your_ap_ssid” // Enter your Access point name

#define WIFI_PASSWORD “your_password” // Enter your Access point password

#define WIFI_AUTH LWIFI_WPA // choose from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP, depending on security type of your WiFi access point.

char macstr[] = “aabbccddeeff”; // Enter the device mac address here. You can see the WiFi MAC address printed on the backside of the LinkIt ONE board.

Step 4: Compile, Upload, Run & View !

1.Compile the sketch and upload to the LinkIt ONE board.
Once the upload is completed the board will connect to the WiFi Access Point and start sending the temperature and humidity values as MQTT messages to the IBM Bluemix cloud.

2.From the PC web browser, Go to https://quickstart.internetofthings.ibmcloud.com/... , enter the same MAC Address which you have added in the quickstart.ino sketch.

3.Press Go to view the temperature and humidity values coming from the LinkIt ONE board.

4.You should be able to view the live temperature and humidty values from the LinkIt ONE board now !!

Comments

author
DIY Hacks and How Tos (author)2016-11-07

That looks like a good system. I normally use Arduino for most of my projects. But I am going to have to give this a try.

About This Instructable

153views

7favorites

License:

Bio: ISweek is an wholesale supplier that sells electronic products and industrial products to global buyers. You can buy high-quality products at the best wholesale
More by ISweekcom:connect MediaTek LinkI ONE Development board to IBM Bluemix
Add instructable to: