数码营电子:基于微型控制器的编程、电路设计与电子产品制做。邮箱:shumaying@hotmail.com
ESP8266
Jump to navigation
Jump to search
- ESP8266 is a system on chip (SoC) which provides WIFI capability for embedded applications. This enables internet connectivity to embedded applications. ESP8266 modules are mostly used in Internet of Things(IoT) applications.
- ESP8266 Wi-Fi SoC - Espressif Systems
- NodeMcu - An open-source firmware and development kit that helps you to prototype your IOT product within a few Lua script lines
- Lua based interactive firmware for ESP8266, ESP8285 and ESP32
- The ESP8266 is a low-cost and readily available Wi-Fi module with full TCP/IP stack and microcontroller capability. It can be used with any Pixhawk series controller.
Technical Documents:
- Standard Setup of Toolchain for Linux¶
- Package: libncurses-dev (6.5+20250216-2 and others)
- gperf
- Installing PySerial
- Install packages in a virtual environment using pip and venv
sudo apt-get install gcc git wget make libncurses-dev flex bison gperf python python-serial sudo apt-get install libncurses5-dev libncursesw5-dev ~$ sudo apt-get update && sudo apt-get upgrade ~$ sudo apt-get -y install gperf
~$ pip install pyserial
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Contents
- 1 ESP8266 WiFi Module
- 2 Nodemcu
- 3 AP & STA Mode
- 4 Tutorials
- 5 AT Update firmware
- 6 Forum
- 7 SDK
- 8 Tools
- 9 pins
- 10 Documents
- 11 Example
- 12 Others
- 13 MySQL
- 14 Tool
- 15 Web server
- 16 SPIFFS
- 17 Serial
- 18 two ESP8266 via WiFi
- 19 servo
- 20 UDP
- 21 communication test tool
- 22 Raspberry pi & Node-RED Dashboard
- 23 MQTT Broker
ESP8266 WiFi Module[edit]
Nodemcu[edit]
AP & STA Mode[edit]
Tutorials[edit]
- A Beginner's Guide to the ESP8266 Pieter P, 08-03-2017 - very detailed
- Esp8266 Firmware Update
- ESP8266 WiFi module
- ESP8266 firmware update
- download the special tool application and the firmware itself
AT Update firmware[edit]
- AT application for ESP32 ESP-IDF & ESP32C3 ESP-IDF & ESP8266 ESP8266_RTOS_SDK
- Update(150414) :Flash download tool , Look over here !
- Esp8266 Firmware Update
- ESP8266 Firmware Upgrade or Flashing
- Update the Firmware in Your ESP8266 Wi-Fi Module
- Breadboard and Program an ESP-01 Circuit with the Arduino IDE
- Flashing & Upgrade EPS8266 v1 with ESPRESSIF flash tool - !!!!
- Category:ESP8266_Firmware
- Category:ESP8266_Program
- Esp8266 Firmware Update
Forum[edit]
SDK[edit]
Tools[edit]
- Flash Download Tools
- How To Make ESP8266 as a MQTT Broker
- MQTT Broker on Android | How To Run MQTT Broker in Android
pins[edit]
- File:ESP8266 Pinout Diagrams.pdf

- File:Esp8266-technical reference en.pdf
- File:Arduino-uno-schematic.pdf
Documents[edit]
- File:ESP8266 AT Instruction Set CN v0.30.pdf
- File:Esp8266 at instruction set en v1.5.4 0.pdf
- Documentation
Example[edit]
- Control ESP8266 from anywhere using android app and MQTT - !!!
- ESP8266 Sending Data Over Wi-Fi to another ESP8266 - !!!
Others[edit]
- ESP8266 UDP Send & Receive Example (Step-by-Step Tutorial)
- ESP8266 AP & STA Mode Together (Easy Step-By-Step Tutorial)
- Add Wemos D1 Mini To Arduino IDE And Connect To WiFi
MySQL[edit]
- Insert Data into MySQL Database with ESP8266 Development Board - !!!
- How to Connect ESP8266 TO MYSQL Database Using PHP and Arduino IDE.
- ESP32/ESP8266 Insert Data into MySQL Database using PHP and Arduino IDE
- How to Connect ESP8266 TO MYSQL Database Using PHP and Arduino IDE.
Tool[edit]
- html-online.com
- Localhost (127.0.0.1)
- How to Find the Local Host IP Address
- http://wiki.sunfounder.cc
- AMPPS Stack - !!!
- Top 11 IoT Visual programming tools to develop IoT apps
Web server[edit]
- ESP8266 Web Server using SPIFFS (SPI Flash File System) – NodeMCU - !!!
- Install ESP8266 Filesystem Uploader in Arduino IDE
- html-online editor - '!!!
- ESP8266 DHT11/DHT22 Temperature and Humidity Web Server with Arduino IDE]
- Temperature,Humidity Measurement Using Arduino with ESP8266 © GPL3+
- ESP8266 Arduino Core
- ESP8266 Communication With Server and ESP8266
- The Easiest Way to Send Data from ESP8266 to a Webpage
- Arduino Esp8266 Post Data to Website
SPIFFS[edit]
Serial[edit]
Serial object works much the same way as on a regular Arduino. Apart from hardware FIFO (128 bytes for TX and RX) HardwareSerial has additional 256-byte TX and RX buffers. Both transmit and receive is interrupt-driven. Write and read functions only block the sketch execution when the respective FIFO/buffers are full/empty. Serial uses UART0, which is mapped to pins GPIO1 (TX) and GPIO3 (RX). Serial may be remapped to GPIO15 (TX) and GPIO13 (RX) by calling Serial.swap() after Serial.begin. Calling swap again maps UART0 back to GPIO1 and GPIO3. Serial1 uses UART1, TX pin is GPIO2. UART1 can not be used to receive data because normally it's RX pin is occupied for flash chip connection. To use Serial1, call Serial1.begin(baudrate). By default the diagnostic output from WiFi libraries is disabled when you call Serial.begin. To enable debug output again, call Serial.setDebugOutput(true). To redirect debug output to Serial1 instead, call Serial1.setDebugOutput(true). You also need to use Serial.setDebugOutput(true) to enable output from printf() function. Both Serial and Serial1 objects support 5, 6, 7, 8 data bits, odd (O), even (E), and no (N) parity, and 1 or 2 stop bits. To set the desired mode, call Serial.begin(baudrate, SERIAL_8N1), Serial.begin(baudrate, SERIAL_6E2), etc.
two ESP8266 via WiFi[edit]
- WiFi Communication Between Two ESP8266 Based MCU Through the Home Router - tested, work.
- Communication between two ESP8266 via WiFi - tested, work.
- How To Setup Communication Between Two ESP8266 Using Arduino - need test.
- Client-server communication using ESP8266 - need test.
servo[edit]
- ESP8266 with servo motor | Control servo motor with esp8266 - very basic, tested, ok
- Servo motor interfaced with nodemcu esp8266 12e: Controlling servo motor over WiFi - tested, ok
UDP[edit]
- ESP8266 UDP Send & Receive Example (Step-by-Step Tutorial) - tested.ok
- Communication between two ESP8266s via UDP
- How To Setup Communication Between Two ESP8266 Using Arduino
- ESP-NOW Two-Way Communication Between ESP8266 NodeMCU Boards
- WiFi Communication Between Two ESP8266 Based MCU Through the Home Router
