Introduction: LinkIt One + Blynk LED Controller

Picture of LinkIt One + Blynk LED Controller

Welcome to this linkit one tutorial!! I'm exited about this project and the ones to come!! In this instructable I will be showing how to control a led from anywhere with blynk. If you haven't set up your linkit board check out my other project here.

Step 1: Program

Picture of Program

Once again click here if you don't know how to program your board.

Install the blynk library too, here is the link

Here is the code I made. WARNING: THE BLYNK EXAMPLE CODE DOESNT WORK!!

___________________________________________________________________________________

//This code has been edited by funguypro and tested wth the linkit one board// This sample verified with the Blynk 3.1 and iphone. checked with Analog A0, Virtual V0

#defineARDUINO150// to avoid Blynk library use yield() in function run(), without this. system will crash!

#include<LWiFi.h>

#include<LWiFiClient.h>

#include<BlynkSimpleLinkItONE.h>

// You should get Auth Token in the Blynk App.// Go to the Project Settings (nut icon).charauth[]="yourauthcode";

#defineWIFI_SSID"YOURSSIDHERE"// Your network SSID (name)#defineWIFI_PASS"YOURPASSHERE"// Your network password (use for WPA, or use as key for WEP)#defineWIFI_AUTHLWIFI_WPA// choose from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP

voidsetup(){

Serial.begin(9600);

Blynk.begin(auth,WIFI_SSID,WIFI_PASS,WIFI_AUTH);

Serial.println("System start!");

}

uint16_tloop_id=0;

voidloop(){

loop_id++;

Serial.println(loop_id);

Blynk.run();

}


BLYNK_READ(0){

Serial.println("Blynk comes to read!");

Blynk.virtualWrite(0,loop_id);

}

/p>

Step 2: Connect Led and Test

Picture of Connect Led and Test

I hope you enjoyed this project!! Stay tuned for more Linkit One Projects

Step 3: Questions?

Feel free to contact me! http://goo.gl/forms/wsFpmA7SOH

Comments

kungmongie (author)2015-10-18

Thanks! I was looking for just this tutorial :) The only difference I made was to set the button to D13 in the Blynk app, that way I didn't need to set up an external LED, how lazy was I? ;)

DIY Hacks and How Tos (author)2015-10-17

Nice application for a linkit One

About This Instructable

332views

1favorite

License:

Bio: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths ... More »
More by Funguypro:3D Print Your House!!!!!DIY Raspberry Pi Indoor Outdoor WebcamSee Through Buildings With a Drone
Add instructable to: