How to Use Arduino WeMos D1 WiFi UNO ESP8266 IOT IDE Compatible Board by Using Blynk
by mybotic in Circuits > Electronics
156680 Views, 53 Favorites, 0 Comments
How to Use Arduino WeMos D1 WiFi UNO ESP8266 IOT IDE Compatible Board by Using Blynk
![d4312c2b15591326936eaf97467790861518249505-lg.jpg](/proxy/?url=https://content.instructables.com/F81/JB0Y/JQWSZHRD/F81JB0YJQWSZHRD.jpg&filename=d4312c2b15591326936eaf97467790861518249505-lg.jpg)
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
Item Preparation
![d4312c2b15591326936eaf97467790861518249505-lg.jpg](/proxy/?url=https://content.instructables.com/F81/JB0Y/JQWSZHRD/F81JB0YJQWSZHRD.jpg&filename=d4312c2b15591326936eaf97467790861518249505-lg.jpg)
![825e129798d50108de9b0c88b3ba7d9f1472202778-lg.jpg](/proxy/?url=https://content.instructables.com/FY7/87GL/JQWSX1XJ/FY787GLJQWSX1XJ.jpg&filename=825e129798d50108de9b0c88b3ba7d9f1472202778-lg.jpg)
![58cc092a2d533a11c734618df28ea0dd1533800094-lg.jpg](/proxy/?url=https://content.instructables.com/FSB/G9ZY/JQWSVRFY/FSBG9ZYJQWSVRFY.jpg&filename=58cc092a2d533a11c734618df28ea0dd1533800094-lg.jpg)
![6ed8f81c60a6e6d9434a389b37ac69751544693042-lg.jpg](/proxy/?url=https://content.instructables.com/FBM/3I9M/JQWSVREH/FBM3I9MJQWSVREH.jpg&filename=6ed8f81c60a6e6d9434a389b37ac69751544693042-lg.jpg)
![464321044cad74ff4fb449b92457c5221470043095-lg.jpg](/proxy/?url=https://content.instructables.com/FYF/2AEN/JQWSZI7U/FYF2AENJQWSZI7U.jpg&filename=464321044cad74ff4fb449b92457c5221470043095-lg.jpg)
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 )
Pin Connection
![traffic combo.png](/proxy/?url=https://content.instructables.com/FZ3/TUDN/JQQYLVJ3/FZ3TUDNJQQYLVJ3.png&filename=traffic combo.png)
Follow the connection as shown above.
Board Installation
![Inked1._LI.jpg](/proxy/?url=https://content.instructables.com/FMC/X2XD/JQMODO8X/FMCX2XDJQMODO8X.jpg&filename=Inked1._LI.jpg)
![Inked2_LI.jpg](/proxy/?url=https://content.instructables.com/FOR/BIVO/JQMODOAS/FORBIVOJQMODOAS.jpg&filename=Inked2_LI.jpg)
![3.png](/proxy/?url=https://content.instructables.com/FXM/SI5N/JQMODOJ2/FXMSI5NJQMODOJ2.png&filename=3.png)
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
Find Out in Board Manager
![5.png](/proxy/?url=https://content.instructables.com/FAK/E4P8/JQMODOU8/FAKE4P8JQMODOU8.png&filename=5.png)
![11.png](/proxy/?url=https://content.instructables.com/F92/SRI0/JQQYLVON/F92SRI0JQQYLVON.png&filename=11.png)
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.
Select Board
![12.png](/proxy/?url=https://content.instructables.com/FRY/H0TQ/JQQYLVTE/FRYH0TQJQQYLVTE.png&filename=12.png)
Next, uploading your first program select the type of "WeMos D1 R1" board from the [Tools => Boards] section in your Arduino IDE.
Example Code
![b1.PNG](/proxy/?url=https://content.instructables.com/FJT/GMGD/JQWSVLLE/FJTGMGDJQWSVLLE.png&filename=b1.PNG)
![b2.PNG](/proxy/?url=https://content.instructables.com/FC9/JOWT/JQWSVLLF/FC9JOWTJQWSVLLF.png&filename=b2.PNG)
![b3.png](/proxy/?url=https://content.instructables.com/FDR/C2JU/JQWSVLLG/FDRC2JUJQWSVLLG.png&filename=b3.png)
![b4.PNG](/proxy/?url=https://content.instructables.com/F5I/ILDI/JQWSVLLH/F5IILDIJQWSVLLH.png&filename=b4.PNG)
![b5.png](/proxy/?url=https://content.instructables.com/F61/VLWO/JQWSVLLK/F61VLWOJQWSVLLK.png&filename=b5.png)
![b6.PNG](/proxy/?url=https://content.instructables.com/FFH/SN2C/JQWSVLLL/FFHSN2CJQWSVLLL.png&filename=b6.PNG)
![b7.png](/proxy/?url=https://content.instructables.com/F9W/0Q0L/JQWSVLLM/F9W0Q0LJQWSVLLM.png&filename=b7.png)
![14.png](/proxy/?url=https://content.instructables.com/FHE/A8NM/JQQYLXTT/FHEA8NMJQQYLXTT.png&filename=14.png)
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.
Blynk Setup
![1.PNG](/proxy/?url=https://content.instructables.com/FXO/CL9D/JQUUF3WF/FXOCL9DJQUUF3WF.png&filename=1.PNG)
![2.PNG](/proxy/?url=https://content.instructables.com/FZ4/5XL4/JQUUF3XG/FZ45XL4JQUUF3XG.png&filename=2.PNG)
![3.PNG](/proxy/?url=https://content.instructables.com/FXA/9TSE/JQUUF3YH/FXA9TSEJQUUF3YH.png&filename=3.PNG)
![4.PNG](/proxy/?url=https://content.instructables.com/FF7/RVOW/JQUUF456/FF7RVOWJQUUF456.png&filename=4.PNG)
![5.PNG](/proxy/?url=https://content.instructables.com/FBG/UJBF/JQUUF467/FBGUJBFJQUUF467.png&filename=5.PNG)
![6.PNG](/proxy/?url=https://content.instructables.com/FCP/JF4Y/JQUUF478/FCPJF4YJQUUF478.png&filename=6.PNG)
![7.PNG](/proxy/?url=https://content.instructables.com/FGB/ZKX9/JQUUF481/FGBZKX9JQUUF481.png&filename=7.PNG)
![8.PNG](/proxy/?url=https://content.instructables.com/F39/1CM5/JQUUF492/F391CM5JQUUF492.png&filename=8.PNG)
![9.PNG](/proxy/?url=https://content.instructables.com/FIF/I869/JQUUF4A6/FIFI869JQUUF4A6.png&filename=9.PNG)
![11.PNG](/proxy/?url=https://content.instructables.com/FQJ/LXAM/JQUUF4B7/FQJLXAMJQUUF4B7.png&filename=11.PNG)
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".
Uploading
![16.png](/proxy/?url=https://content.instructables.com/F8X/0GCU/JQQYM15R/F8X0GCUJQQYM15R.png&filename=16.png)
![15.png](/proxy/?url=https://content.instructables.com/FW1/B53P/JQQYLYWQ/FW1B53PJQQYLYWQ.png&filename=15.png)
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].
Try Out Blynk Button
![Inked9_LI.jpg](/proxy/?url=https://content.instructables.com/FP3/HHOA/JQUUF5CB/FP3HHOAJQUUF5CB.jpg&filename=Inked9_LI.jpg)
Select the play button from the upper right side and turn on the pin button.
Finish
![cce8344d-1105-4834-8b4c-b2319c5b30c8.jpg](/proxy/?url=https://content.instructables.com/FB3/UIU2/JQUUF8WM/FB3UIU2JQUUF8WM.jpg&filename=cce8344d-1105-4834-8b4c-b2319c5b30c8.jpg)
![dc01a6b0-982f-4d36-946a-ccaae5ec0746.jpg](/proxy/?url=https://content.instructables.com/F1Z/UBTW/JQUUF8X5/F1ZUBTWJQUUF8X5.jpg&filename=dc01a6b0-982f-4d36-946a-ccaae5ec0746.jpg)
![How to Use Arduino WeMos D1 WiFi UNO ESP8266 IOT IDE Compatible Board by Using Blynk](/proxy/?url=https://content.instructables.com/FBC/4P1J/JQWSZXRX/FBC4P1JJQWSZXRX.jpg&filename=How to Use Arduino WeMos D1 WiFi UNO ESP8266 IOT IDE Compatible Board by Using Blynk)
Now it's working! The Blynk pin buttons works as a switch.