ESP-12S User Manual-revised

FCC ID: 2AHMR-ESP12S

Users Manual

Download: PDF
FCCID_3087407

ESP—128 User Manual




                      REV:1.0

                      2016.7


ESP—128 UserManual



FCC STATEMENT
This daicecomnles uis o theFCCRtes Opraton s abjecto hefolowigtuo concitons
0) Tsc ma etcare hmreatwerce
C thscercemce w ay mafeencereaives,duinginerfeence tmaj caine unierredopenton
Anéctangesor maifertannot prent anorovd ytepay ressonste frconslonce uk oi the us‘s
athoriyto enrecasioners

Preve rtcetaziAth FC tenicaton rumie isotvidtewhenthe mt is sale ie aotredac
thentheatsil othdnicema unthe mds neated mz asedanla aland referingtoreencornd
modite Ti netar ibcan uswortng such s thefaloine ‘torminsFCC 0. 2A%UR ESPIESr y sniar
wortbeht eanrenerthesamemeningmaybeused
Thisesctomerecomotes uh PCiaton eontelinis sfoth o n uncoerle ervrernereths enc
stoudbe naatedandoperaed uit aminimum dzancot2danberween tradaorfyoubady Thisansnveer
msenotbe colocreoaneraigankinctn it y otheancemnovananizen


CE Mark Warning


C€ 0890
Themosteisintes 05ineataion on
The 0tcepuzrsemonatieforenurinthathe enerhano masaiauatotorenovecrineat
notue
Te mocsei inte ncataton in mobl apicato
A seapronliaure o ulatheeperaincotinratonsicin poraeconfermions uin repectto
Pan2 109 and ofercearemacontiraions
Therelsresurenere tthepovce roideidin t thhomandtuanerfocomnlacewit PrcSB
resirenens


SterchenArtintrtechalooy c td            Mitss/fom aihinir con


ESP-12S User Manual




                                        Table Of Contents
1. Preambles ............................................................................................................................................................... 2

       1.1.          Features ............................................................................................................................................... 3

       1.2.          Parameters ........................................................................................................................................... 4

2. Pin Descriptions...................................................................................................................................................... 5

       2.1.          Interfaces ............................................................................................................................................. 6

       2.2.          Pin Mode.............................................................................................................................................. 8

       2.3.          Antenna interface ................................................................................................................................ 8

3. Package information and OEM installation method ............................................................................................. 9

       3.1.          Package information .......................................................................................................................... 10

       3.2.          OEM installation mathod ................................................................................................................... 10

4. Absolute Maximum Ratings ................................................................................................................................ 11

       4.1Recommended Operating Conditions ......................................................................................................... 11

       4.2.AT commend Testing................................................................................................................................... 11

       4.3.AT commend ............................................................................................................................................... 12

       4.3.1.AT Command Description ........................................................................................................................ 12

       4.3.2.Basic AT Command Set ............................................................................................................................ 12




 Shenzhen Ai-Thinker Technology Co., Ltd                                            http://www.ai-thinker.com                                                                1


ESP—128 User Manual




1. Preambles

     ESP—125 WiFi module is developed by Al—Thinker Co.,Ltd, core processor ESP8266 in smaller sizes of the module
encapsulates Tensilica 1106 integrates industry—Leading ultra low power 32—bit MCU micro, with the 16—bit short mode,
clock speed support 80 MHz, 160 MHz, supports the RTOS, integrated Wi—Fi MAC/BB/RF/PA/INA, on—board antennas.
    The module supports standard IEEES02.11 b/g/n agreement, complete TCP/IP protocol stack. Users can use the
add modules to an existing device networking, or building a separate network controller
      ESPE2GG is high integration wireless SOCs, designed for space and power constrained mobile platform designers.
It provides unsurpassed ability to embed Wi—Fi capabilities within other systems, or to function as a standalone
application, with the lowest cost, and minimal space requirement.




                    ;          EP ;                          ced )
                                 ar             Analog                  wo               Interface


                    i                           mave |_| i$\ ) O
                    $                                        P

                                 se
                                                          ij
                                                  <—|| &—)| c
                        Puu       Costl       Blas crouts           sham                  Pau




                                  Figure 1.      ESP3266EX Functional Block Diagram

     ESPE26GEX offers a complete and self—contained Wi i networking solution; it can be used to host the application
