{{ :esp8266.png?nolink |}} ===== 什么是“物联网” ===== 在物联网(物联网)是日常物品的网络 - 嵌入有电子,软件,传感器和连接的物理物体,可实现数据交换。基本上,一个小型联网计算机附加到一个东西上,允许与该东西进行信息交换。无论是灯泡,烤面包机,冰箱,花盆,手表,风扇,飞机,火车,汽车还是其他任何东西,都可以将一台联网的计算机与它结合起来接受输入(特别是对象控制)或收集和生成信息性输出(通常是对象状态或其他感官数据)。这意味着计算机将渗透到我们周围的一切 - 无处不在的嵌入式计算设备,可唯一识别,网络互联。由于低成本,网络微控制器模块,物联网真正开始起飞。 ===== 什么是ESP8266 ===== ====芯片==== ESP8266系列或Wi-Fi芯片系列由Espressif Systems生产,Espressif Systems是一家在中国上海运营的无晶圆半导体公司。ESP8266系列目前包括ESP8266EX和ESP8285芯片。 **ESP8266EX** (简称为ESP8266)是片上系统(SoC),将32位Tensilica微控制器,标准数字外设接口,天线开关,RF巴伦,功率放大器,低噪声接收放大器,滤波器和电源管理模块集成一个小的封装。它提供2.4 GHz Wi-Fi(802.11 b / g / n,支持WPA / WPA2),通用输入/输出(16 GPIO),内部集成电路(I²C),模数转换(10-bit ADC)的功能,串行外设接口(SPI),带有DMA的I²S接口(与GPIO共用引脚),UART(使用专用引脚,外加在GPIO2上可以使能纯发送UART)和脉冲宽度调制(PWM) 。Espressif称为“L106”的处理器内核基于Tensilica' s Diamond Standard 106Micro 32位处理器控制内核,运行频率为80 MHz(或超频至160 MHz)。它具有64 KiB引导ROM,32 KiB指令RAM和80 KiB用户数据RAM。(另外,32 KiB指令高速缓存RAM和16 KiB ETS系统数据RAM。)可以通过SPI访问外部闪存。硅芯片本身采用5 mm×5 mm Quad Flat No-Leads封装,带有33个连接焊盘 - 每侧有8个焊盘,中心有一个大型散热焊盘。 * [[https://www.espressif.com/products/hardware/esp8266ex/overview/|ESP8266EX概述]] * [[https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf|ESP8266EX数据表]] * [[https://www.espressif.com/sites/default/files/documentation/esp8266-technical_reference_en.pdf|ESP8266技术参考]] ESP8285 是ESP8266的一种变体,具有1 MiB的嵌入式闪存。 * [[https://www.espressif.com/sites/default/files/documentation/0a-esp8285_datasheet_en.pdf|ESP8285数据表]] 现在,如果你正在寻找更强大的东西,请查看 [[http://esp32.net/|ESP32]] - 它有更多的内存,更多的GPIO,硬件加密,蓝牙,以及各种其他额外的花哨。 ==== 模块 ==== 因此,供应商基于ESP8266芯片创建了大量紧凑型印刷电路板模块。其中一些模块具有特定的标识符,包括诸如“ESP-WROOM-02”和“ESP-01”到“ESP-14”之类的标记; 而其他模块可能标记不清,仅仅由一般描述引用 - 例如,“ESP8266无线收发器”。基于ESP8266的模块已经证明自己是一个有能力,低成本,可联网的基础,可以促进终端物联网的发展。Espressif的官方模块目前是ESP-WROOM-02和ESP-WROOM-S2。Ai-Thinker模块简洁地标记为ESP-01至ESP-14。(注意:许多人将“非政府组织模块”与“ESP8266-01”的非官方标记通过“ 有关流行的ESP8266模块的更多信息,请参阅[[https://en.wikipedia.org/wiki/ESP8266|维基百科上的ESP8266文章]]。 === Espressif系统 === 目前的型号: ^ 模型 ^ 闪存 ^ 天线 ^ 尺寸 ^ ^ [[https://www.espressif.com/sites/default/files/documentation/0c-esp-wroom-02_datasheet_en.pdf|ESP-WROOM-02]] | 2MiB | PCB走线 | 20×18×3 | ^ [[https://www.espressif.com/sites/default/files/documentation/esp-wroom-02d_esp-wroom-02u_datasheet_en.pdf|ESP-WROOM-02D]] | 2MiB | PCB走线 | 20×18×3.2 | ^ [[https://www.espressif.com/sites/default/files/documentation/esp-wroom-02d_esp-wroom-02u_datasheet_en.pdf|ESP-WROOM-02U]] | 2MiB | I-PEX | 18×14.3×3.2 | ^ [[https://www.espressif.com/sites/default/files/documentation/esp-wroom-s2_datasheet_en.pdf|ESP-WROOM-S2]] | 2MiB | PCB走线 | 23×16×3 | ESP-WROOM-02D只是ESP-WROOM-02的一个小型版本,兼容150 mil和208 mil的闪存芯片。ESP-WROOM-02U有一个I-PEX / U.FL天线连接器代替PCB走线倒置曲折F天线。\\ 其他资源 * [[https://www.espressif.com/en/products/hardware/esp-wroom-02/overview|ESP-WROOM-02概述/产品页面]] * [[https://www.espressif.com/sites/default/files/documentation/esp-wroom-02_pcb_design_and_module_placement_guide_0.pdf|ESP-WROOM-02 PCB设计和模块放置指南]] * {{:esp-wroom-02_reference_design_0.zip|ESP-WROOM-02参考设计}} (ZIP) * {{:esp-wroom-s2_reference_design.zip|ESP-WROOM-S2参考设计}} (ZIP) === Ai-Thinker === 目前的型号 ^ 模型 ^ 闪存 ^ 天线 ^ 尺寸 ^ ^ ESP-01S | 1MiB | PCB走线 | 24.7×14.4×11 | ^ ESP-01M | 1MiB | PCB走线 | 18×18×2.8 | ^ ESP-07S | 4MiB | I-PEX | 17×16×3 | ^ ESP-08S | 4MiB | 没有 | 17.6×16.2×3 | ^ ESP-12F | 4MiB | PCB走线 | 24×16×3 | ^ ESP-12S | 4MiB | PCB走线 | 24×16×3 | 较旧型号:ESP-01,ESP-7,ESP-08,ESP-09,ESP-10,ESP-11,ESP-12,ESP-12E和ESP-13。\\ 停产型号:ESP-02,ESP-03,ESP-04,ESP-05,ESP-06和ESP-14。\\ [[http://wiki.ai-thinker.com/esp8266|Ai-Thinker维基:ESP8266部分]] === DOIT === 目前的型号 ^ 模型 ^ 闪存 ^ 天线 ^ 尺寸 ^ ^ [[https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8285---ESP-1|ESP-1]] | 1MiB | 陶瓷和I-PEX | 24.5×14×3 | ^ [[https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8266---ESP-F|ESP-F]] | 4MiB | PCB走线 | 24×16×3 | ^ [[https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8285---ESP-M1|ESP-M1]] | 1MiB | I-PEX | 15×12.3×3 | ^ [[https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8285---ESP-M2|ESP-M2]] | 1MiB | PCB走线 | 20×12.3×3 | ^ ESP-M3 | 1MiB | PCB走线 | 26.8×16 | ^ [[https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8266---ESP-S|ESP-S]] | 4MiB | PCB走线 | 24×16×3 | ESP8285用于ESP-1,ESP-M1,ESP-M2和ESP-M3。\\ 停产型号:[[https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8266---ESP-E|ESP-E]]。 === 无线标签技术 === 目前的型号 ^ 模型 ^ 闪存 ^ 天线 ^ 尺寸 ^ ^ [[http://www.wireless-tag.com/wireless_module/Wi-Fi/WT8266-S1.html|WT8266-S1]] | 2 MiB | PCB走线 | 18.64×15×3.13 | ^ [[http://www.wireless-tag.com/wireless_module/Wi-Fi/WT8266-S2.html|WT8266-S2]] | 2 MiB | 陶瓷和I-PEX | 18.6×15×3.05 | 其他资源 * [[http://www.wireless-tag.com/upload/soft/WT8266-S1%20DataSheet%20V2.5.pdf|WT8266-S1数据表]] * [[http://www.wireless-tag.com/upload/file/p1b8bp18qsm0113u1fk9da119bl3.pdf|WT8266-S1 PCB设计和模块放置指南]] * [[http://www.wireless-tag.com/upload/file/p1ank0n1cipvu1rsb1upm16j91d323.pdf|WT8266-S2数据表]] ==== 开发板/模块 ==== 基于ESP8266的开发板/模块通常包含一个表面贴装PCB模块,一个板上USB到串行桥,以及0.1英寸间距连接的分支。例如,NodeMCU开发套件使用Ai-Thinker模块, [[https://www.adafruit.com/product/2821|Adafruit Feather HUZZAH]] 使用带有SiLabs CP2104 USB转串口桥接芯片的Ai-Thinker ESP-12S模块,[[https://wiki.wemos.cc/products:d1:d1_mini|WEMOS D1 Mini]]版本2.3使用Ai-Thinker ESP-12S模块带有WinChipHead CH340G USB转串口桥接芯片。其他开发板不使用中间模块,而是直接在板上集成芯片 - 例如, [[https://wiki.wemos.cc/products:d1:d1_mini_pro|WEMOS D1 Mini Pro]]使用ESP8266EX,而[[https://wiki.wemos.cc/products:d1:d1_mini_lite|WEMOS D1 Mini Lite]]使用ESP8285。 ===== 社区与交流 ===== ==== 论坛 ==== * [[https://bbs.espressif.com/|官方Espressif论坛]] * [[http://www.esp8266.com/|ESP8266社区论坛]] ==== 阅读与资源 ==== * [[https://www.espressif.com/en/products/hardware/esp8266ex/resources|Espressif ESP8266资源页面]] ⭐ * [[https://www.espressif.com/en/support/download/documents?keys=&field_type_tid%5B%5D=14&field_type_tid%5B%5D=16&field_type_tid%5B%5D=271&field_type_tid%5B%5D=272&field_type_tid%5B%5D=53&field_type_tid%5B%5D=146&field_type_tid%5B%5D=52|Espressif支持:ESP8266系列文档]] \\ 包括ESP8266EX和ESP8285芯片,ESP-WROOM-02和ESP-WROOM-S2模块以及ESP-Launcher开发板。 * [[https://www.esp8266.com/|ESP8266社区论坛]] * [[https://github.com/esp8266|Github上的ESP8266社区]] * [[https://www.esp8266.com/wiki/doku.php|ESP8266社区维基]] * [[https://nurdspace.nl/ESP8266|NURDspace wiki:ESP8266]] * [[https://www.electrodragon.com/w/index.php?title=Category:ESP8266|Electrodragon wiki:ESP8266类别]] * [[http://esp8266-re.foogod.com/|ESP8266逆向工程维基]] ([[https://web.archive.org/web/20160427062103/http://esp8266-re.foogod.com/wiki/Main_Page|Archive.org备份]]) * [[https://esp8266.ru/|ESP8266.ru:俄罗斯开发者社区]] * [[https://www.letscontrolit.com/|LetsControlIt.com(以前的ESP8266.nu维基)]] * [[https://www.hackster.io/rayburne/esp8266-01-using-arduino-ide-67a124|Ray Burnette的ESP-01模块使用Arduino IDE教程]] * [[https://www.hackster.io/esp|Hackster.io ESP标签]](面向项目) * [[https://hackaday.io/projects?tag=ESP8266|Hackaday.io ESP8266标签]](面向项目和教程) * [[https://hackaday.com/tag/esp8266/|Hackaday.com ESP8266标签]](面向新闻) * [[https://www.instructables.com/howto/ESP8266/|Instructables ESP8266搜索]](面向项目) * [[https://twitter.com/esp8266|@ ESP8266在推特上]] \\ 推文@ [[https://twitter.com/ESP8266|ESP8266]] ===== 开发平台 ===== * [[https://github.com/espressif/esp8266_at|Espressif AT固件]] * [[https://github.com/espressif/ESP8266_RTOS_SDK|Espressif FreeRTOS固件]] * [[https://github.com/esp8266/arduino|ESP8266是Arduino的核心]] * [[https://github.com/SmingHub/Sming|Sming]] - 高效原生ESP8266开发的开源框架。 * [[https://github.com/eerimoq/simba|Simba OS]] - 嵌入式编程平台。/ [[http://simba-os.readthedocs.io/en/latest/index.html|docs]], [[https://simba-os.readthedocs.io/en/latest/boards.html|支持的板卡]] * [[https://github.com/pfalcon/esp-open-sdk|ESP-Open-SDK]] - 为ESP8266 / ESP8285芯片提供免费和开放(尽可能)的集成SDK。 * [[https://github.com/SuperHouse/esp-open-rtos|ESP-Open-RTOS]] - 基于FreeRTOS的开源ESP8266软件框架。 * LUA: * [[http://nodemcu.com/index_en.html|NodeMCU]] * [[https://nodemcu-build.com/|NodeMCU自定义构建]] * [[https://nodelua.org/|NodeLua]] - 使用Web IDE的Lua解释器。 * Python * [[https://micropython.org/download#esp8266|MicroPython]] / [[http://docs.micropython.org/en/latest/|docs]], [[http://wiki.micropython.org/Home|wiki]], [[https://github.com/micropython/micropython/|source]] * [[https://github.com/eerimoq/pumbaa|Pumbaa MicroPython]] / [[https://pumbaa.readthedocs.io/en/latest/|docs]], [[https://pumbaa.readthedocs.io/en/latest/boards.html|支持的板卡]] * [[https://www.zerynth.com/|Zerynth混合C / Python]] / [[https://docs.zerynth.com/latest/|docs]], [[https://www.zerynth.com/zerynth-supported-devices/|支持的板卡]] * JavaScript: * [[http://www.espruino.com/EspruinoESP8266|Espurino]] / [[https://github.com/espruino/Espruino|来源]] * [[https://mongoose-os.com/|Mongoose JS(mJS)]] / [[https://github.com/cesanta/mjs|来源]] * [[https://github.com/pando-project/jerryscript/tree/master/targets/esp8266|JerryScript]] * Forth: * [[https://github.com/zeroflag/punyforth|PunyForth]] * [[https://github.com/niclash/forthright|Forthright]] * ESP8266Forth / [[http://www.forth-ev.de/article.php/20151210011706511/|文章]] * Lisp: * [[https://github.com/yesco/esp-lisp|ESP-Lisp语言]] * [[https://dmitryfrank.com/articles/lisp_on_mcu|在Mongoose OS下使用JavaScript的Lisps]](低效;不实用) * Basic: * [[https://www.esp8266basic.com/|ESP8266基本版]] * [[http://www.zbasic.net/downloads.php|ESP8266]] / [[http://www.zbasic.net/doc/ZBasicESP8266.html|docs的]][[http://www.zbasic.net/downloads.php|ZBasic]] * Visual programming: * [[https://github.com/orionrobots/Bounce|Bounce]] - 使用Google Blockly的可视化编程环境; 使用Lua NodeMCU固件为ESP8266 / NodeMCU设计。 * [[https://www.visuino.com/|Visuino]] - 商业视觉编程环境。 * Networking: * [[https://github.com/jeelabs/esp-link|ESP-LINK]] - Wi-Fi /串行桥,出站TCP和Arduino / AVR / LPC / NXP编程器。 * [[https://github.com/martin-ger/esp_wifi_repeater|ESP_WiFi_Repeater]] - Wi-Fi NAT路由器。/ 视频 * [[https://github.com/martin-ger/esp_slip_router|ESP_SLIP_Router]] - 串行线路IP(RFC1055)路由器。 * USB:[[https://github.com/cnlohr/espusb|ESPUSB]] - 仅限软件的ESP8266 USB设备。/ [[https://github.com/cnlohr/espusb/wiki|wiki]], [[https://www.esp8266.com/viewforum.php?f=154|论坛]] * Spacial: * [[https://www.espressif.com/sites/default/files/documentation/geolocating_with_esp8266_en.pdf|与ESP8266进行地理定位]](PDF) * [[https://github.com/cnlohr/esplocalizer|ESPLocalizer]] - ESP8266,IMU(方向),气压计和电池。 * [[https://github.com/fdivitto/ESPWebFramework|ESPWebFramework]] - [[https://github.com/fdivitto/ESPWebFramework|ESP8266]]的Web框架。 * [[https://github.com/nekromant/esp8266-frankenstein|Frankenstein]] - ESP8266模块的替代固件。 * 另请参阅:[[https://www.electrodragon.com/w/Category:ESP8266_Code_Guide|Electrodragon wiki:ESP8266代码指南类别]], [[https://www.esp8266.com/wiki/doku.php?id=loading_firmware#firmware|ESP8266社区wiki:加载固件]] ===== 购买渠道 ===== 免责声明:供应商仅供参考。买家在订购时应谨慎小心。在订购之前,请尽可能阅读所有产品说明并检查供应商评级。下面列出的价格是近似值,不包括运费。此外,下面列出的价格可能已经过时,所以要勤奋并自己检查。 * Adafruit的: * [[https://www.adafruit.com/product/2491|Ai-Thinker ESP-12S]](6.95美元) * [[https://www.adafruit.com/product/2471|Adafruit HUZZAH ESP8266 Breakout]]($ 9.95) * [[https://www.adafruit.com/product/2821|Adafruit Feather HUZZAH with ESP8266 Wi-Fi]](16.95美元) * [[https://www.adafruit.com/product/3213|Adafruit Feather HUZZAH with ESP8266 Wi-Fi & Stacking Headers ]]($ 19.95) * [[https://www.adafruit.com/product/2680|Adafruit Huzzah! Adafruit.io IoT Feather ESP8266 Wi-Fi Starter Kit ]](37.50美元) * AnalogLamb: * [[https://www.analoglamb.com/product/esp-01s/|Ai-Thinker ESP-01S]](4.99美元) * [[https://www.analoglamb.com/product/esp-12e/|Ai-Thinker ESP-12E]](2.69美元) * Electrodragon: * [[https://www.electrodragon.com/product/esp-01-esp8266-wifi-module/|Ai-Thinker ESP-01S]](2.60美元) * [[https://www.electrodragon.com/product/esp-01m-wifi-module-esp8285-1mb-vertical-design/|Ai-Thinker ESP-01M]](2.60美元) * [[https://www.electrodragon.com/product/esp-07s-esp8266-serial-wifi-module/|Ai-Thinker ESP-07S]](2.60美元) * [[https://www.electrodragon.com/product/esp-12f-esp8266-wifi-board/|Ai-Thinker ESP-12F]](2.60美元) * [[https://www.electrodragon.com/product/esp-12s-wifi-module-esp8266/|Ai-Thinker ESP-12S]](2.60美元) * [[https://www.electrodragon.com/product/wroom-02-module-esp8266-wifi/|Espressif ESP-WROOM-02]](2.20美元) * [[https://www.electrodragon.com/product/esp-launcher-dev-board-esp8266-wifi/|Espressif ESP-Launcher开发套件]]($ 20.00) * 网格连接: * [[https://gridconnect.com/esp-wroom-02-wi-fi-module.html|Espressif ESP-WROOM-02]](每个2.70美元;最低数量10) * [[https://gridconnect.com/esp-wroom-s2-wireless-wifi-rf-module.html|Espressif ESP-WROOM-S2]](每个2.70美元;最低数量10) * [[https://gridconnect.com/esp8266-sdk-wireless-wifi-iot-software-development-kit.html|Espressif ESP-Launcher开发套件]](30.00美元) * Seeed Studio Bazaar: * [[https://www.seeedstudio.com/Seeedstudio-ESP8285-Wi-Fi-SoC-Module-p-2931.html|Ai-Thinker ESP-01M]](2.95美元) * [[https://www.seeedstudio.com/depot/NodeMCU-v2-Lua-based-ESP8266-development-kit-p-2415.html|NodeMCU v2 - 基于Lua的ESP8266开发套件]](8.20美元) * [[https://www.seeedstudio.com/depot/s/ESP8266.html?search_in_description=0|搜索ESP8266]] * 智能原型: * [[https://www.smart-prototyping.com/WiFi-Serial-Transceiver-Module-ESP8266---Small.html|Ai-Thinker ESP-12S]](4.99美元) * [[https://www.smart-prototyping.com/index.php?route=product/product&product_id=44247|Amica NodeMCU]](6.99美元) * SparkFun: * [[https://www.sparkfun.com/products/13678|Ai-Thinker ESP-01]](6.95美元) * [[https://www.sparkfun.com/products/13231|SparkFun ESP8266 Thing]](15.95美元) * [[https://www.sparkfun.com/products/13711|SparkFun ESP8266 Thing- 开发板]] (15.95美元) * [[https://www.sparkfun.com/search/results?term=ESP8266|搜索ESP8266]] * WEMOS电子: * [[https://www.aliexpress.com/store/product/WEMOS-D1-mini-Pro-16M-bytes-external-antenna-connector-ESP8266-WIFI-Internet-of-Things-development-board/1331105_32724692514.html|WEMOS D1 Mini Pro]]($ 5.00) * [[https://www.aliexpress.com/store/product/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266/1331105_32529101036.html|WEMOS D1 Mini]](3.50美元) * [[https://www.aliexpress.com/store/product/WEMOS-D1-mini-Lite-V1-0-0-WIFI-Internet-of-Things-development-board-based-ESP8285-1MB/1331105_32795857574.html|WEMOS D1迷你精简版]](3.00美元) * Watterott电子: * [[http://www.watterott.com/en/ESP8266-WiFi-Serial-Transceiver-Module|Ai-Thinker ESP-01]](€4.30) * [[https://www.watterott.com/index.php?page=product&info=4199|Ai-Thinker ESP-05]](€4.30) * [[https://www.watterott.com/en/ESP8266-ESP-07S|Ai-Thinker ESP-07S]](€4.30) * [[https://www.watterott.com/en/ESP8266-ESP-12F-WiFi/WLAN-Module|Ai-Thinker ESP-12F]](€3.85) * [[https://www.watterott.com/en/AI-Thinker-ESP8266-ESP-14-WiFi/WLAN-Module-STM8S-MCU|Ai-Thinker ESP-14]](€4.30) * [[https://www.watterott.com/en/ESP-WROOM-02-Module|Espressif ESP-WROOM-02]](€4.00) * [[https://www.watterott.com/en/ESP8266-Blackboard-T5|Ai-Thinker T5 Black Board]](€8.25) * [[https://www.watterott.com/en/ESP8266-ESP-12E-Uno-Board|ArduCAM ESP8266 UNO]](€16.50) * AliExpress:[[https://www.aliexpress.com/wholesale?SearchText=ESP8266|搜索ESP8266]] * 阿里巴巴(批量):[[https://www.alibaba.com/trade/search?fsb=y&IndexArea=product_en&CatId=&SearchText=ESP8266|搜索ESP8266]]