Difference between revisions of "Microduino-Module WIFI,ESP"

From Microduino Wiki
Jump to: navigation, search
(Firmware programming instructions)
(Development)
Line 62: Line 62:
  
 
You can change the WIFI password where you set the SSID (WIFI name) and the password in the code.  
 
You can change the WIFI password where you set the SSID (WIFI name) and the password in the code.  
 
+
[[File:1ESP8266-exampl1eCode.jpg|thumb|600px|center]]
 
*Download program
 
*Download program
 
**Stack together with Microduino-WiFi(ESP), Microduino-Core+ and Microduino-USBttl,  
 
**Stack together with Microduino-WiFi(ESP), Microduino-Core+ and Microduino-USBttl,  

Revision as of 03:45, 19 February 2016

Language: English  • 中文
Microduino-ESP

Microduino-WIFI(ESP) is a WIFI communication module, which can communicate with Microduino core modules through the serial port or connect with other WIFI devices.

Features

  • Serial communication.
  • Internet connection available.
  • Small, stackable and economic.

Specification

  • Communication method: Serial passthrough with the default serial port D2(RX), D3(TX).
  • Power supply: +3.3VDC 50mA;
  • Status indicator.

Common AT Instruction

  • All AT instructions are ended with "\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
    • AT+CIPSTATUS Acquire the connection status.
    • AT+CIPSTART=4,"TCP","baidu.com",80 Establish TCP/UDP connection.
    • AT+CIPCLOSE Close the connection of TCP/UDP(single connection).
    • AT+CIPCLOSE=5 Close multiple connections.
    • AT+CIPMUX=1 Start multiple connections.

Documents

Support AT command configuration control:File: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

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.


1Microduino-WiFi(ESP)001


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: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