Introduction: LinkIt One + Blynk Battery Indicator

Picture of LinkIt One + Blynk Battery Indicator

Here is an project to read the LinkIt One's batter voltage through blynk

Step 1: Code

Picture of Code

Don't know how to code the linkit one board? click here

Here is the code I made:

//Code Created By FunguyPro

#define ARDUINO 150 //#define BLYNK_PRINT Serial //Uncomment for Serial Data

#include #include #include #include #include

int i = 0;

SimpleTimer timer;

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

#define WIFI_SSID "YOURSSID" // Your network SSID (name) #define WIFI_PASS "YOURPASS" // Your network password (use for WPA, or use as key for WEP) #define WIFI_AUTH LWIFI_WPA // choose from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP

void setup() { Serial.begin(9600); Blynk.begin(auth, WIFI_SSID, WIFI_PASS, WIFI_AUTH); delay(500); }

void loop() {; i++; if(i == 1000){ int batt = LBattery.level(); Blynk.virtualWrite(V5, batt); i = 0; } delay(1); }

Step 2: Connect Blynk

Picture of Connect Blynk

don't know how to connect blynk? click here

Step 3: Need Help?

click here


About This Instructable




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: