Intro: Control LED Over WiFi Using Linkit One Board
In this instructable, I will show you how to control LED's, or other outputs, over WiFi.
This is just to learn the basics of the Mediatek LinkIt ONE board. I didn't want do something too simple, like blinking an led, because you can easily do that on an arduino.
Step 1: Download Drivers
The Mediatek Linkit One is a powerful microcontroller, but getting it set up isn't quite as easy as an arduino. Here are the steps to get it set up.
1. Download latest Arduino IDE: https://www.arduino.cc/en/Main/Software
2. Install and open Arduino IDE, open preferences, find additional boards manager and paste: http://download.labs.mediatek.compackage_mtk_lin... into the text box.
3. Go to Tools --> Board --> Board Manager. Scroll down until you see "Mediatek Linkit One" and click it, then you should see an install button, click it.
4. Download USB drivers from:https://labs.mediatek.com/site/global/developer_to... , Unzip the file, and open the "Drivers" folder and double click the .mpkg file to open it. This will take you through a setup wizard, just accept the terms and conditions and press continue whenever you can. There will also be a Firmware updater in the folder, double click to install it.
Step 2: Update Board's Firmware
To update the Board's Firmware, open the "firmware updater" software that you installed in the last part in the previous step. Once open, Make sure that the switches on the board are in the right position for updating firmware; MS for the MS--UART, USB for the USB--Battery switch, and SPI for the SPI--SD switch. Plug your board into your computer, then click "Download". It will now begin downloading and installing the latest firmware for your board.
Step 3: Download and Open the Arduino Sketch
Download the sketch below and open it in the Arduino IDE. Make sure that the switches are in the correct position; UART on the MS--UART switch, USB fort he USB--Battery switch, and SPI for the SPI--SD switch.
Step 4: Plug in WiFi Antenna
On the bottom of the board, there are 3 antenna connectors. Plug the thin rectangular antenna into the middle antenna connector. The antenna is required for getting a WiFi signal.
Step 5: Upload Sketch to Board
Upload the sketch that you downloaded from the last step by going to Tools --> Board --> LinkIt ONE then:
Tools --> Serial Port and select the port that the board is plugged into. Finally, press upload (the button with the horizontal arrow).
If the upload Fails, try changing the serial port.
Step 6: Using the Webserver
To use the web server, open the serial monitor (the icon in the upper right corner), select 115200 as the baud rate. The serial monitor should display "IP: " and some numbers and decimals behind it. Copy all of the numbers following the IP: and paste into a search bar in your internet browser. It will say "Doing Nothing". To change the state of the onboard LED, go into the search bar and add /on or /off to the end of the address and press enter. The on-board LED will change whether the /on or /off is used.
Step 7: Done!
Thanks for viewing this instructable! If you liked it, please "favourite" it, share it or leave a comment.