Microduino-Module WIFI,ESP

From Microduino Wiki
Revision as of 04:56, 15 July 2016 by Fengfeng (talk) (Application)
Jump to: navigation, search
Language: English  • 中文
Microduino-ESP

Microduino-WIFI(ESP) is a WIFI communication module, which can communicate with Core/Core+/CoreUSB through the serial port or connect with other WIFI devices and is a complete and system-in-itself wifi network resolution.

Features

  • Serial communication.
  • Internet connection available.
  • Small, cheap, stackable and open.
  • High on-chip integration.
  • Have a strong on-chip processing and storage capabilities.
  • Reduce the occupancy of system resources in operation.
  • Available for integrating sensosr and other application specific devices through the GPIO port.

Specification

  • Communication method: Serial passthrough with the default serial port D2(RX), D3(TX).
  • Power supply: +3.3VDC 50mA;
  • Status indicator.
  • SDIO 2.0, SPI and UART interface
  • 32-pin QFN sealed
  • With RF switch, balun, LNA, 24 PA dBm, DCXO and power management unit (PMU) integrated.
  • With RISC processor, on-chip memory and external memory interface integrated.
  • With MAC/ baseband processor integrated.
  • High quality service management
  • With I2S interface required by high fidelity audio applications.
  • All internal power supply contains on-chip low dropout linear regulator.
  • Proprietary spurious free clock generation architecture.
  • With WEP, TKIP, AES, and WAPI engines integrated

Common AT Instruction

  • All AT instructions are ended with "\r\n ". When debugging the AT commands, please pay attention to the choice of “\r\n”.
  • Common AT instruction:
    • AT+RST Restart the module.
    • AT+GMR Check the version information.
    • AT+CWMODE=3 Station and access point
      • 1 Station Mode
      • 2 AP Mode
      • 3 AP and the Station
    • AT+CWLAP WIFI SSID List
    • AT+CWSMARTSTART=0 Start smart connection
      • 0: Adopt AL-LINK technology.
      • 1: Adopt ESP-TOUCH
      • 2: Adopt AIR-KISS
    • AT+CWSMARTSTOP Stop the smart connection.
    • AT+CWJAP="<access_point_name>","<password>" Join in a certain WIFI.
    • AT+CIFSR Display the information of wifi.
    • AT+CIPSTATUS Acquire the connection status.
    • AT+CIPSTART=4,"TCP","baidu.com",80 Establish TCP/UDP connection and ports.
    • AT+CIPCLOSE Close the connection of TCP/UDP(single connection).
    • AT+CIPCLOSE=5 Close multiple connections.
    • AT+CIPMUX=1 Start multiple connections.

Documents

Development

  • Test program

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

ESP8266-exampleCode.jpg

You can change the WIFI password where you set the SSID (WIFI name) and the password in the code.

1ESP8266-exampl1eCode.jpg
  • 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
    • GPIO0/15/2/RX/TX available.
    • "0" is the key, "2" and "15" are the dialing switches.


Microduino-WiFi(ESP)


Application

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:File:SoftToHard-V2.rar

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

Firmware tool software:File:ESP8266Flasher.rar

Firmware file:File:MicroduinoESP8266.rar

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

Microuino-WiFi(ESP)burnLoarderStep1.png

setup as below:

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

Find the right firmware file in the floder and fill the right address

Microuino-WiFi(ESP)burnLoarderStep2V1.png

Hold down the key before burning the firmware and keep it still in the process.

1Microuino-WiFi(ESP)burnLoarderStep1-1.png

Return to the operation tab, and click burn

Microuino-WiFi(ESP)burnLoarderStep2-1.png
Microuino-WiFi(ESP)burnLoarderStep3.jpg

Loose the key after thr burning. 4:Open debugging tools, test AT command make sure whether the firmware is burnt successfully.

Questions

Gallery

18266back.jpg
18266front.jpg