or to offload Wi—Fi networking functions from another application processor.
    When ESP2GGEX hosts the application, it boots up directly from an external flash. In has integrated cache to
improve the performance of the system in such applications.
    Alternately, serving as a Wi—Fi adapter, wireless internet access can be added to any micro controllerbased design
with simple connectivity (SPY/SDIO or I2C/UART interface}.
     ESP2GGEX is among the most integrated WiFi chip in the industry; it integrates the antenna switches, RF balun,
power amplifier, low noise receive amplifier, filters, power management modules, it requires minimal external circuitry,
and the entire solution, including front—end module, is designed to occupy minimal PCB area.
     ESP2GGEX also integrates an enhanced version of Tensilica‘s L106 Diamond series 32—bit processor, with on—chip
SRAM, besides the Wi—Fi functionalities. ESP826GEX is often integrated with external sensors and other application
specific devices through its GPIOs; codes for such applications are provided in examples in the SDK.

 Shenzhen Ai—Thinker Technology Co., Ltd                    http://mm. ai~thinker. com                                   2


ESP-12S User Manual




    1.1.   Features
•    802.11 b/g/n

•    Integrated low power 32-bit MCU

•    Integrated 10-bit ADC

•    Integrated TCP/IP protocol stack

•    Integrated TR switch, balun, LNA, power amplifier and matching network

•    Integrated PLL, regulators, and power management units

•    Supports antenna diversity

•    Wi-Fi 2.4 GHz, support WPA/WPA2

•    Support STA/AP/STA+AP operation modes

•    Support Smart Link Function for both Android and iOS devices

•    SDIO 2.0, (H) SPI, UART, I2C, I2S, IRDA, PWM, GPIO

•    STBC, 1x1 MIMO, 2x1 MIMO

•    A-MPDU & A-MSDU aggregation and 0.4s guard interval

•    Deep sleep power <10uA, Power down leakage current < 5uA

•    Wake up and transmit packets in < 2ms

•    Standby power consumption of < 1.0mW (DTIM3)

•    +20dBm output power in 802.11b mode

•    Operating temperature range -40C ~ 85C



Shenzhen Ai-Thinker Technology Co., Ltd                   http://www.ai-thinker.com   3


ESP-12S User Manual




   1.2.    Parameters
Table 1 below describes the major parameters.

                                                 Table 1 Parameters


      Categories                         Items                                       Values

                        WiFi Protocles                         802.11 b/g/n
WiFi Paramters
                        Frequency Range                        2.4GHz-2.5GHz (2400M-2483.5M)

                                                               UART/HSPI/I2C/I2S/Ir Remote Contorl
                        Peripheral Bus
                                                               GPIO/PWM

                        Operating Voltage                      3.3V

                        Operating Current                      Average value: 80mA
Hardware
Paramaters              Operating Temperature Range            -40°~125°

                        Ambient Temperature Range              Normal temperature

                        Package Size                           18mm*20mm*3mm

                        External Interface                     N/A

                        Wi-Fi mode                             station/softAP/SoftAP+station

                        Security                               WPA/WPA2

                        Encryption                             WEP/TKIP/AES

                                                               UART Download / OTA (via network) /
                        Firmware Upgrade
Software                                                       download and write firmware via host
Parameters                                                     Supports Cloud Server Development / SDK
                        Ssoftware Development
                                                               for custom firmware development

                                                               IPv4, TCP/UDP/HTTP/FTP
                        Network Protocols

                        User Configuration                     AT Instruction Set, Cloud Server, Android/iOS APP




 Shenzhen Ai-Thinker Technology Co., Ltd                http://www.ai-thinker.com                                  4


ESP—125 User Manual




