ArticleslgStudy

computer science

ESP8266

ESP8266 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ESP8266 rather than just read about it. In short: The ESP8266 is a low-cost Wi-Fi microchip, with built-in TCP/IP networking software, and microcontroller capability, produced by Espressif Systems in Shanghai, China. The chip was popularized in the English-speaking maker community in August 2014 via the ESP-01 module, made by a third-party manufacturer Ai-Thinker.

ESP8266 — main illustration
ESP8266 — illustration

Key takeaways

  • ESP8266 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ESP8266 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ESP8266 from memory before moving on to harder problems.

Reference excerpt

The ESP8266 is a low-cost Wi-Fi microchip, with built-in TCP/IP networking software, and microcontroller capability, produced by Espressif Systems in Shanghai, China. The chip was popularized in the English-speaking maker community in August 2014 via 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. 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. 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. These microcontroller chips have been succeeded by the ESP32 family of devices.

Features

Processor: L106 32-bit RISC microprocessor core based on the Tensilica Diamond Standard 106Micro running at 80 or 160 MHz far from the 240 MHz of a ESP32 Memory of 160 Kbytes of RAM which are segmented into: 32 KB instruction RAM (iRAM) 32 KB instruction cache RAM 96 KB of dRAM which are segmented into 80 KB dRAM for SDK and heap memory, and 16 KB for ROM 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 Serial Peripheral Interface Bus (SPI) I²C (software implementation) 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

The 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. 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. An alternative to Espressif's official SDK is the open-source ESP-Open-SDK that is based on the GNU Compiler Collection (GCC) toolchain, maintained by Max Filippov. Another alternative is the "Unofficial Development Kit" by Mikhail Grigorev. 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, for home automation. 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. 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 and other microcontrollers in Python. IOTBAH - is An operating system (OS) for Espressif ESP8266 EspOS Webserver, easy IoT solution.

Espressif modules

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

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.

Ai-Thinker modules

… excerpt ends here. Continue reading the full article.

Illustrations

ESP8266 illustration
ESP8266: ESP-01 module by Ai-Thinker with ESP8266EX SoC
ESP-01 module by Ai-Thinker with ESP8266EX SoC
ESP8266: ESP-01 module wireframe drawing
ESP-01 module wireframe drawing
ESP8266: ESP-01 module pinout
ESP-01 module pinout
ESP8266: ESP8266 Die shot
ESP8266 Die shot

Worked examples

Example 1 — a first encounter with ESP8266

Start with the simplest possible case. Write down what ESP8266 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ESP8266 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ESP8266 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ESP8266

In research
ESP8266 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ESP8266 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ESP8266 is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2014 establishments, Internet of things, Microcontrollers, so understanding it makes those chapters shorter.
In everyday life
Look for ESP8266 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ESP8266” →

How to study ESP8266 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ESP8266 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ESP8266 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ESP8266 in simple terms?

The ESP8266 is a low-cost Wi-Fi microchip, with built-in TCP/IP networking software, and microcontroller capability, produced by Espressif Systems in Shanghai, China. The chip was popularized in the English-speaking maker community in August 2014 via the ESP-01 module, made by a third-party manufac…

Why does ESP8266 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ESP8266?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ESP8266.

Tags

  • 2014 establishments
  • Internet of things
  • Microcontrollers
  • Microprocessors made in China
  • Wireless networking hardware

Keep exploring