ESP8266

The ESP8266 is a low-cost Wi-Fi microchip, with a full TCP/IP stack and microcontroller capability, produced by Espressif Systems[1] in Shanghai, China.

ESP8266
ESP-01 module by Ai-Thinker with ESP8266EX SoC
ManufacturerEspressif Systems
Type32-bit microcontroller
CPU@ 80 MHz (default) or 160 MHz
Memory32 KiB instruction, 80 KiB user data
Input16 GPIO pins
Power3.3 V DC
SuccessorESP32

The chip first came to the attention of Western makers in August 2014 with the ESP-01 module, made by a third-party manufacturer Ai-Thinker. This small module allows microcontrollers to connect to a Wi-Fi network and make simple TCP/IP connections using Hayes-style commands. However, at first there was almost no English-language documentation on the chip and the commands it accepted.[2] The very low price and the fact that there were very few external components on the module, which suggested that it could eventually be very inexpensive in volume, attracted many hackers to explore the module, the chip, and the software on it, as well as to translate the Chinese documentation.[3]

The ESP8285 is an ESP8266 with 1 MiB of built-in flash, allowing the building of single-chip devices capable of connecting to Wi-Fi.[4]

The successors to these microcontroller chips is the ESP32 family of chips, including the pin-compatible ESP32-C3.

Features

ESP-01 module wireframe

Pinout of ESP-01

ESP-01 module pinout

The pinout is as follows for the common ESP-01 module:

  1. GND, Ground (0 V)
  2. GPIO 2, General-purpose input/output No. 2
  3. GPIO 0, General-purpose input/output No. 0
  4. RX, Receive data bit X, also GPIO3
  5. VCC, Voltage (+3.3 V; can handle up to 3.6 V)
  6. RST, Reset
  7. CH_PD, Chip power-down
  8. TX, Transmit data bit X, also GPIO1
ESP8266 Die shot

SDKs

In October 2014, Espressif Systems released a software development kit (SDK) for programming the chip directly, which removed the need for a separate microcontroller.[7] Since then, there have been many official SDK releases from Espressif; Espressif maintains two versions of the SDK — one that is based on FreeRTOS and the other based on callbacks.[8]

An alternative to Espressif's official SDK is the open-source ESP-Open-SDK[9] that is based on the GNU Compiler Collection (GCC) toolchain, maintained by Max Filippov.[10] Another alternative is the "Unofficial Development Kit" by Mikhail Grigorev.[11][12]

Other SDKs, mostly open-source, include:

  • Arduino — A C++-based firmware. With this core, the ESP8266 CPU and its Wi-Fi components can be programmed like any other Arduino device. The ESP8266 Arduino Core is available through GitHub.
  • ESP8266 BASIC — An open-source BASIC-like interpreter specifically tailored for the Internet of Things (IoT). Self-hosting browser-based development environment.
  • ESP Easy — Developed by home automation enthusiasts.
  • ESPHome — ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through home automation systems.
  • Tasmota - open-source firmware, very popular with home automation enthusiasts.
  • ESP-Open-RTOS — Open-source FreeRTOS-based ESP8266 software framework.
  • ESP-Open-SDK — Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips.
  • Espruino — An actively maintained JavaScript SDK and firmware, closely emulating Node.js. Supports a few MCUs, including the ESP8266.
  • ESPurna — Open-source ESP8285/ESP8266 firmware.
  • Forthright — Port of Jones Forth to the ESP8266 microcontroller.
  • MicroPython — A port of MicroPython (an implementation of Python for embedded devices) to the ESP8266 platform.
  • Moddable SDK — includes JavaScript language and library support for the ESP8266
  • Mongoose OS — An open-source operating system for connected products. Supports ESP8266 and ESP32. Develop in C or JavaScript.[13]
  • NodeMCU — A Lua-based firmware.
  • PlatformIO — A cross-platform IDE and unified debugger, which sits on top of Arduino code and libraries.
  • Punyforth — Forth-inspired programming language for the ESP8266.
  • Sming — An actively developed asynchronous C/C++ framework with superb performance and multiple network features.
  • uLisp — A version of the Lisp programming language specifically designed to run on processors with a limited amount of RAM.
  • ZBasic for ESP8266 — A subset of Microsoft's widely-used Visual Basic 6, which has been adapted as a control language for the ZX microcontroller family and the ESP8266.
  • Zerynth — IoT framework for programming ESP8266[14] and other microcontrollers in Python.

