LinkIt One + Blynk LED Controller

About: 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 caused by my projects.

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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 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

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

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    2 Discussions

    0
    None
    kungmongie

    3 years ago

    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? ;)