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

From Microduino Wiki
Jump to: navigation, search
(Development)
(Firmware programming instructions)
Line 92: Line 92:
 
==Firmware programming instructions==
 
==Firmware programming instructions==
 
1:welds point marked "down", or use wire to connect GND and GPIO0(written on the  
 
1:welds point marked "down", or use wire to connect GND and GPIO0(written on the  
 +
back of the board of the vias 0)
  
back of the board of the vias 0)
 
 
2:Recommend use USBTTL transfer serial  directly, you need connect four wires to  
 
2:Recommend use USBTTL transfer serial  directly, you need connect four wires to  
 
 
transfer serail port.
 
transfer serail port.
 
{| class="wikitable"
 
{| class="wikitable"
Line 110: Line 109:
 
|}
 
|}
 
If you use the core module programming firmware, please do the serial converter with  
 
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  
 
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.
 
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.
 
The USBTTL, Core+ stack, download the program to the Core+ module.
Line 156: Line 153:
  
 
4:Open debugging tools, test AT command make sure whether the firmware burn  
 
4:Open debugging tools, test AT command make sure whether the firmware burn  
 
 
successful
 
successful
  
 
5:Finally remove the weld on "down" or disconnect the wire which connect GND and  
 
5:Finally remove the weld on "down" or disconnect the wire which connect GND and  
 
+
GPIO0(written on the
GPIO0(written on the  
 
  
 
==Questions==
 
==Questions==

Revision as of 03:27, 18 October 2015

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

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
Microduino-WiFi(ESP)


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 right firmware file in floder and fill right address

Microuino-WiFi(ESP)burnLoarderStep2V1.png

return operation tab, and click burn

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


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)-t1.png
Microduino-WiFi(ESP)-b1.png
Microduino-WiFi(ESP) Front
Microduino-WiFi(ESP) Back