Espressif modules

ESP-WROOM-02

This is the series of ESP8266-based modules made by Espressif:

Name Active pins Pitch Form factor LEDs Antenna Shielded Dimensions (mm) Notes
ESP-WROOM-02[15] 18 1.5 mm 2×9 castellated No PCB trace Yes 18 × 20 FCC ID 2AC7Z-ESPWROOM02.
ESP-WROOM-02D[16] 18 1.5 mm 2×9 castellated No PCB trace Yes 18 × 20 FCC ID 2AC7Z-ESPWROOM02D. Revision of ESP-WROOM-02 compatible with both 150-mil and 208-mil flash memory chips.
ESP-WROOM-02U[16] 18 1.5 mm 2×9 castellated No U.FL socket Yes 18 × 20 Differs from ESP-WROOM-02D in that includes an U.FL compatible antenna socket connector.
ESP-WROOM-S2[17] 20 1.5 mm 2×10 castellated No PCB trace Yes 16 × 23 FCC ID 2AC7Z-ESPWROOMS2.

In the table above (and the two tables which follow), "Active pins" include the GPIO and ADC pins with which external devices can be attached to the ESP8266 MCU. The "Pitch" is the space between pins on the ESP8266 module, which is important to know if the device will be used on a breadboard. The "Form factor" also describes the module packaging as "2 × 9 DIL", meaning two rows of 9 pins arranged "Dual In Line", like the pins of DIP ICs. Many ESP-xx modules include a small on-board LED which can be programmed to blink and thereby indicate activity. There are several antenna options for ESP-xx boards including a trace antenna, an on-board ceramic antenna, and an external connector which allows an external Wi-Fi antenna to be attached. Since Wi-Fi communications generates a lot of RFI (Radio Frequency Interference), governmental bodies like the FCC like shielded electronics to minimize interference with other devices. Some of the ESP-xx modules come housed within a metal box with an FCC seal of approval stamped on it. First and second world markets will likely demand FCC approval and shielded Wi-Fi devices.

Ai-Thinker modules

Ai-Thinker ESP8266 modules (ESP-12F, black color) soldered to breakout boards (white color)

This is the first series of modules made with the ESP8266 by the third-party manufacturer Ai-Thinker and remains the most widely available.[18] They are collectively referred to as "ESP-xx modules". To form a workable development system they require additional components, especially a serial TTL-to-USB adapter (sometimes called a USB-to-UART bridge) and an external 3.3 volt power supply. Novice ESP8266 developers are encouraged to consider larger ESP8266 Wi-Fi development boards like the NodeMCU which includes the USB-to-UART bridge and a Micro-USB connector coupled with a 3.3 volt power regulator already built into the board. When project development is complete, those components are not needed and these cheaper ESP-xx modules are a lower power, smaller footprint option for production runs.

In the Notes column, Flash memory sizes apply to the given module and all those below it in the table. Exceptions which apply to a single module are shown in ().

