Ai Thinker Technology ESP12F ESP-12F User Manual ESP 12F

Shenzhen Ai-Thinker Technology co., LTD ESP-12F ESP 12F

User Manual

ESP-12F User ManualREV:2.02017.8
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.comFCC STATEMENTThis device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions:(1) This device may not cause harmful interference.(2) This device must accept any interference received, including interference that may cause undesired operation.Any changes or modifications not expressly approved by the party responsible for compliance could void the user’sauthority to operate the equipment.Please notice that if the FCC identification number is not visible when the module is installed inside another device,then the outside of the device into which the module is installed must also display a label referring to the enclosedmodule. This exterior label can use wording such as the following: “Contains FCC ID: 2AHMR-ESP12F” any similarwording that expresses the same meaning may be used.This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment.This equipmentshould be installed and operated with a minimum distance of 20cmbetween the radiator & your body. This transmittermust not be co-located or operating inconjunction with any other antenna or transmitter.CE Mark WarningThe module is limited to OEM installation ONLY.The OEM integrator is responsible for ensuring that the end-user has no manual instruction to remove or installmodule.The module is limited to installation in mobile application;A separate approval is required for all other operating configurations, including portable configurations with respect toPart 2.1093 and difference antenna configurations.There is requirement that the grantee provide guidance to the host manufacturer for compliance with Part 15Brequirements.
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com1Table Of Contents1. Preambles............................................................................................................................................................... 21.1. Features................................................................................................................................................ 31.2. Parameters........................................................................................................................................... 42. Pin Descriptions...................................................................................................................................................... 52.1. Interfaces..............................................................................................................................................62.2. Pin Mode.............................................................................................................................................. 82.3. Antenna interface.................................................................................................................................83. Package information and OEM installation method............................................................................................. 93.1. Package information...........................................................................................................................103.2. OEM installation mathod................................................................................................................... 104. Absolute Maximum Ratings................................................................................................................................. 114.1Recommended Operating Conditions..........................................................................................................114.2.AT commend Testing................................................................................................................................... 114.3.AT commend............................................................................................................................................... 124.3.1.AT Command Description.........................................................................................................................124.3.2.Basic AT Command Set.............................................................................................................................12
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com21. PreamblesESP-12F WiFi module is developed by AI-Thinker Co.,Ltd, core processor ESP8266 in smaller sizes of the moduleencapsulates Tensilica L106 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/LNA, on-board antennas.The module supports standard IEEE802.11 b/g/n agreement, complete TCP/IP protocol stack. Users can use theadd modules to an existing device networking, or building a separate network controller.ESP8266 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 standaloneapplication, with the lowest cost, and minimal space requirement.ESP8266EX offers a complete and self-contained Wi-Fi networking solution; it can be used to host the applicationor to offload Wi-Fi networking functions from another application processor.When ESP8266EX hosts the application, it boots up directly from an external flash. In has integrated cache toimprove 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 designwith simple connectivity (SPI/SDIO or I2C/UART interface).ESP8266EX 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.ESP8266EX also integrates an enhanced version of Tensilica’s L106 Diamond series 32-bit processor, with on-chipSRAM, besides the Wi-Fi functionalities. ESP8266EX is often integrated with external sensors and other applicationspecific devices through its GPIOs; codes for such applications are provided in examples in the SDK.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
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com3•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 ~ 85C1.2. ParametersTable 1 below describes the major parameters.Table 1 ParametersCategoriesItemsValuesWiFi ParamtersWiFi Protocles802.11 b/g/nFrequency Range2.4GHz-2.5GHz (2400M-2483.5M)HardwareParamatersPeripheral BusUART/HSPI/I2C/I2S/Ir Remote ContorlGPIO/PWM
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com4Operating Voltage3.3VOperating CurrentAverage value: 80mAOperating Temperature Range-40°~125°Ambient Temperature RangeNormal temperaturePackage Size18mm*20mm*3mmExternal InterfaceN/ASoftwareParametersWi-Fi modestation/softAP/SoftAP+stationSecurityWPA/WPA2EncryptionWEP/TKIP/AESFirmware UpgradeUART Download / OTA (via network) /download and write firmware via hostSsoftware DevelopmentSupports Cloud Server Development / SDKfor custom firmware developmentNetwork ProtocolsIPv4, TCP/UDP/HTTP/FTPUser ConfigurationAT Instruction Set, Cloud Server, Android/iOS APP
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com52. Pin DescriptionsThere are altogether 16 pin counts, the definitions of which are described in Table 2 below.Figure 2 ESP-12F pinoutTable 2 ESP-12F pin descriptionPin numberPin namefunction1RSTReset module2ADCA/d conversion result. Input voltage range 0~1V, value range: 0~10243ENChip enable pin. Active high4GPIO16GPIO16; can be used to wake up the chipset from deep sleep mode5GPIO14GPIO14; HSPI_CLK6GPIO12GPIO12; HSPI_MISO7GPIO13GPIO13; HSPI_MOSI; UART0_CTS8VCC3.3V power supply (VDD)
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com69CS0SPI CS0;GPIO1110MISOSPI MISO;GPIO711GPIO9SPI HD;GPIO912GPIO10SPI WP;GPIO1013MOSISPI MOSI;GPIO814CLKSPI CLK;GPIO615GNDGND16GPIO15GPIO15; MTDO; HSPICS; UART0_RTS17GPIO2GPIO2; UART1_TXD18GPIO0GPIO019GPIO4GPIO420GPIO5GPIO521RXD0UART0_RXD; GPIO322TXD0UART0_TXD; GPIO12.1. InterfacesTable 3 Descriptions of InterfacesInterfacePin NameDescriptionHSPIIO12(MISO),IO13(MOSI)IO14(CLK),IO15(CS)SPI Flash , display screen, and MCU can be connected using HSPIinterfacePWMIO12(R),IO15(G),Currently the PWM interface has four channels, but users can extendthe channels according to their own needs. PWM interface can be
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com7IO13(B)used to control LED lights, buzzers, relays, electronic machines, andso on.IR RemoteControlIO14(IR_T),IO5(IR_R)The functionality of Infrared remote control interface can beimplemented via software programming. NEC coding, modulation,and demodulation are used by this interface. The frequency ofmodulated carrier signal is 38KHz.ADCTOUTESP8266EX integrates a 10-bit analog ADC. It can be used to test thepower supply voltage of VDD3P3 (Pin3 and Pin4) and the inputpower voltage of TOUT (Pin 6). However, these two functions cannotbe used simultaneously. This interface is typically used in sensorproducts.I2CIO14(SCL),IO2(SDA)I2C interface can be used to connect external sensor products anddisplay screens, etc.UARTUART0:TXD(U0TXD),RXD(U0RXD),IO15(RTS),IO13(CTS)UART1:IO2(TXD)Devices with UART interfaces can be connected with the module.Downloading: U0TXD+U0RXD or GPIO2+U0RXDCommunicating: UART0: U0TXD, U0RXD, MTDO (U0RTS), MTCK(U0CTS)Debugging: UART1_TXD (GPIO2) can be used to print debugginginformation.By default, UART0 will output some printed information when thedevice is powered on and is booting up. If this issue exerts influenceon some specific applications, users can exchange the inner pins ofUART when initializing, that is to say, exchange U0TXD, U0RXD withU0RTS, U0CTS.I2SI2S Input:IO12 (I2SI_DATA) ;IO13 (I2SI_BCK );IO14 (I2SI_WS);I2S interface is mainly used for collecting, processing, andtransmission of audio data.
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com8I2S Output::IO15 (I2SO_BCK );IO3 (I2SO_DATA);IO2 (I2SO_WS ).2.2. Pin ModeTable 4 Pin ModeModeGPIO15GPIO0GPIO2UARTlowlowhighFlash Bootlowhighhigh2.3. Antenna interfaceESP-12F 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 inthe following table:Table 5 Antenna parametersRatingValueFrequency range2.4~2.4825GHzImpedance50Ω
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com93. Package information and OEM installation methodThe external size of theESP-12F WiFi module is 16mm*17mm*3mm, as is illustrated in Figure 4 below:Figure 4 Dimensions of ESP-12F WiFi ModuleTable 5 Dimensions of ESP-12F WiFi ModuleLengthwidthHeightPAD Size(Bottom)Pin Pitch16mm24mm3 mm1 mm x 1.2 mm2mm3.1. Package informationESP-12F use a half hole patch package, Module PCB Footprint shown in the following figure:Figure 5 Module PCB Footprint
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com103.2. OEM installation mathodUsing ESP-12F module Please reference in front of the package information in the Layout on the main board forOEM factory .Please pay more attention Module's direction and the antenna close to the edge of board is better ,theComponents and layout should not be on the bottom of antenna then soldering the module.when the module besoldering can not in the environment of high temperature ,We recommend the reflow soldering temperature curves isshown in figure 6:Figure 6 Recommend reflow soldering temperature curves4. Absolute Maximum RatingsTable 6 Absolute Maximum Ratings
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com11RatingConditionValueUnitStorage Temperature-40 to 125℃Maximum Soldering Temperature260℃Supply VoltageIPC/JEDEC J-STD-020+3.0 to +3.6V4.1Recommended Operating ConditionsTable 7 Recommended Operating ConditionsOperating ConditionSymbolMinTypMaxUnitOperating Temperature-4020125℃Supply voltageVDD3.03.33.6V4.2.AT commend Testing1.Hardware connectionAs shown in Figure 7, ESP-12F via a USB to TTL Tool connected to the computer, software tool through the serialport on the computer can be AT instruction testFigure 7 ESP-12F connect with computer4.3.AT commendEspressif AT instruction set functions and methods of use
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com12AT commands set is divided into: Basic AT commands, WiFi related AT commands, TCP / IP AT4.3.1.AT Command DescriptionTable 8 Each Command set contains four types of AT commands.Notes:1. Not all AT Command has four commands.2. [] = default value, not required or may not appear3. String values require double quotation marks, for example:AT+CWSAP="ESP756290","21030826",1,44. Baudrate = 1152005. AT Commands has to be capitalized, and end with "/r/n"4.3.2.Basic AT Command SetThe ESP8266 wireless WiFi modules can be driven via the serial interface using the standard ATcommands. Here is a list of some basic AT commands that can be used.Table9 basic AT commands
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com13AT – Test AT startupThe type of this command is "executed". It's used to test the setup function of your wireless WiFimodule.AT+RST – Restart module
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com14The type of this command is "executed". It’s used to restart the module.AT+GMR – View version infoThis AT command is used to check the version of AT commands and SDK that you are using, the typeof which is "executed".AT+GSLP – Enter deep-sleep modeThis command is used to invoke the deep-sleep mode of the module, the type of which is "set". Aminor adjustment has to be made before the module enter this deep sleep mode, i.e., connectXPD_DCDC with EXT_RSTB via 0R.
ESP-12F User ManualShenzhen Ai-Thinker Technology Co., Ltd http://www.ai-thinker.com15ATE – AT commands echoThis command ATE is an AT trigger command echo. It means that entered commands can be echoedback to the sender when ATE command is used. Two parameters are possible. The command returns"OK" in normal cases and "ERROR" when a parameter other than 0 or 1 was specified.AT+RESTORE – Factory resetThis command is used to reset all parameters saved in flash (according to appendix), restore thefactory default settings of the module. The chip will be restarted when this command is executed.Detailed instruction test, please refer to the Esp8266 AT Instruction Set, you can download it from our website。

Navigation menu