2. Pin Descriptions
There are altogether 16 pin counts, the definitions of which are described in Table 2 below.

                                                   Figure 2 ESP—125 pinout




                                         ol
                                          iv=]
                                          74)°]
                                          ol
                                          Chial
                                          4/=]
                                          6 B
                                          7A |®|
                                          8 0




                                            Table 2 ESP—125 pin description


    Pin number           Pin name                                            function

         1                  RST          Reset module

         2                 ADC           A/d conversion result. Input voltage range O~1V, value range: 0~1024

         3                  EN           Chip enable pin. Active high


         4                GPIO16         GPIO16; can be used to wake up the chipset from deep sleep mode


         5                GPIO14         GPIO14; HSPI_CLK


         6                GPIO12         GPIO12; HSPI_MISO


         7                GPIO13         GPIO13; HSPI_MOSI; UARTO_CTS


         8                 VvCC          3.3V power supply (VDD)



 Shenzhen Ai—Thinker Technology Co., Ltd                    http://www. ai—thinker. com


ESP-12S User Manual




         9              GND          GND

         10           GPIO15         GPIO15; MTDO; HSPICS; UART0_RTS

         11            GPIO2         GPIO2; UART1_TXD

         12            GPIO0         GPIO0

         13            GPIO4         GPIO4

         14            GPIO5         GPIO5

         15            RXD0          UART0_RXD; GPIO3

         16            TXD0          UART0_TXD; GPIO1



  2.1.    Interfaces

                           Table 3   Descriptions of Interfaces
   Interface           Pin Name                                        Description
                      IO12(MISO),
                      IO13(MOSI)           SPI Flash , display screen, and MCU can be connected using HSPI
    HSPI
                      IO14(CLK),           interface
                       IO15(CS)
                                           Currently the PWM interface has four channels, but users can extend
                       IO12(R),
                                           the channels according to their own needs. PWM interface can be
     PWM               IO15(G),
                                           used to control LED lights, buzzers, relays, electronic machines, and
                        IO13(B)
                                           so on.
                                           The functionality of Infrared remote control interface can be
  IR Remote           IO14(IR_T),          implemented via software programming. NEC coding, modulation,
   Control             IO5(IR_R)           and demodulation are used by this interface. The frequency of
                                           modulated carrier signal is 38KHz.
                                           ESP8266EX integrates a 10-bit analog ADC. It can be used to test the
                                           power supply voltage of VDD3P3 (Pin3 and Pin4) and the input
     ADC                 TOUT
                                           power voltage of TOUT (Pin 6). However, these two functions cannot
                                           be used simultaneously. This interface is typically used in sensor
Shenzhen Ai-Thinker Technology Co., Ltd                http://www.ai-thinker.com                                   6


ESP-12S User Manual




                                          products.


     I2C              IO14(SCL),          I2C interface can be used to connect external sensor products and
                       IO2(SDA)           display screens, etc.
                                          Devices with UART interfaces can be connected with the module.
                                          Downloading: U0TXD+U0RXD or GPIO2+U0RXD
                                          Communicating: UART0: U0TXD, U0RXD, MTDO (U0RTS), MTCK
                       UART0:
                                          (U0CTS)
                     TXD(U0TXD),
                                          Debugging: UART1_TXD (GPIO2) can be used to print debugging
                     RXD(U0RXD),          information.
     UART             IO15(RTS),
                                          By default, UART0 will output some printed information when the
                      IO13(CTS)
                                          device is powered on and is booting up. If this issue exerts influence
                       UART1:
                                          on some specific applications, users can exchange the inner pins of
                       IO2(TXD)
                                          UART when initializing, that is to say, exchange U0TXD, U0RXD with

                                          U0RTS, U0CTS.

                      I2S Input:


                  IO12 (I2SI_DATA) ;

                   IO13 (I2SI_BCK );

                   IO14 (I2SI_WS);
                                          I2S interface is mainly used for collecting, processing, and
     I2S
                    I2S Output::          transmission of audio data.


                  IO15 (I2SO_BCK );

                   IO3 (I2SO_DATA);

                   IO2 (I2SO_WS ).




Shenzhen Ai-Thinker Technology Co., Ltd               http://www.ai-thinker.com                                    7


