esp8266 introduction - JohnHau/mis GitHub Wiki

https://en.wikipedia.org/wiki/ESP8266 https://www.espressif.com/en/products/socs/esp8266

From Wikipedia, the free encyclopedia

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

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 a similar chip with a built-in 1 MiB flash memory, allowing the design of single-chip devices capable of connecting via Wi-Fi.[4]

These microcontroller chips have been succeeded by the ESP32 family of devices.

Contents 1 Features 2 Pinout of ESP-01 3 SDKs 4 Espressif modules 5 Ai-Thinker modules 6 Other boards 7 ESP32-C3 8 See also 9 References 10 External links

Features

Processor: L106 32-bit RISC microprocessor core based on the Tensilica Xtensa Diamond Standard 106Micro running at 80 MHz[5] Memory:[citation needed] 32 KiB instruction RAM 32 KiB instruction cache RAM 80 KiB user-data RAM 16 KiB ETS system-data RAM External QSPI flash: up to 16 MiB is supported (512 KiB to 4 MiB typically included) IEEE 802.11 b/g/n Wi-Fi Integrated TR switch, balun, LNA, power amplifier and matching network WEP or WPA/WPA2 authentication, or open networks 17 GPIO pins[6] Serial Peripheral Interface Bus (SPI) IĀ²C (software implementation)[7] IĀ²S interfaces with DMA (sharing pins with GPIO) UART on dedicated pins, plus a transmit-only UART can be enabled on GPIO2 10-bit ADC (successive approximation ADC)

Pinout of ESP-01

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

GND, Ground (0 V) GPIO 2, General-purpose input/output No. 2 GPIO 0, General-purpose input/output No. 0 RX, Receive data in, also GPIO3 VCC, Voltage (+3.3 V; can handle up to 3.6 V) RST, Reset CH_PD, Chip power-down TX, Transmit data out, also GPIO1

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.[8] 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.[9]

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

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.[14] 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[15] and other microcontrollers in Python. IOTBAH - is An operating system (OS) for Espressif ESP8266

image 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 onboard 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 onboard ceramic antenna, and an external connector that allows an external Wi-Fi antenna to be attached. Since Wi-Fi communications generate 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.[citation needed]

Ai-Thinker modules

This is the first series of modules made with the ESP8266 by the third-party manufacturer Ai-Thinker and remains the most widely available.[19] 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 ().

image

image

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.

image

image

image

image

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.[43]

See also ESP32 ā€“ the successor product from Espressif Internet of things MCU (microcontroller unit)

References "ESP8266 Overview". Espressif Systems. Retrieved 2017-10-02. Brian Benchoff (August 26, 2014). "New Chip Alert: The ESP8266 WiFi Module (It's $5)". Hackaday. Retrieved 2015-06-24. Brian Benchoff (September 6, 2014). "The Current State of ESP8266 Development". Hackaday. Retrieved 2015-06-24. "Espressif Announces ESP8285 Wi-Fi Chip for Wearable Devices". Espressif Systems. Mar 9, 2016. Retrieved 2016-07-10. 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.[citation needed] Success varies chip to chip.[citation needed] "ESP8266 Technical Reference, Version 1.7" (PDF). Espressif Systems. Retrieved 2021-04-22. "Espressif ESP8266 Developer Zone Discussion Forum: Does ESP8266 actually have hardware I2C?". Espressif Systems. 2014-10-27. Retrieved 2017-10-02. Brian Benchoff (October 25, 2014). "An SDK for the ESP8266 WiFi Chip". Hackaday. Retrieved 2015-06-24. "Official SDK release from Espressif for ESP8266". Espressif Systems. July 29, 2015. Retrieved 2015-08-08. Paul Sokolovsky. "esp-open-sdk: Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips". Max Filippov (February 15, 2015). "ESP8266 GCC Toolchain". Retrieved 2015-08-08. Mikhail Grigorev. "Unofficial Development Kit for Espressif ESP8266 (GitHub Repository)". Mikhail Grigorev. "Project Unofficial Development Kit for Espressif ESP8266". "Mongoose OS Documentation". Cesanta. Luigi F. Cerfeda (June 15, 2017). "Python for ESP8266 in just a few clicks using Zerynth". Zerynth (Kinzica Ventures LLC). "Espressif ESP-WROOM-02". Espressif Systems. Retrieved 2015-07-29. "ESP-WROOM-02D/ESP-WROOM-02U Datasheet" (PDF). Espressif Systems. Archived from the original (PDF) on 2017-12-01. Retrieved 2017-11-25. "ESP-WROOM-S2 Datasheet" (PDF). Espressif Systems. Archived from the original (PDF) on 2017-10-08. Retrieved 2017-10-08. "ESP8266 module family". ESP8266 Community Wiki. Retrieved 2015-06-24. "MOD-WIFI-ESP8266". mischianti. Retrieved 2021-08-04. "2ADUIESP-12 by Shenzhen Anxinke technology co., LTD for Wi-Fi Module". FCC. December 30, 2014. Retrieved 2015-06-24. "FCC ID 2AHMR-ESP12S, Shenzhen Ai-Thinker Technology co., LTD WIFI MODULE -ESP12S". FCC. August 4, 2016. Retrieved 2017-07-17. "MOD-WIFI-ESP8266". Olimex. Retrieved 2015-06-25. "MOD-WIFI-ESP8266-DEV". Olimex. Retrieved 2015-06-25. "Adafruit HUZZAH ESP8266 Breakout". Adafruit Industries. Retrieved 2015-06-25. "SparkFun ESP8266 Thing". SparkFun. Retrieved 2015-06-27. "KNEWRON smartWIFI". KNEWRON. Retrieved 2016-03-04. ESP8266 UNO. "ArduCAM ESP8266 UNO Board". ESPduino. "Arduino ESPduino". SwitchDoc Labs. "Grove WeatherPlus". WeMos. "WEMOS". WEMOS. "WeMos D1". WeMos. Retrieved 2016-11-30. "WeMos D1 R2". WeMos. Retrieved 2016-01-05. "WeMos D1 mini". WeMos. Retrieved 2017-06-29. "WeMos D1 mini Lite". WeMos. Retrieved 2017-06-29. "WeMos D1 mini Pro". WeMos. Retrieved 2017-06-29. "Espert". Espert. Retrieved 2016-01-07. "ESPresso Lite V2.0". Espert Pte Ltd. Retrieved 2017-10-02. "ESP-ADC DIL18 development board". In-Circuit Wiki. Retrieved 2016-02-03. "Watterott ESP-WROOM02-Breakout". Watterott. Retrieved 2016-11-06. "Geek Wave Solution ESP8266-WROOM-02-IOT WiFi Development Board". Geek Wave Solution. Retrieved 2017-09-04. "Witty ESP8266 ESP-12E dual-level board". N/A. Retrieved 2019-08-29. List, Jenny (2020-11-22). "Espressif Leaks ESP32-C3: A WiFi SOC That's RISC-V and is ESP8266 Pin-Compatible". Hackaday.

External links ESP8266 core for Arduino IDE

image image image

image

image

image

image