Introduction: ESP8266-12 Blynk Wireless Simple Virtual Led
This simple project is to show how you can activate a virtual LED in Blynk.
Pressing the button turns on the virtual LED on the app Blynk, releasing the button turns off the LED
It will be useful for applications such as PIR sensor or reed sensor and many others.
Step 1: Materials
ESP8266-12 (esp8266-7, ...... , esp8266-12e)
button
10k resistor
power regulator 3,3v
Step 2: Connections
ESP8266-12
VCC +3,3v
CH-PD +3.3v
gpio13---- button (pulldown resistor)
GND ground
GPIO5 ground
Step 3: Blynk App
------------------------------------------
store
------------------------------------------
configure blynk
create new project ( use hardware model esp8266 )
generate AUTH TOKEN send E-mail TOKEN ( copy TOKEN in the esp8266 sketch)
in the app Blynk use Led
Step 4: Sketch
sketch
----------------------------------------------------------
to programming the ESP8266-12, I use ide arduino 1.6.5 and CP2102 3.3V USB To UART Serial Interface Module Adaptor ( do not connect the power of the CP2102 to esp8266-12).
----------------------------------------------------------
SP8266 sketch change the sketch in the following lines with your data
char auth[] = "xxxxxxxxxx"; //insert here your token generated by Blynk
Blynk.begin(auth, "ssid", "password!"); //insert here your SSID and password
----------------------------------------------------------
Step 5: Thanks
thanks
by catoplepa
3 Comments
7 years ago
HI, can you show how to programming the ESP8266 with an FT232? Thank you
8 years ago
Hi iolanda1
I'm glad I helped
8 years ago
Hey there thank you for this great info, this is the first time that works for me ,I couldn't find and example at the Blynk website but yours which works great once again thank you!!