Microduino-WIFI(ESP)

来自Microduino Wikipedia
跳转至: 导航搜索
Language English
Microduino-ESP

Microduino-WiFi (ESP) module is a WiFi communication module, through the serial port Transmission data to Core / Core + / CoreUSB core module for communication, you can connect other WiFi devices.

Features

  • Serial Communications;
  • It can be connected to the Internet;
  • Small, cheap, stack, open source;

Specifications

  • Forms of communication: Serial passthrough, the default port for the D2 (RX), D3 (TX);
  • Power supply:+3.3VDC 50mA;
  • Status indicator;

Common AT commands

  • All AT commands are end with "\ r \ n". When the AT command debug please pay

attention to select "\ r \ n".

  • Common AT commands:
    • AT+RST Restart module
    • AT+GMR Check the version information
    • AT+CWMODE=3 station and access point
      • 1 Station Mode
      • 2 AP Mode
      • 3 AP and Station
    • AT+CWLAP wifi ssid List
    • AT+CWSMARTSTART=0 enable smart configer
      • 0: use 安信可 AI-LINK technology
      • 1: use ESP-TOUCH technology
      • 2: use AIR-KISS
    • AT+CWSMARTSTOP stop smart configer
    • AT+CWJAP="<access_point_name>","<password>" join a WiFi
    • AT+CIFSR show wifi infomation
    • AT+CIPSTATUS Get the connection status
    • AT+CIPSTART=4,"TCP","baidu.com",80 Establishes a TCP or UDP connection, port.
    • AT+CIPCLOSE Close connection TCP or UDP (single-link)
    • AT+CIPCLOSE=5 Close multiple connections
    • AT+CIPMUX=1 Start multiple connections

Documents

Support AT command configuration control:文件:ESP8266 WiFi Module Quick Start Guide v 1.0.4.pdf

Development

  • Test program

Use Microduino IDE-->example-->_03_microduino_WiFi_ESP8266-->HTTPGET program test is OK.

ESP8266-exampleCode.jpg

We have set SSID (wifi name) and pass (password) places in the code, change your wifi password

  • Download program
    • Stack together with Microduino-WiFi(ESP), Microduino-Core+ and Microduino-USBttl,

insert USB line into the Microduino-USBttl, other side of USB line insert into computer, start Arduino IDE, The above program is copied to the IDE, the tool (tools) -> Board (Board) is selected Microduino Core, and the tools (tools) -> Serial Port (Serial) select the corresponding serial number. After clicking the top left corner IDE √ button to compile the program, after the end of the compilation click -> button is programmed to the board;

  • Open the serial monitor, set:“\r\n”、“115200 baud”.
  • First of prompts is to show connect WiFi successful information
  • If you see the following description you already visited Baidu Home website.
Serial


  • Pin Description


Application

Related Applications: WiFi Weather Stations

Firmware programming instructions

1:welds point marked "down", or use wire to connect GND and GPIO0(written on the back of the board of the vias 0)

2:Recommend use USBTTL transfer serial directly, you need connect four wires to transfer serail port.

WIFI(ESP) USBTTL
D2 D1(TX1)
D3 D0(RX0)
3V3 3V3
GND GND

If you use the core module programming firmware, please do the serial converter with Core+ module, can not use Core, because WIFI (ESP) serial port is (D2, D3) pin 115200 baud rate, the corresponding Core is soft serial port, baud rate less than 115200. The USBTTL, Core+ stack, download the program to the Core+ module.

#define my_Serial Serial1  //Core+ or CoreUSB

void setup() { 
  Serial.begin(115200); 
  my_Serial.begin(115200);
} 

void loop() { 
  if (Serial.available()) { 
    char c = Serial.read(); 
    my_Serial.write(c); 
  } if (my_Serial.available()) { 
    char c = my_Serial.read(); 
    Serial.write(c); 
  }
}

soft serial port to hard seral port:文件:SoftToHard-V2.rar

3:Connect USB, open burn firmware tool, set firmware address update firmware.

Firmware tool software:文件:ESP8266Flasher.rar

Firmware file:文件:MicroduinoESP8266.rar

Connect USB to PC, your firmware tool software will show below:

setup as below:

v0.9.5.2 AT Firmware-------------0x00000

Find right firmware file in floder and fill right address

return operation tab, and click burn


4:Open debugging tools, test AT command make sure whether the firmware burn successful

5:Finally remove the weld on "down" or disconnect the wire which connect GND and GPIO0(written on the

Questions

Gallery

文件:Microduino-WiFi(ESP)-t.png
Microduino-WiFi(ESP) Front
文件:Microduino-WiFi(ESP)-b.png
Microduino-WiFi(ESP) Back