MediaTek Sandbox Interfacing With LinkIt One

by KedarP1 in Circuits > Microcontrollers

924 Views, 3 Favorites, 0 Comments

MediaTek Sandbox Interfacing With LinkIt One

5.png
FIJNNELII8ZUNH5.jpeg

The MediaTek Cloud Sandbox is a cloud platform for IoT projects. Though there are multiple platforms available now, this one is made by the manufacturer! So the integration with your hardware is seamless.
In this instructable, I will walk you through the process of transmitting data to the MediaTek Cloud Sandbox using HTTP protocol and their REST API. We will log data from pressure and temperature sensors to the cloud.
The temperature sensor monitors temperature and humidity and the pressure sensor monitors pressure and altitude.
Let's get started!

Here is the link for the Sandbox: https://mcs.mediatek.com/

Register for a free account and proceed.

Create a Prototype!

1.png
2.png

The first step to connecting your device with MCS is 'Creating a Prototype' on the dashboard.
Right now we are creating a prototype named 'test' to log our sample data.

Adding Data Channels

3.png
4.png

After the prototype is ready, it's time to add data channels, the listeners for your data logs.
The first is our temperature channel. I have made use of a display type channel with float input values.
The ID is very significant, because this will be the matching point for the REST API inputs.
Take a look at the name and ID and units I've specified.
Go on to add the same for rest of your channels!

Add a Test Device

6.png
567512b2937ddbde1100082a.jpeg

Go to 'Add a test Device' now and create a device.
Here I have created a device named 'linkit1', you can name it whatever you want.

After this is complete, you will get a Device ID and device Key, they are required for data uploading through the API!

Make the Connections!

FIKOJBMIIAMCMT6.jpeg
C360_2015-12-16-23-19-52-341.jpg
5671a35850e1b62d7a0014db.jpeg
C360_2015-12-16-23-08-24-904.jpg

Connect the required sensors, and antennas.

Here I have connected the wifi module, Temperature and Pressure sensors.

Code!

I have attached my code here.

We start with including all the required files. Then define your WiFi AP and Password.
Enter Device ID and Key.
Burn the code.

And you're good to go!

Enjoy!

Downloads