WIFI Wireless Transceiver Module Send Receive LWIP AP+STA A (ESP8266 Serial )
Integrated WEP, TKIP, AES, and WAPI engines.
The ESP8266 is a highly integrated chip designed for the needs of a new connected world. It offers a complete and self-contained Wi-Fi networking solution, allowing it to either host the application or to offload all Wi-Fi networking functions from another application processor.
The ESP8266 has powerful on-board processing and storage capabilities that allow it to be integrated with the sensors and other application specific devices through its GPIOs with minimal development up-front and minimal loading during runtime. Its high degree of on-chip integration allows for minimal external circuitry, and the entire solution, including front-end module, is designed to occupy minimal PCB area.
Features
Solutions
Specifications
Help is some info to help your development.
ESP8266 Serial WIFI Module Communite Forum >> Detail about ESP8266
Package Included:
• ESP8266 Serial WIFI Wireless Transceiver Module Send Receive LWIP AP+STA
Here is some Information on the device
Software:
Software development kit for the device is avalible here ESP8266 IoT
Warnings: This module requires a 3.3 volt supply for VCC, and 3.3V logic.
It is not 5V tolerant. Connect RX or TX on 5V Arduino will destroy this module.
You must use a logic level converter, or a 3.3V Arduino
Arduino integration
Now your Arduino can get on WiFI without braking the bank. Use this module for your next Interet of Things project, home automation, Or remote sensor project.
This module adats the ESP8226 IC for use over a serial connection using simple AT commands.
No SPI interface or Know-How is required.
Some info on what you can do.
Join Router
TCP Client
TCP Server
Here is some Example code for your Arduino.
You will need to add change the SSID and PASS verables in the code below for it to work.
#include <SoftwareSerial.h> #define SSID "xxxxxxxx" #define PASS "xxxxxxxx" #define DST_IP "220.181.111.85" //baidu.com SoftwareSerial dbgSerial(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(57600); Serial.setTimeout(5000); dbgSerial.begin(9600); //can't be faster than 19200 for softserial dbgSerial.println("ESP8266 Demo"); //test if the module is ready Serial.println("AT+RST"); delay(1000); if(Serial.find("ready")) { dbgSerial.println("Module is ready"); } else { dbgSerial.println("Module have no response."); while(1); } delay(1000); //connect to the wifi boolean connected=false; for(int i=0;i<5;i++) { if(connectWiFi()) { connected = true; break; } } if (!connected){while(1);} delay(5000); //print the ip addr /*Serial.println("AT+CIFSR"); dbgSerial.println("ip address:"); while (Serial.available()) dbgSerial.write(Serial.read());*/ //set the single connection mode Serial.println("AT+CIPMUX=0"); } void loop() { String cmd = "AT+CIPSTART=\"TCP\",\""; cmd += DST_IP; cmd += "\",80"; Serial.println(cmd); dbgSerial.println(cmd); if(Serial.find("Error")) return; cmd = "GET / HTTP/1.0\r\n\r\n"; Serial.print("AT+CIPSEND="); Serial.println(cmd.length()); if(Serial.find(">")) { dbgSerial.print(">"); }else { Serial.println("AT+CIPCLOSE"); dbgSerial.println("connect timeout"); delay(1000); return; } Serial.print(cmd); delay(2000); //Serial.find("+IPD"); while (Serial.available()) { char c = Serial.read(); dbgSerial.write(c); if(c=='\r') dbgSerial.print('\n'); } dbgSerial.println("===="); delay(1000); } boolean connectWiFi() { Serial.println("AT+CWMODE=1"); String cmd="AT+CWJAP=\""; cmd+=SSID; cmd+="\",\""; cmd+=PASS; cmd+="\""; dbgSerial.println(cmd); Serial.println(cmd); delay(2000); if(Serial.find("OK")) { dbgSerial.println("OK, Connected to WiFi."); return true; }else { dbgSerial.println("Can not connect to the WiFi."); return false; } } |
The 3.3V supply on the Arduino Uno has inadequate current capabilit to power this module.
You must provide a separate, higher 3.3V supply(about 300mA or better)
The ESP8225 module is very new on the market and support and documentation for it is currently very limited.