Intro: Wemos ESP8266 Getting Started Guide With Arduino IDE
This instructable will take you through the basic set up of the WEMOS ESP8266 Board and the Arduino IDE.
Step 1: About the Wemos & What You Need
- Wemos D1 Mini:
- Microcontroller: ESP-8266EX
- Operating Voltage: 3.3V (chip) 5v (board)
- Digital I/O Pins: 11
- Analog Input Pins: 1(Max input: 3.2V)
- Microcontroller: ESP-8266EX
- Mirco USB for power and programming
- CH340G Serial to USB chip
- The Wemos is better than a normal esp board because you can directly program it.
- It can be programmed using little effort, and the Arduino IDE.
- There is lots of support for the ESP and the Arduino.
- The ESP8266 low-cost Wi-Fi chip with full TCP/IP stack
What you need:
- Wemos Kit (everything you will need and PRIME!) - http://amzn.to/2p0rRFb
- Wemos D1 Mini - http://amzn.to/2p0o7DR
- Micro USB Cable 3' - http://amzn.to/2p0m42q
- Micro USB Cable 6' - http://amzn.to/2ovp19F
- Wemos Relay Shield - http://amzn.to/2oqPovN
- Wemos Temp & Humidity Shield (DHT22) - http://amzn.to/2oaCQaa
- Wemos Temp & Humidity Shield (DHT11) - http://amzn.to/2p0mwOa
- Breadboard 3 pack, worth getting more than 1 you can keep projects on one while you start another - http://amzn.to/2nIpHtM
- Soldering Iron Kit, cheap and comes with everything you need to get started including solder! - http://amzn.to/2ovgVxL
- Really Nice Soldering Iron - http://amzn.to/2o9ko2o
- Solder - http://amzn.to/2o97zoP
- Desoldering (solder sucker and wick) - http://amzn.to/2nIg7XK
- Cheap Helping hands - http://amzn.to/2px3wTE
- Really Nice Helping hands - http://amzn.to/2nIgy4x
Step 2: Soldering the Headers
- The WEMOS board comes with 3 different types of headers.
- Female/Male (long female)
- I use a breadboard to solder these on. It helps keep everything aligned. I find it better that using the helping hands. You do want to be careful because you may melt the plastic of the breadboard if you heat up the pins to much.
- For the purpose of my project and future projects I am going to use the Female headers. These will allow me to install shields. The WEMOS board has a number of shields and I will be using the Temp and Relay shield in a future build.
- When Soldering you want to make sure you don't use too much solder, it will result in a ball of solder on your pin. If you use to little solder or not enough heat you can risk no connecting them fully. Take a look at my last picture to see what good solder joint looks like.
Step 3: Download the Arduino IDE
This part is pretty self explanatory and I wont go into how to install a program.
Navigate to the https://www.arduino.cc/ and download the correct IDE for your operating system.
Step 4: Download and Installing the CH340G Drivers (Windows)
The CH340G is a cheap serial to USB programming chip and does not come with native windows or mac drivers. However it has been made very easy to install.
Download and install the drivers through the wemos website: https://www.wemos.cc/product/d1-mini.html
Step 5: Installing the Board on Arduino 1.6X
Version 1.6.4 of the Arduino IDE introduced official support for adding third party boards to the new Board Manager. This addition is great news, because it allows users to quickly add new boards with the click of a button. Previously the addition of new boards required a cumbersome manual installation process, or in certain cases, the download of a completely separate version of the IDE with the new boards added.
- Go to the wemos website: https://www.wemos.cc/product/d1-mini.html
- OR go direct to github: https://github.com/esp8266/Arduino.git
- There you will find these instructions:
- Enter http://arduino.esp8266.com/stable/package_esp8266... into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
- Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
Step 6: Installing the Libraries
- Go to Sketch
- Then Included Libraries
- Then Library Manager
- Search: ESP8266 Microgear
- Install the top one (see image)
Step 7: Getting Ready to Upload
- To to Tools
- Board >
- Select Wemos D1...
- Make sure you have the correct COM port selected.
Step 8: Uploading the Sketch
To get us started I just uploaded the Blink Sketch.
This sketch is designed to blink the LED onboard the ESP8266. It is the prefect sketch to figure out if you have installed and configured everything properly.
The Sketch will open the new window, click the compile button and watch in the debug windows at the bottom.
Once the compile is down you will see that progress bar of the upload, this will be orange. "loading.......50%" something like that. During this you will also notice that the LED on the WEMOS board will start to blink rapidly, almost to fast to even notice.
Once done the loader will show 100%. The board will restart and start blink once every 2 seconds.
Your Done, Subscribe to my Youtube and Instructables Accounts for part 2,3 and 4