Skill Level: Any Skill Level

Basic Arduino Knowledge


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 


  1. 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.

    1. 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)

  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/5fed7907-b2ba-4000-bcb2-016a332a49fd
    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.
  3. Download the LinkItONE-IBMBluemix example code & modify

    1. Download the example sketches from the link : https://github.com/iotgeek/LinkItONE-IBMBluemix

    2. Follow the instructions mentioned in the readme.md file https://github.com/iotgeek/LinkItONE-IBMBluemix/blob/master/README.md

    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.
  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 !!

1 comment on"How to connect MediaTek LinkIt™ ONE Development board to IBM Bluemix"

  1. ValerieLampkin May 05, 2016

    Question for the contributor of this recipe and code- does this still work as designed? Trying to troubleshoot problem with unsuccessful send – see stack overflow post http://stackoverflow.com/questions/37042880/ibm-bluemix-iot-unsuccessfully-sent?

Join The Discussion