Introduction: How to Use Arduino WeMos D1 WiFi UNO ESP8266 IOT IDE Compatible Board by Using Blynk
Arduino WeMos D1 WiFi UNO ESP8266 IOT IDE Compatible Board
Description:
WiFi ESP8266 Development Board WEMOS D1. WEMOS D1 is a WIFI development board based on ESP8266 12E. The functioning is similar to that of NODEMCU, except that the hardware is built resembling Arduino UNO. The D1 board can be configured to work on Arduino environment using BOARDS MANAGER.
Specification:
- Microcontroller: ESP-8266EX
- Operating Voltage: 3.3V
- Digital I/O Pins: 11
- Analog Input Pins: 1
- Clock Speed: 80MHz/160MHz
- Flash: 4M bytes
Step 1: Item Preparation
In this tutorial, we'll use an application from smartphone "Blynk" to control the Arduino Wemos D1 (ESP8266) with LED Traffic Light Module.
Before we begin, prepare all the item needed:
- Breadboard
- Arduino Wemos D1 Wifi UNO ESP8266
- Jumper wires male to male
- LED Traffic Light Module ( you can also use base LEDs )
- micro USB
- Smartphone ( You need to download "Blynk" from Play Store/iStore )
Step 2: Pin Connection
Follow the connection as shown above.
Step 3: Board Installation
Next, open Arduino IDE and go to [File => Preferences]. A dialog box appears. In this box, an additional board manager URL text box is present.
- Copy and paste the following URL into the box and click OK to download the packages.
- http://arduino.esp8266.com/stable/package_esp8266com_index.json
Step 4: Find Out in Board Manager
Next, go to [Tools => Board => Board Manager] in your Arduino IDE. The Boards Manager window appears as below. Scroll down the boards in the board manager to select ESP8266 from the list of available boards. Click on install to begin the installation.
Step 5: Select Board
Next, uploading your first program select the type of "WeMos D1 R1" board from the [Tools => Boards] section in your Arduino IDE.
Step 6: Example Code
To get the example code from the Blynk you need to download the library from Blynk website.
Follow these steps:
- Select "Download Blynk Library".
- Select to "Blynk_Release_v0.5.4.zip".
- Extract the files and copy both of the files (libraries, tools).
- Open Arduino IDE go to [Files => Preferences] find the files that appears on the "Sketchbooks location".
- Open the Arduino file and paste both of the files you've copied.
Then, open your Arduino IDE, go to [Files => Examples => Blynk => Boards Wifi =>Standalone] for the example code.
Step 7: Blynk Setup
Next, you need to set up your "Blynk" from your smartphone.
Follow these steps:
- Download "Blynk" at Play Store/iStore.
- Sign up using your email.
- Go to "New Project" Enter your project name (if needed).
- Choose device "WeMos D1".
- Connection type "Wifi" then "Create". (After create you will receive Auth Token from your email).
- Slide to the left to open "Widget Box".
- Select "Button" to add button.
- Touch the button for "Button Settings".
- Select [Output => Digital => D2,D3,D4] to choose pin connection.
- Mode turn into "Switch".
Step 8: Uploading
Now you need to check out your email inbox and copy the Auth token code.
Insert the Auth Token, Network name, and Password to your programming. Now upload the code to your WeMos D1 (ESP8266) through micro USB. Make sure you use the right port by select at [Tools => Port].
Step 9: Try Out Blynk Button
Select the play button from the upper right side and turn on the pin button.
Step 10: Finish
Now it's working! The Blynk pin buttons works as a switch.
2 People Made This Project!
- WX2CIB made it!
- Recep UYSAL made it!
11 Comments
Question 7 months ago
does Blynk app work only on internet or can we use it through LAN also?
1 year ago
If you guys are doing this on windows, what does your device manager look like when this is working? I cannot for the life of me get this working because I can't get the Arduino IDE to even connect to the board. I have the drivers mentioned in a couple posts above, but every project just dies at connecting.
2 years ago
You need to download this driver for your USB micro "CH341SER"
2 years ago
I followed these instructions but I'm receiving an error. It looks like it can't find a specific file.
"Arduino: 1.8.13 (Windows 8.1), Board: "WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
ESP8266_Standalone:37:32: fatal error: BlynkSimpleEsp8266.h: No such file or directory
#include <BlynkSimpleEsp8266.h>
^
compilation terminated.
exit status 1
BlynkSimpleEsp8266.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences."
2 years ago
For those scratching their heads looking for the WeMos board definition, it's not in alphabetical order, look for Lolin.
2 years ago
reset that
if your blynk and hardwar is not connected as same network no problem,
Question 2 years ago on Step 10
how do you get the file its just sendes me to the page and nothing else
3 years ago
hello,how to blink the inbuilt led through this
the app only showing the digital pins
Question 3 years ago
Hello, without the wi-fi feature... Can I use it as a Uno R3 ?
Will it work with same code as uno?
I want to build a cnc with "cnc shield" with it...
3 years ago on Step 10
Thanks, very good!
Question 3 years ago