ESP-12S User Manual




   2.2.    Pin Mode

                                              Table 4 Pin Mode


            Mode                         GPIO15                       GPIO0                   GPIO2

            UART                           low                        low                     high

          Flash Boot                       low                        high                    high




   2.3. Antenna interface

ESP-12S Modules through the IPEX interface to connect to external antenna.

The antenna must be in line with the 802.11g/802.11b IEEE standard, and the antenna parameters are shown in
the following table:

                                         Table 5 Antenna parameters


                          Rating                                                  Value

                       Frequency range                                        2.4~2.4825GHz

                   Impedance
                                                                                 50Ω




 Shenzhen Ai-Thinker Technology Co., Ltd                  http://www.ai-thinker.com                           8


ESP—128 User Manual




3. Package information and OEM installation method
The external size of theESP—125 WiFi module is 16mm*17mm*3mm, as is illustrated in Figure 4 below:

                                    Figure 3 Top View of ESP—07s WiFi Module




                                                           EsPp—A2$

                                                     | ceo8a0 ,E8PT
                                                              @
                                                       F&%flwfi




                                    Figure 4 Dimensions of ESP—12S WiFi Module




                                                                                    r
                                                                                    [
                                                                                    mm
                                                                                     =
                                                                                    4
                                                                                    B2
                                                                                    n
                                                                                    m
                                                                                    <




                                    Table 5 Dimensions of ESP—12S WiFi Module



             Length              width               Height      PAD Size(Bottom)        Pin Pitch

             16mm              17/mm                3 mm          1 mm x 1.2 mm             2mm




 Shenzhen Ai—Thinker Technology Co., Ltd               http://www. ai—thinker. com


ESP—12S User Manual




   3.1. Package information
     ESP—1258 use a half hole patch package, Module PCB Footprint shown in the following figure:
                                           Figure 5 Module PCB Footprint
                                                   |‘—1 6mm _’I




                                                             18. 6mm




                                                                                     2mm
                                                                                     1.1mm
   3.2. OEM installation mathod
      Using ESP—12S module Please reference in front of the package information in the Layout on the main board for
OEM factory .Please pay more attention Module‘s direction and the antenna close to the edge of board is better the
Components and layout should not be on the bottom of antenna then soldering the module.when the module be
soldering can not in the environment of high temperature We recommend the reflow soldering temperature curves is
shown in figure 6:

                            Figure 6       Recommend reflow soldering temperature curves

                     Refer to IPC/JEDEC standard: Peak Temperature <250°C ; Number of Times: 52 times :




 Shenzhen Ai—Thinker Technology Co., Ltd                         http://www. ai—thinker. com                         10


ESP—128 User Manual




4. Absolute Maximum Ratings
                                        Table 6 Absolute Maximum Ratings



                Rating                               Condition                           Value             Unit

        Storage Temperature                                                           40 to 125             °C


  Maximum Soldering Temperature                                                           260               °C

           Supply Voltage                      IPC/JEDEC J—STD—020                    +3.0 to +3.6              v

   4.1Recommended Operating Conditions
                                  Table 7 Recommended Operating Conditions

     Operating Condition                    Symbol           Min               Typ               Max      Unit


    Operating Temperature                                     40                20                  125    °C

        Supply voltage                        vDD             3.0               3.3                 3.6    v

  4.2.AT commend Testing
1.Hardware connection

    As shown in Figure 7, ESP—125 via a USB to TTL Tool connected to the computer, software tool through the serial
port on the computer can be AT instruction test

                                           Figure 7 ESP—125 connect with computer




               (Sy
                     Padecendes




               Ls
                En
                                                                       RX
              Tois
                                                                       in
              hou                                                            use to tri| USB Port
              Tor2                                                    l
              Tors                                                    e

               vee




 Shenzhen Ai—Thinker Technology Co., Ltd                         http : //ww. ai—thinker. com                         11


ESP—128 User Manual




   4.3.AT commend
Espressif   AT instruction set functions and methods of use


AT commands set is divided into: Basic AT commands, WiFi related AT commands, TCP / IP AT



   4.3.1.AT Command Description


                        Table 8 Each Command set contains four types of AT commands.



                Type        Command Format                               DescriPtion

                                                Query the Set command or internal parameters and its
                 Test           ATrex>=?             V
                                                range values.
                                                                                 P
                Query           AT+<x>?         Returns the current value of the parameter.

                                                Set the value of user—defined parameters in commands and
                  Set         AT+<x>=<...>
                                                run.
                Execute          AT+<x>         Runs commands with no user—defined parameters.



     Notes:
     1. Not all AT Command has four commands.
    2. [] = default value, not required or may not appear
    3. String values require double quotation marks, for example:
    AT+CWSAP="ESP756290®,"21030826",1,4
    4. Baudrate = 115200
    5. AT Commands has to be capitalized, and end with "/r/n"




   4.3.2.Basic AT Command Set
The ESP8266 wireless WiFi modules can be driven via the serial interface using the standard AT
commands. Here is a list of some basic AT commands that can be used.




 Shenzhen Ai—Thinker Technology Co., Ltd                    http ://wiw. al—thinker. com                   12


ESP—128 User Manual




                                           Table®   basic AT commands


  Basic

  Command                    Description

  AT                         Test AT startup

  AT+RST                     Restart module

  AT+GMR                     View version info

  AT+GSLP                    Enter deep—sleep mode

  ATE                        AT commands echo or not

  AT+RESTORE                 Factory Reset

  AT+UART                    UART configuration, [@deprecated]

  AT+UART_CUR                UART current configuration

  AT+UART_DEF                UART default configuration, save to flash

  AT+SLEEP                   Sleep mode

  AT+RFPOWER                 Set maximum value of RF TX Power

  AT+RFVDD                   Set RF TX Power according to VDD33




AT —Test AT startup
The type of this command is "executed". It‘s used to test the setup function of your wireless WiFi
module.


  AT — Test AT startup

       Response       OK

    Parameters        null



 Shenzhen Al—Thinker Technology Co., Ltd                  http: //ma. ai—thinker. com                13


ESP—128 User Manual




AT+RST — Restart module
The type of this command is "executed". It‘s used to restart the module.


  AT+RST — Restart module

     Response         OK

    Parameters        null




AT+GMR — View version info
This AT command is used to check the version of AT commands and SDK that you are using, the type
of which is "executed".


 AT+GMR — View version info
                      <AT version info>
                      <SDK version info>
     Response         <compile time>

                      OK

                      <AT version info> information about AT version
    Parameters        <SDK version info> information about SDK version
                      <compile time> time of the bin was compiled




AT+GSLP — Enter deep—sleep mode
This command is used to invoke the deep—sleep mode of the module, the type of which is "set". A
minor adjustment has to be made before the module enter this deep sleep mode, ie., connect
XPD_DCDC with EXT_RSTB via OR.




 Shenzhen Al—Thinker Technology Co., Ltd                 http: //nm. al—thinker. con               14


ESP—128 User Manual




 AT+GSLP=<time>

                      <time>
     Response
                      OK

    p        t        The time unit of <time> is ms.
        arameters     £5P8266 will wake up after deep sleep <time> ms.



ATE— AT commands echo
This command ATE is an AT trigger command echo. it means that entered commands can be echoed
back to the sender when ATE command is used. Two parameters are possible. The command returns
"OK" in normal cases and "ERROR" when a parameter othe~ than 0 or 1 was specified.

 ATE — AT commands echo

     Response         OK

                      ATEO: Switch echo off
    Parameters        ATE1: Switch echo on


AT+RESTORE — Factory reset
This command is used to reset all parameters saved in flash (according to appendix), restore the
factory default settings of the module. The chip will be restarted when this command is executed.

  AT+RESTORE — Factory reset

        Response      OK

                      Restore factory default settings.
         Notes        The chip will restart.

Detailed instruction test, please refer to the Esp8266 AT Inscruction Set, can be downloaded to shun official website»




 Shenzhen Ai—Thinker Technology Co., Ltd                  http: //ma. ai—thinker. com                                    15



Document Created: 2016-08-01 14:00:21
Document Modified: 2016-08-01 14:00:21

© 2024 FCC.report
This site is not affiliated with or endorsed by the FCC