ESP8266-01

Post date: Sep 26, 2019 3:5:16 AM

bought a couple of 8266-01 board at https://www.tokopedia.com/snapshot_product?order_id=365839305&dtl_id=573852604 for 27000IDR or 1.9 usd

To use them as wifi interface for arduino project or as microcontroller it self with it's two gpio.

Pin out:

Description:

The ESP8266-01 is a low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller capability produced by manufacturer espressif

the esp-01 module, made by a third-party manufacturer Ai-Thinker.

(source wikipedia esp82266)

Communicating with the board by using AT command:

With USB to ttl Adapter:

The board should be powered with 3.6V and the input pin are 3.3v compatible. For the output any arduino board can handle 3.3v as high level.

One of the way to communicate with the board is to use AT command via a serial port either from a usb serial TTL converter

mine is 3.3V and 5V.

Connection to the board is straight forward (switch your ttl/usb adapter to 3.3V)

RX To TX and TX to RX

Vcc and CH_En to +3.3V

Gnd to GND

I use the serial monitor of the arduino IDE as terminal to send and receive AT command.

With arduino board as serial monitor:

With the help of Softwareserial library for arduino i can connect RX and TX to whatever digital pin

TX=8;

RX=9 thru a voltage divider of 2.2k and 3.3k.

the Vcc and CH_en pin must be connected on arduino 3.3V, note that the arduino +3.3V is just limit to provide enough power, for longer usage i rather choose an external 3.3 v vcc.

The gnd to the gnd

The rst pin to a jumper wire to be able to short to ground for reset.

The Gpio0-flash pin to a wire to be able to enter in firmware flash mode.

Download the following code to the arduino:

Run the IDE serial monitor and set up 115200 bauds and both RL LN at the end of line.

Now everything typed in the serial monitor and end with :Enter key" will be send to the Esp8266.

AT Command:

The following AT commad are working with my module.

    • AT+RST to reset esp

    • AT+GMR” firmware version

    • AT+RST reset

    • AT+CWLAP detect accesspoint

    • AT+CWJAP="SSID","PASSWORD" connects the ESP8266 to the specified SSID

    • AT+CWQAP

    • AT+CIFSR display IP address

    • AT+CWMODE=2 (1 = Station mode (client)2 = AP mode (host)3 = AP + Station mode )

    • AT+UART_DEF=9600,8,1,0,0

    • AT+CIPCLOSE

    • AT+CIPSTART="TCP","server",port

Find below attached pdf file (4a-esp8266)at_instruction_set_en.pdf)

AT command web reference: ESP8266 AT Command