ESP8266 WiFi Serial Transceiver Module User's Manual v1.0.pdf ...

5 downloads 147 Views 1MB Size Report
There was a problem previewing this document. Retrying... Download ... ESP8266 WiFi Serial Transceiver Module User's Man
“Your Robotic Solution”

www.mybotic.com.my

ESP8266 Wi-Fi Serial Transceiver Module

User’s Manual V1.0

1|Page

Contents 1.

Introduction ............................................................................................................................. 3

2.

Pin Definition ........................................................................................................................... 4

3.

Sample Hardware Installation ................................................................................................. 5

4.

Procedure and Result .............................................................................................................. 6

5.

Warranty ................................................................................................................................ 13

2|Page

1. Introduction The ESP8266 Wi-Fi Serial Transceiver Module is a self-contained system-on-a-chip (SOC) with integrated TCP/IP protocol stack that can give any microcontroller accessing to the Wi-Fi network. It is capable of offloading all Wi-Fi networking functions from another application processor. This module can even be reprogrammed to act as a standalone (STA) Wi-Fi connected device just by adding the power supply to it. It needs to communicate via serial connection at 3.3V VCC. Voltage level conversion is needed for the power supply that is greater than 3.3V. This module consists of two indicator LEDs on the board, which are one is for the power LED (RED), another one is for the status LED (BLUE).

Specification:      

Input voltage : 3.3V PCB antenna Built-in TCP/IP Protocol stack Supports WPA/WPA2 security mode Wi-Fi Direct (P2P), AP (Access Point), STA (standalone) and AP+STA modes Simple AT commands to join router, run TCP client and TCP server

3|Page

2. Pin Definition GND GPI02 UTXD CHPD RST

VCC GPIO0 URXD Power (Red LED)

Status (Blue LED)

Pin

Description

Function

VCC

+3.3V

Connect to +3.3V. (better use a standalone, and share ground with UART port)

GND

Ground

Connect to Ground.

UART interface

Serial pins used to transmit and receive data to/from the ESP8266 module and the microcontroller.

CH_PD

Chip Power-down

Connect to +3.3V. (otherwise the module is powered down and does not respond)

RST

Reset

Reset pin for the ESP8266.

UTXD (Transmitter) URXD (Receiver)

Can be left unconnected or used as switch to either Working Mode or Flash Mode.

GPIO0 GPIOs Interface GPIO2

4|Page

Can be left unconnected or used for other general input/output purposes.

3. Sample Hardware Installation Diagram below shows the hardware connection between ESP8266 Wi-Fi Serial Transceiver Module and USB to UART Converter. As this module requires 3.3V to be powered up, so regulator LM1117 is suggested when the 5V or above power is used for power on the module. *Note: Over voltage may damage the ESP8266 Wi-Fi Serial Transceiver Module.        

VCC  Output Regulator LM1117 (3.3V) GND  Arduino GND URXD  FTDI Pin TX UTXD  FTDI Pin RX GPI0  Slide Button (SPST) GPIO2  LED Pin Anode CH_PD  Output Regulator LM1117 RST  Push Button USB to UART Converter

To obtain the result, please get the sample source code and refer below procedure which will show how to burn the source code into the ESP8266 Wi-Fi Serial Transceiver Module by using the USB to UART Converter (FTDI232 device). 5|Page

4. Procedure and Result Below parts show the step by step procedures for getting the result.

Part I : Installing Generic ESP8266 Module To program ESP8266 Module, the Arduino IDE with version 1.6.4 or higher is required. You may get it here. After getting the Arduino IDE, please follow this installation guide on how to program the ESP8266 Module.

Part II : Getting start with the ESP8266 Module The example is done by controlling the LED (ON and OFF) by using a Web page. After the Generic ESP8266 Module is installed, open the sample source code, change the SSID and password to a preferred own network SSID and password. Picture below shows the example of the SSID name and password using the MYBOTIC router.

6|Page

Then, power on the ESP8266 module. You may observe:  

Red LED on ESP8266 module should be turned ON indicate that the module is ON. Blue LED on ESP8266 module will blink for around 2 times after booting on.

Before uploading the sample source code, the slide switch is sliding to left to connect the GPIO0 pin to GND. By doing this, the ESP8266 module is in Flash Mode which allows to be programmed. The GPIO2 pin is left unconnected from the anode pin of the output LED.

7|Page

Next, toggle the push button to reset the ESP8266 module. Then, hit the upload button to upload the sample source code. During the uploading process, there will be several dots appearing at the bottom part of the Arduino software (as in the picture below). The dots will stop until the uploading process is done.

Part III : Controlling the LED using the Webpage After done the uploading, slide the switch to right to unconnect the GPIO0 pin with GND. By doing this, the ESP8266 module is in Working Mode.

8|Page

Then, open the Serial Monitor as in picture below.

After that, set the baudrate as same as in the sample source code. In this example, the baudrate is set to 115200. Then, toggle the push button. The below info will display on Serial Monitor (refer to the picture below).

Copy the URL in the Serial Monitor, and locate it on internet explorer, for examples Google Chrome, Explorer, etc. And then press “Enter” on keyboard. In this example, the URL is https://192.168.1.3/. 9|Page

After this, you will see the webpage as below.

The GPIO2 pin now can be connected with the anode pin of the LED.

10 | P a g e

To turn on the LED, just click on the ON on webpage. The URL will changing to 192.168.1.3/LED=ON. The status of the LED will be appeared in the Serial Monitor (LED=ON). The LED now is ON.

11 | P a g e

To turn off the LED, just click on the OFF on webpage. The URL will changing to 192.168.1.3/LED=OFF. The status of the LED will be appeared in the Serial Monitor (LED=OFF). The LED now is OFF.

12 | P a g e

5. Warranty    

Product warranty is valid for 1 month. Warranty only applies to manufacturing defect. Damaged caused by misuse is not covered under warranty. Warranty does not cover shipping cost for both ways.

Prepared by Mybotic 47, Jalan Universiti 1, Taman Universiti, 86400, Parit Raja, Johor Tel: +6016-7170703 / +6018-9510703 URL : www.mybotic.com.my Email : [email protected] [email protected] 13 | P a g e