Published © CC BY-NC

ESP8266 - Control an External LED Over Internet

Control an external LED light from anywhere in the world using the ESP8266. The GPIO pin serves as an output source to the LED.

BeginnerProtip2 hours22,165
ESP8266 - Control an External LED Over Internet

Things used in this project

Hardware components

ESP8266 ESP-01
Espressif ESP8266 ESP-01
Arduino UNO
Arduino UNO
LED (generic)
LED (generic)

Software apps and online services

Arduino IDE
Arduino IDE


Read more


LED connection to Esp8266

Remove the GPIO_0 connection from the LED and connect it to GND while uploading the code. After that connect it back to the LED's anode pin.



copy and paste this code in your arduino IDE
  Download latest Blynk library here:

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials:
    Sketch generator: 
    Blynk community:  
    Follow us:        

  Blynk library is licensed under MIT license
  This example code is in public domain.

  This example runs directly on ESP8266 chip.

  Note: This requires ESP8266 support package:

  Please be sure to select the right ESP8266 module
  in the Tools -> Board menu!

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
  // Debug console

  Blynk.begin(auth, ssid, pass);

void loop()




3 projects • 29 followers
A passionate Electronics and communication engineering student who loves to make & invent new stuffs. Good at programing & hardware field.


Add projectSign up / Login