NameActive pinsPitchForm factorLEDsAntennaShieldedDimensions (mm)Notes
ESP-0160.1 in2×4 DILYesPCB traceNo14.3 × 24.8512 KiB Flash and blue PCB from a generic manufacturer. 1 MiB Flash, AI-Cloud and black PCB from AI-Thinker.
ESP-01S60.1 in2×4 DILYesPCB traceNo14.4 × 24.71 MiB Flash
ESP-01M161.6 mm2×9 edge connectorNoPCB traceYes18.0 × 18.0Uses ESP8285 (1 MiB built-in flash).
ESP-0260.1 in2×4 castellatedNoU.FL socketNo14.2 × 14.2
ESP-03102 mm2×7 castellatedNoCeramicNo17.3 × 12.1
ESP-04102 mm2×4 castellatedNoNoneNo14.7 × 12.1
ESP-0530.1 in1×5 SILNoU.FL socketNo14.2 × 14.2
ESP-0611various4×3 diceNoNoneYes14.2 × 14.7Not FCC approved.
ESP-07142 mm2×8 pinholeYesCeramic + U.FL socketYes20.0 × 16.0Not FCC approved.
ESP-07S142 mm2×8 pinholeNoU.FL socketYes17.0 × 16.0FCC and CE approved.
ESP-08102 mm2×7 castellatedNoNoneYes17.0 × 16.0Not FCC approved.
ESP-0910various4×3 diceNoNoneNo10.0 × 10.0
ESP-1032 mm1×5 castellatedNoNoneNo14.2 × 10.0
ESP-1161.27 mm1×8 pinholeNoCeramicNo17.3 × 12.1
ESP-12142 mm2×8 castellatedYesPCB traceYes24.0 × 16.0FCC and CE approved.[19]
ESP-12E202 mm2×8 castellatedYesPCB traceYes24.0 × 16.04 MiB flash.
ESP-12F202 mm2×8 castellatedYesPCB traceYes24.0 × 16.0FCC and CE approved. Improved antenna performance.
ESP-12S142 mm2×8 castellatedYesPCB traceYes24.0 × 16.0FCC approved.[20]
ESP-13161.5 mm2×9 castellatedNoPCB traceYesW18.0 × L20.0Marked as "FCC". Shielded module is placed sideways, as compared to the ESP-12 modules.
ESP-14222 mm2×8 castellated +6YesPCB traceYes24.3 × 16.2Mostly advertised with "AI Cloud Inside".

Other boards

