Loading... Please wait...

About BUILDCIRCUIT

BuildCircuit is an online store for selling electronics kits and components related to Arduino, Raspberry Pi, etc. We operate from Sydney, Australia.

We design and sell basic electronic kits and Arduino modules for all electronics enthusiasts.

hello@buildcircuit.com.au

Blog

Three important lessons for beginners using ESP8266 WIFI module

We are selling all the components required to get started with ESP8266 WIFI module (CLICK HERE)

This tutorial is for absolute beginners who have never used the ESP8266 WIFI module before. Before you start, you need to know these two important things: 

1. ESP8266 WIFI module is not only a breakout board or a module for Arduino but it also is a programmable microcontroller that can be programmed using the Arduino IDE and you don't essentially need an Arduino to work with it. It works both with and without Arduino.

2. You can use the ESP8266 module in two modes: AT command mode and Arduino IDE programming mode. In AT command mode, you can use any serial terminal to program the module and in Arduino IDE programming mode, you can upload a sketch and program the module.

Watch this video to get general introduction of ESP8266 WIFI module:

These are the required components for basic experiments using ESP8266. You can buy all the components at our store.

1. ESP8266 + 4x2 header

2. FTDI FT232RL basic breakout board + USB cable

3. 10K

4. Reset tactile switches.

5. Breaboard

6. Wires

7. 5mm LED

OR buy an ESP8266 Test Board

Lesson 1: Using the AT command mode

Make the following circuit on a breadboard. You would need anFTDI basic breakout board for this circuit. You can buy the module here.

After making the circuit, connect the USB cable to your computer and open the Arduino programming software (the Arduino IDE).

WARNING: NEVER USE 5V. Use 3.3V for the module.

We are now selling ESP8266 Test Board that uses the same circuit described on this tutorial. Check out the product.

Then, type AT command on the serial monitor terminal of your Arduino IDE, you will receive an OK, then type AT+GMR, you will receive firmware details of the module. The texts that you typed are AT commands.

Here's a list of AT commands, you can type and see what you get in return.

Make a simple web server using AT Commands:

Watch the following video to make a simple web server using AT commands.

Lesson 2: How to program the ESP8266 module using Arduino IDE.

It is possible to program the ESP8266 module using the Arduino IDE. You can use the same circuit you previously built on the breadboard.

Check this page and follow the instructions.

https://github.com/esp8266/Arduino

The following video tells you how to set up Arduino core for ESP8266 WIFI chip:

After setting up the Arduino environment, you need to learn how to program the module.

For that, watch this video. The video actually uses the same circuit that is suggested on this page:

WARNING: NEVER USE 5V. Use 3.3V for the module.

While uploading the sketch, push SW1-button down, click UPLOAD and while keeping SW1 down, push SW2 and then release SW2. After releasing SW2 you can release the SW1 as well.

If you are still unclear, follow these steps:

- Go to Tools -> Board-> Generic ESP8266 Module

- Files-> Examples->ESP8266->Blink

You can select any other sketch also.

Push SW1-button down, click UPLOAD and while keeping SW1 down, push SW2 and then release SW2. After releasing SW2 you can release the SW1 as well.

LED Blink Project

Connect an LED between GPIO2 and GND and upload this sketch. The LED will blink along with the Blue LED on the ESP8266 module.

Watch the following video that uses ESP8266 test board for programming.

Lesson 3: Updating ESP8266 firmware.

For updating the firmware, you can use the same schematic given on this tutorial.

Read this excellent tutorial and download the ESP8266 Flash Downloader program and install on your computer. The links for the firmware and the downloader program are given on the tutorial.

While downloading, push SW1-button down, click Download and while keeping SW1 down, push SW2 and then release SW2. After releasing SW2 you still have to keep SW1 down until the downloading process completes.

After the download process completes, you will get "Failed to leave Flash Mode". That's OK, the downloading will be completed and you can now release the SW1 switch. You can again use the module in AT command mode.

Watch the following video that use ESP8266 test board for flashing the firmware.

Useful links:

1. RandomNerdTutorials- This website helps you get started with ESP8266 module. There are several tutorials.

2. ESPLORER

3. ESP8266 firmware update tutorial

4. Excellent youtube channel for ESP8266

5. AllaboutEEE

6. ESP8266.COM- Useful forum

7. Get updates about ESP8266

NOTE: The author is NOT an expert of ESP8266, so, he won't be able to provide any support for customers regarding the ESP8266 module.

We are selling all the components required to get started with ESP8266 WIFI module (CLICK HERE)

esp8266-accessories


Back to Top