esp8266 based serial wifi shield for arduino user
DESCRIPTION
arduinoTRANSCRIPT
1. Introduction2. TechnicalSpecifications3. Dimensions4. InterfaceDefinitionandLEDDefinition5. QuickStart6. ConfigurationIntroduction7. SellLinkandTechnicalServices
TableofContents
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
2
ESP8266-BasedSerialWiFiShieldforArduinoisdesignedanddevelopedbyShenzhenDoctorsofIntelligence&Technology(SZDOIT).Theshieldisdesignedbasedonesp8266byEspressifSystems,pin-compatiblewithArduinoUNO/Mega2560DevBorad.
Theserialwifishieldhasthefollowingfeatures:
1、WiFimoduleisindustrial-gradechipsESP8266,whichisESP-12Ewithmetalshield,stronganti-interferenceability;
2,Shieldispin-compatiblewithArduinoUno,Mega2560andothercontrolboard.Avoltageconverterchipisusedtodealwith3.3V(Esp8266)and5V(Arduino);
3,DualDIPswitchesisusedforserialportssothatthismoduleshieldcanbeusedaloneasanArduinoUnoexpansionboard,andalsobeusedasESP8266expansionboard;
4,SerialdataistransportedtoWiFidevicetransparently,andviceversa.Arduinoprogramdoesnotneedanyconfiguration;
5,WebServerisdevelopedtoconfigureWiFiparametersandserialportparameters;
6,ThemoduleshieldcanbeusedasanindependentESP8266developmentboard.forinstance,downloadingtheofficialATcommandsfirmware,NodeMCUopensourcefirmwarecanbeused;
7,Themoduleshieldalsocanbeusedasstand-aloneexpansionboardforArduinoUno.
FormorereferencesaboutDoitserialWiFimoduleexpansionboard,driverboardinformation,pleasereferto:http://www.doit.amorhttp://www.smartarduino.com.
Introduction
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
3Introduction
802.11b/g/nwirelessstandards;STA/APmodessupport;TCP/IPprotocolstack,Onesocket;SupportsstandardTCP/UDPServerandClient;Supportsserialportbaudrateconfiguration:1200/2400/4800/9600/19200/38400/57600/74800/115200bps;Supportsserialdatabits:5/6/7/8bits;Supportsserialparity:none;Supportsserialstopbits:1/2bit;Pin-compatiblewithArduinoUNO,Mega;ArduinoPinout2/3/4/5/6/7/8/9/10/11/12/13;ESP8266GPIOPinout0/2/4/5/9/10/12/13/14/15/16/ADC/EN/*UARTTX/UARTRX;KEYbutton:modesconfiguration;Dual-PortsDIPswitches:switchingArduinoandESP8266;WiFioperationcurrent:continuoustransmissionoperation:≈70mA(200mAMAX),idlemode:<200uA;SerialWiFitransmissionrate:110-460800bps;Temperature:-40℃~+125℃;Humidity:10%-90%non-condensing;Weight:about20g(0.7oz);
TechnicalSpecifications
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
4TechnicalSpecifications
]
Dimensions
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
5Dimensions
ThisserialWiFimoduleboardprovidesinterfaceasshowninPCBview.Andeachpinfunctionsaresilk-printedincircuitboard,asfollows:
ESP8266-BasedserialWiFiShieldhastwoLEDs.RedcolorLEDisdonatedtopowersupply.BlueLEDisamulti-functionalLED,anditsfunctionisdescribedasfollows:
InterfaceDefinition
LEDdefinition
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
6InterfaceDefinitionandLEDDefinition
ThissectionusestwoexamplestoquicklyconfigureESP8266-BasedserialWiFishield,soastoachieveSerialWiFitransparentcommunication.
ForserialWiFishield,thefactorydefaultworkingmodeisconfigurationmode.Transparentcommunicationconfigurationshouldbedonefirstly.
Attention:iftheshiledhasbeenconfiguredtooperateinotherworkingmode,themoduleshieldcanenterconfigurationmodethroughthefollowingways.OneisthatpressKEYbuttonformorethan1second.Theotheroneisthatsend“!@!”totheserialWiFishieldthroughserialport.
Step1:PowertheserialWiFishield,andfindtheWiFisignal.TheSSIDis"DoitWiFi_Config".ThePasswordis"12345678."
Step2:Openthebrowser,andenterWiFiIPaddress:192.168.4.1.Theconfigurationpageisshownasbelow.
Preparationwork:configurationWiFiworkingmode
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
7QuickStart
Built-inWebServerintheserialWiFishieldsupportsserialparametersconfiguration,networkparameterconfiguration.AndItalsosupportsautomaticormanualAPscan.
Step3:press“submit”.
Aftersubmission,theserialwifishieldwillautomaticallyrebootintoAPmode,andconfigureas:
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
8QuickStart
Theserialportparametersto9600,n,8,1,
WiFiworkingmode:AP;
SSID:"DoitWiFi_Ser2Net";
Password:"12345678."
TCPServer,andportis9000.
Thisisalsothefactorydefaultconfiguration.Youalsocanpress"FactorDefault"toachievetheconfigurationaspreviouslydescribed.
Step1:plugthesrialWiFishieldintotheArduinoUnoboard.Thedual-portsDIPswitchisswitchedto“OFF”positionastodisconnecttheserialportconnectionwithinESP8266andArduino.
(Attention:whendownloadingarduinoprogramwithIDE,arduinoserialportshouldNOTbeused.ArduinoUnoonlyhasoneserialportfordownloadingprogram,forthereasonthatthedual-portswitchesshouldswitchto“OFF”positiontodisconnecttheserialportofESP8266.)
Step2:programarduinoUno,andtheexamplecodeisshownasbelow:
1.voidsetup()
2.{
3.Serial.begin(9600);
4.}
5.voidloop()
6.{
7.delay(1000);
8.Serial.println("helloESP8266WiFi");//outputtheserialdata
9.}
Step3:Switchthedual-portswitchto“ON”position.Now,theESP8266isconnectedwithArduinoUno.
Step4:FindtheWiFisignal“DoitWiFi_Ser2Net”withcomputerormobilephone.TheWiFipasswordis“12345678”.
Example1:ArduinotoWiFicommunication
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
9QuickStart
Step5:runtheTCP/UDPDebuggingsoftware.(SoftwareDownloadLink:http://bbs.doit.am/forum.php?mod=viewthread&tid=174&page=1&extra=#pid206)
EstablishaTCPclientconnection,andtheDestinationIPaddressis192.168.4.1,Portnumberis9000.Localportisconfiguredto“Auto”.
Onceconnectionisbuildsuccessfully,thesoftwareshowsthetransporteddatafromserialWiFishieldeveryonesecond.Therefore,Arduinocansendtheserialdatatothenetwork.
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
10QuickStart
Here,DoitfreepublicWiFinetworkTCPtoolisusedtoaccomplishtheexample.
Step1:GetatemporaryIPaddressandportfromtheTCPserver.Here,theobtainedIPaddressis:“115.29.109.104”,and
theportnumberis“6533”.
(Note:IPaddressandportnumbercanbeobtainedinhttp://tcp.doit.am)
Step2:entertheconfigurationmode.AfterpoweringtheserialWiFishield,pressKEYbuttonformorethanonesecond.ConnecttheSSIDnamed“DoitWiFi_Config”withthepassward“12345678”.Then,enter"192.168.4.1"inthebrowser.
Step3:ConfiguretheserialWiFishieldtonodemode(STAmode),soastoconnecttoawirelessrouter,asbelow:
“WiFiMode”:STA;
Hereawirelessrouternamed“MIFI_A6_cd1c”isusedandthepasswordis“mifi66666666”.
WebServerwillautomaticallyrefreshthecurrentESP8266searchedAPlistwhenloadingthepage.Whenselecting"STA","Refresh"buttonisenabledtorefreshtheWiFiscanresults.
example2:communicatewithremoteserver
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
11QuickStart
Step4:Configurenetworkparameters.
SocketType:“Client”。
TransportType:“TCP”。
RemoteIP:“115.28.109.104”
RemotePort:“6533”。
Step5:press“Submit”.
Step6:runtheTCP/UDPdebugsoftware.EstablishaTCPClientconnection.ThedestinationIPaddressis115.29.109.104,Portnumberis6533.Localportisconfiguredto“Auto”.
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
12QuickStart
Step7:thesoftwareshowsthetransporteddatafromserialWiFishieldthroughthewirelessrouter.Therefore,ArduinocansendtheserialdatatothenetworkinSTAmode.
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
13QuickStart
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
14QuickStart
WorkprocessoftheSerialWiFishieldisshownasbelow:
TheworkingmodeofserialWiFishieldincludesAPandSTAmodes.WhenAPmodeischoseninWebServer,“refresh”and“APList”buttonswillbeabandoned.However,SSIDandPasswordmaybeset.
IfSTAmodeischosen,“refresh”and“APList”buttonswillbeenabled.“Refresh”maybeusedtoscanotherWiFisignal,andthescannedresultwillbeshowninthe“APList”.
WorkingModeSwitch
SerialParametersConfiguration
WiFiModeConfiguration
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
15ConfigurationIntroduction
WhentheserialWiFishieldisintheSTAmode,itwillalwaystrytoconnectthespecifiedwirelessroutertilltheconnectionisbuiltorconfigurationmodeisset.
Networksettingscanbesetastheserver(Server)ortheclient(Client)mode.WiFiexpansionmoduleonlysupportsaSocketatthesametime.
When“Server”modeisset,"RemoteIP"isabandoned.Andthelisteningportnumbershouldbefilledin"LocalPort".
When“Client”modeisset,"RemoteIP"isenabled.“RemoteIP”and“RemotePort”shouldbefilledin.
TheSerialWiFishieldsupportsTCPandUDPwirelessprotocol.
InWebServer,“FactoryDefault”isusedtoresettodefaultsettings.(IfserialWiFishieldisinSTAmode,pleasepressKEYbuttontoenterconfigurationmode.).Thedefaultsettingisasbelow:
NetworkSettings
FactoryDefault
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
16ConfigurationIntroduction
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
17ConfigurationIntroduction
Selllink:http://www.smartarduino.com/esp8266-wifi-web-sever-shield-for-arduino_p94660.html
Ifyouwanttogetthelatestinformationonthisproductorotherproductinformation,youcanvisitourwebsite:http://www.doit.am.
TechnicalSupport:[email protected].
SellLinkandTechnicalServices
ESP8266-BasedSerialWiFiShieldforArduino----UserManual
18SellLinkandTechnicalServices