The reason for the popularity of many of these boards over the earlier ESP-xx modules is the inclusion of an on-board USB-to-UART bridge (like the Silicon Labs' CP2102 or the WCH CH340G) and a Micro-USB connector, coupled with a 3.3-volt regulator to provide both power to the board and connectivity to the host (software development) computer – commonly referred to as the console, making it an easy development platform. With earlier ESP-xx modules, these two items (the USB-to-serial adapter and the regulator) had to be purchased separately and be wired into the ESP-xx circuit. Modern ESP8266 boards like the NodeMCU are easier to work with and offer more GPIO pins. Most of the boards listed here are based on the ESP-12E module, but new modules are being introduced seemingly every few months.

NameActive pinsPitchForm factorLEDsAntennaShieldedDimensions (mm)Notes
Bolt IoT 140.1 in2×14 DILYesPCB traceYes30 × 40Comes with an onboard SD card and features like Lib-Discovery and Fail Safe Mode. Has its own cloud for IoT.
Olimex MOD-WIFI-ESP8266[21] 20.1 inUEXT moduleYesPCB traceNo?Only RX/TX are connected to UEXT connector.
Olimex MOD-WIFI-ESP8266-DEV[22] 200.1 in2×11 DIL + castellatedYesPCB traceNo33 × 23All available GPIO pins are connected, also has pads for soldering UEXT connector (with RX/TX and SDA/SCL signals).
NodeMCU DEVKIT140.1 in2×15 DILYesPCB traceYes49 × 24.5Uses the ESP-12 module; includes USB to serial interface.
Adafruit Huzzah ESP8266 breakout[23] 140.1 in2×10 DILYesPCB traceYes25 × 38Uses the ESP-12 module.
SparkFun ESP8266 Thing[24] WRL-13231 120.1 in2×10 DILYesPCB trace + U.FL socketNo58 × 26FTDI serial header, Micro-USB socket for power, includes Li-ion battery charger.
KNEWRON Technologies smartWIFI[25] 120.1 in2×20 DILYes 1 RGBPCB traceYes25.4 × 50.8CP2102 USB bridge, includes battery charger, micro-USB socket for power and battery charging, 1 RGB LED and USER / Reflash button.
ArduCAM ESP8266 UNO[26]12+0.1 inArduino UnoYesPCB traceYes53.4 × 68.6Uses the AI Thinker's ESP8266MOD module and features Micro-USB port, Battery pins, Camera pins and uSD card all on the same board. Fully compatible with Arduino Uno shields.
DoIT ESPduino[27]120.1 inArduino UnoYesPCB traceYes53.4 × 68.6Uses the ESP-WROOM-02 (ESP-13) module and USB Type B port. Fully compatible with Arduino Uno shields.
WeatherPlus - SwitchDoc Labs[28]26+Grove0.1 inCustomYesPCB traceYes86.0 × 50.0Uses the AI Thinker Model ESP8266MOD (ESP-13) module and FTDI for Programming and Mini-USB port for power. Fully compatible with Adafruit Huzzah software. Includes BMP280 Barometer, ADS1115 and Grove I2C connectors. Plugs for Anemometer/Wind Vane/Rain Bucket.
WeMos[29] D1[30]120.1 inArduino UnoYesPCB traceYes53.4 × 68.6Uses the ESP-12F module and Micro-USB socket. Discontinued in favor of WeMos D1 R2.
WeMos[29] D1 R2[31] 120.1 inArduino UnoYesPCB traceYes53.4 × 68.6Uses ESP-12F module and has Micro-USB socket.
WeMos[29] D1 mini[32] 120.1 in2×8 DILYesPCB traceYes25.6 × 34.2Uses ESP-12S module and has Micro-USB socket.
WeMos[29] D1 mini Lite[33] 120.1 in2×8 DILYesPCB traceYes25.6 × 34.2Based on the ESP8285, an ESP8266 with 1 MiB flash built-in; has Micro-USB socket.
WeMos[29] D1 mini Pro[34] 120.1 in2×8 DILYesCeramic and U.FL socketYes25.6 × 34.2Uses ESP8266EX chip; has Micro-USB socket, U.FL antenna connector, and 16 MiB flash.
ESPert ESPresso Lite[35] 160.1 in2×8 DILYesPCB traceYes26.5 × 57.6Uses the ESP-WROOM-02 module. Produced in limited quantity as beta version.
ESPert ESPresso Lite V2.0[36] 240.1 in2×10 DILYesPCB traceYes28 × 61Improved version of ESPresso Lite.
In-Circuit ESP-ADC[37] 180.1 in2×9 DILNoU.FL socketYes22.9 × 14.9Uses ESP8266EX chip.
Watterott ESP-WROOM02-Breakout[38] 140.1 in2×10 DILYesPCB traceYes40.64 × 27.94Uses the Espressif ESP-WROOM-02 module.
Geek Wave Solution IOT WROOM-02 Dev. Board[39] 200.1 in?YesPCB traceYes93.80 × 80.02Development board with Espressif ESP-WROOM-02 module and four relays.
Witty 2-piece board[40] 200.1 in?YesPCB traceYes?Development board with Espressif ESP8266 ESP-12E and separate board for CH340G USB interface.

ESP32-C3

In 2020, Espressif announced a new chip ESP32-C3, which is pin-compatible with ESP8266. It is based on a single core RISC-V 32-bit CPU with a clock speed of up to 160 MHz. It includes 400 kB of SRAM and 384 kB ROM storage space built in.[41]

See also

References

  1. "ESP8266 Overview". Espressif Systems. Retrieved 2017-10-02.
  2. Brian Benchoff (August 26, 2014). "New Chip Alert: The ESP8266 WiFi Module (It's $5)". Hackaday. Retrieved 2015-06-24.
  3. Brian Benchoff (September 6, 2014). "The Current State of ESP8266 Development". Hackaday. Retrieved 2015-06-24.
  4. "Espressif Announces ESP8285 Wi-Fi Chip for Wearable Devices". Espressif Systems. Mar 9, 2016. Retrieved 2016-07-10.
  5. Both the CPU and flash clock speeds can be doubled by overclocking on some devices. CPU can be run at 160 MHz, and flash can be sped up from 40 MHz to 80 MHz. Success varies chip to chip.
  6. "Espressif ESP8266 Developer Zone Discussion Forum: Does ESP8266 actually have hardware I2C?". Espressif Systems. 2014-10-27. Retrieved 2017-10-02.
  7. Brian Benchoff (October 25, 2014). "An SDK for the ESP8266 WiFi Chip". Hackaday. Retrieved 2015-06-24.
  8. "Official SDK release from Espressif for ESP8266". Espressif Systems. July 29, 2015. Retrieved 2015-08-08.
  9. Paul Sokolovsky. "esp-open-sdk: Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips".
  10. Max Filippov (February 15, 2015). "ESP8266 GCC Toolchain". Retrieved 2015-08-08.
  11. Mikhail Grigorev. "Unofficial Development Kit for Espressif ESP8266 (GitHub Repository)".
  12. Mikhail Grigorev. "Project Unofficial Development Kit for Espressif ESP8266".
  13. "Mongoose OS Documentation". Cesanta.
  14. Luigi F. Cerfeda (June 15, 2017). "Python for ESP8266 in just a few clicks using Zerynth". Zerynth (Kinzica Ventures LLC).
  15. "Espressif ESP-WROOM-02". Espressif Systems. Retrieved 2015-07-29.
  16. "ESP-WROOM-02D/ESP-WROOM-02U Datasheet" (PDF). Espressif Systems. Archived from the original (PDF) on 2017-12-01. Retrieved 2017-11-25.
  17. "ESP-WROOM-S2 Datasheet" (PDF). Espressif Systems. Archived from the original (PDF) on 2017-10-08. Retrieved 2017-10-08.
  18. "ESP8266 module family". ESP8266 Community Wiki. Retrieved 2015-06-24.
  19. "2ADUIESP-12 by Shenzhen Anxinke technology co., LTD for Wi-Fi Module". FCC. December 30, 2014. Retrieved 2015-06-24.
  20. "FCC ID 2AHMR-ESP12S, Shenzhen Ai-Thinker Technology co., LTD WIFI MODULE -ESP12S". FCC. August 4, 2016. Retrieved 2017-07-17.
  21. "MOD-WIFI-ESP8266". Olimex. Retrieved 2015-06-25.
  22. "MOD-WIFI-ESP8266-DEV". Olimex. Retrieved 2015-06-25.
  23. "Adafruit HUZZAH ESP8266 Breakout". Adafruit Industries. Retrieved 2015-06-25.
  24. "SparkFun ESP8266 Thing". SparkFun. Retrieved 2015-06-27.
  25. "KNEWRON smartWIFI". KNEWRON. Retrieved 2016-03-04.
  26. ESP8266 UNO. "ArduCAM ESP8266 UNO Board".
  27. ESPduino. "Arduino ESPduino".
  28. SwitchDoc Labs. "Grove WeatherPlus".
  29. WeMos. "WEMOS". WEMOS.
  30. "WeMos D1". WeMos. Retrieved 2016-11-30.
  31. "WeMos D1 R2". WeMos. Retrieved 2016-01-05.
  32. "WeMos D1 mini". WeMos. Retrieved 2017-06-29.
  33. "WeMos D1 mini Lite". WeMos. Retrieved 2017-06-29.
  34. "WeMos D1 mini Pro". WeMos. Retrieved 2017-06-29.
  35. "Espert". Espert. Retrieved 2016-01-07.
  36. "ESPresso Lite V2.0". Espert Pte Ltd. Retrieved 2017-10-02.
  37. "ESP-ADC DIL18 development board". In-Circuit Wiki. Retrieved 2016-02-03.
  38. "Watterott ESP-WROOM02-Breakout". Watterott. Retrieved 2016-11-06.
  39. "Geek Wave Solution ESP8266-WROOM-02-IOT WiFi Development Board". Geek Wave Solution. Retrieved 2017-09-04.
  40. "Witty ESP8266 ESP-12E dual-level board". N/A. Retrieved 2019-08-29.
  41. List, Jenny (2020-11-22). "Espressif Leaks ESP32-C3: A WiFi SOC That's RISC-V and is ESP8266 Pin-Compatible". Hackaday.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.