background image

 

ROBOT   .   HEAD   to   TOE 

Product   User’s   Manual   –   ESPWiFi   Shield   Rev2.0  

 

 

5.0   UART/SERIAL   COMMUNICATION 
 
AT firmware of the ESP8266 WiFi module on ESPWiFi shield allows users to communicate

 

   

 

 

 

   

 

 

 

   

 

with   the   module   using   UART   communication.  
 
Default   settings   are    9600   kbps   baudrate,   8   bit   data,   1   stop   bit   and   no   parity .  
 

 

5.1   Guideline   for   setting   up   TX   and   RX   pin   with   Arduino   Boards 
 
The   following   table   shows   suitable   RX   and   TX   pins   to   be   chosen   for   compatible   Arduino 
boards.  
 

UART 

Arduino   Boards 

RX 

TX 

USB 

USB 

Arduino   Uno/Arduino   Mega/Arduino   Leonardo 

D0 

D1 

Arduino   Uno/Arduino   Mega/Arduino   Leonardo 

D2 

D3 

Arduino   Uno   only 

D8 

D9 

Arduino   Uno/Arduino   Leonardo 

D10 

D11 

Arduino   Uno 

** 

/Arduino   Mega/Arduino   Leonardo 

D12 

D13 

Arduino   Uno 

** 

/Arduino   Mega 

 

*    

This   option   enables   communication   between   ESP8266   module   and   PC   using   suitable 

UART   software   such   as   Arduino   Serial   Monitor,   Hyperterminal,   RealTerm   etc. 
 

** 

   Only   applicable   if   no   SPI   communication   is   used   because   SPI   pinouts   uses   D10­D13 

in   Arduino   Uno.   MicroSD   card   cannot   be   used   as   well   in   this   case. 
 
 

 

 

Created   by   Cytron   Technologies   Sdn.   Bhd.   –   All   Right   Reserved

 

 

Содержание ESPWiFi Shield

Страница 1: ...ROBOT HEAD to TOE Product User s Manual ESPWiFi Shield Rev2 0 ESPWiFi Shield SHIELD ESP WIFI Rev2 0 User s Manual V2 0 April 2016 Created by Cytron Technologies Sdn Bhd All Right Reserved 1...

Страница 2: ...Index 1 Introduction 3 2 Packing List 4 3 Board or Product Layout 5 4 Dimension 7 5 UART Serial Communication 8 6 Hardware Installation 9 7 Getting Started 10 8 Firmware Installation 14 9 Warranty 14...

Страница 3: ...crocontroller to create an even more powerful application together with Arduino boards ESP8266 WiFi shield has stackable side headers which allows more Arduino compatible shields to be stacked on top...

Страница 4: ...PACKING LIST Please check the parts and components according to the packing lists If there are any parts missing please contact us at sales cytron com my immediately 1 1 x ESPWiFi Shield 2 2 x mini j...

Страница 5: ...duino shield can be stacked on top of this stackable header 3 MicroSD card chip select CS Digital Pin 4 is used as chip select for MicroSD card Do not make any other connection to this pin 4 RX Pin Se...

Страница 6: ...module run the installed firmware 9 ESP 3V3 GPIO breakout Pin breakout from ESP8266 GPIO consists of 9 Digital I O pins and 1 Analog Input pin All pins are 3 3V tolerant only 10 Prototyping Area Proto...

Страница 7: ...ROBOT HEAD to TOE Product User s Manual ESPWiFi Shield Rev2 0 4 0 DIMENSION Created by Cytron Technologies Sdn Bhd All Right Reserved 7...

Страница 8: ...Arduino boards UART Arduino Boards RX TX USB USB Arduino Uno Arduino Mega Arduino Leonardo D0 D1 Arduino Uno Arduino Mega Arduino Leonardo D2 D3 Arduino Uno only D8 D9 Arduino Uno Arduino Leonardo D10...

Страница 9: ...eld can be used together with Arduino Uno Figure below shows example hardware connection between Arduino Uno and ESPWiFi Shield it is simply stacking up the shield onto the Arduino main board 1 Set TX...

Страница 10: ...connect RST pin to GND using jumper wire Another alternative upload an empty sketch to Arduino main board before stacking ESPWiFi Shield onto Arduino board 5 Connect Arduino board to PC using USB cab...

Страница 11: ...ld onto compatible Arduino Board For this example Arduino Uno is used 2 Select D2 for RX and D3 for TX pin 3 Make sure the slide switch is switched to RUN mode 4 Download CytronWiFiShield library from...

Страница 12: ...password is abcd const char ssid WiFly const char pass abcd 9 Check the line wifi begin 2 3 1st argument for this function refers to RX of Arduino and 2nd refers to TX If D2 is selected for RX and D3...

Страница 13: ...PWiFi Shield Rev2 0 14 If the webpage returns what have shown in the following figure the program is working For the example here IP address shown in Serial monitor is 192 168 1 242 Created by Cytron...

Страница 14: ...stall new AT firmware to the module Hardware configuration 1 Stack the shield onto Arduino compatible board In this example Arduino Uno is used 2 Place both mini jumpers on USB selection 3 IMPORTANT C...

Страница 15: ...wing line to start firmware installation flash sh the port Arduino Uno ESPWiFi shield connecting to E g flash sh dev ttyACM0 AT Test and some minor configuration 1 Open Arduino Serial Monitor Make sur...

Страница 16: ...maged caused by misuse is not covered under warranty Warranty does not cover freight cost for both ways Prepared by Cytron Technologies Sdn Bhd No 16 Jalan Industri Ringan Permatang Tinggi 2 Kawasan I...

Страница 17: ...ROBOT HEAD to TOE Product User s Manual ESPWiFi Shield Rev2 0 URL www cytron com my Email support cytron com my sales cytron com my Created by Cytron Technologies Sdn Bhd All Right Reserved 17...

Отзывы: