文章主要对ESP8266进行简单介绍,展示了常用模块及开发板的引脚图
特点
- 内置Tensilica L106超低功耗32位MCU,主频支持80MHz和160MHz,支持RTOS
- 内置TCP/IP协议栈
- 内置1路10 bit高精度ADC
- 外设有HSPI、UART、I2C、I2S、IR Remote Control、PWM、GPIO
- 深度睡眠电流10uA,关断电流小于5uA
- 2 ms内唤醒
- 待机状态下消耗功率小于1.0mW(DTIM3)
- 支持802.11 b/g/n/e/i
- 支持Station、SoftAP、SoftAP+STA模式
- 支持Wi-Fi Direct(P2P)
- 支持CCMP(CBC-MAC、计数器模式)、TKIP(MIC、RC4)、WAPI(SMS4)、WEP(RC4)、CRC的硬件加速
- P2P发现, P2P GO模式/GC模式和P2P电源管理
- WPA/PA2 PSK和WPS
- 支持802.11n(2.4 GHz)
- 支持AT指令远程升级及云端OTA升级
- 支持SmartConfig等方式配网功能
典型应用
- 家用电器
- 家庭自动化
- 智能家居
- Mesh组网
- 传感网
- 可穿戴电子产品
- 无线定位
工业无线控制
产品参数:
2xUART
- 1xADC
- 1xEn
- 1x唤醒引脚
- 1xHSPI
- 1xI2C
- 1xI2S
- 最多11xGPIOs
- 4M SPI Flash
- 工作温度范围:-40℃-85℃
常用的开发板及模块
引脚定义
Pin Number | Pin Name | Alternate Name | Normally used for | Alternate purpose |
---|---|---|---|---|
1 | Ground | - | Connected to the ground of the circuit | - |
2 | TX | GPIO – 1 | Connected to Rx pin of programmer/uC to upload program | Can act as a General purpose Input/output pin when not used as TX |
3 | GPIO-2 | - | General purpose Input/output pin | - |
4 | CH_EN | - | Chip Enable – Active high | - |
5 | GPIO - 0 | Flash | General purpose Input/output pin | Takes module into serial programming when held low during start up |
6 | Reset | - | Resets the module | - |
7 | RX | GPIO - 3 | General purpose Input/output pin | Can act as a General purpose Input/output pin when not used as RX |
8 | Vcc | - | Connect to +3.3V only | - |
ESP8266-01 工作模式切换
GPIO – 0 | GPIO – 2 | Mode | Used For |
---|---|---|---|
High | High | Flash Mode | Run the program that is already uploaded to the module |
Low | High | UART Mode | Programming mode- to program using Arduino or any serial communication |