基础知识专栏

按发布顺序阅读,跨过嵌入式第一道门槛。全部教程含可复制代码、避坑清单与验收标准,零基础友好。

12 篇教程 L1 已完结 每周持续更新

ESP32 vs S2 vs S3 vs C3 vs C6 终极选型指南:2026 极客避坑与全维度实测对比ESP32 vs S2 vs S3 vs C3 vs C6: The Ultimate 2026 Chip Selection Guide with Real-World Testing

全面剖析经典 ESP32、S2、S3、C3、C6 及 CAM 芯片的算力天梯、无线协议(Wi-Fi 6/Matter)、PSRAM 内存瓶颈与引脚硬件陷阱,提供 5 大实战场景精准决策树。Full breakdown of the classic ESP32, S2, S3, C3, C6 and CAM chips: performance ladder, radios (Wi-Fi 6/Matter), PSRAM bottlenecks, pin traps — plus a decision tree for 5 typical projects.

ESP32 GPIO 完全入门:数字引脚、上拉下拉与安全电流一次讲透ESP32 GPIO Complete Beginner Guide: Digital Pins, Pull-ups & Safe Current Limits

零基础搞懂 ESP32 的 GPIO:输入/输出模式、内部上拉下拉电阻、安全电流极限、Strapping 陷阱引脚与 Arduino 实战代码,附避坑速查表。Master ESP32 GPIO from zero: input/output modes, internal pull-up resistors, safe current limits, strapping trap pins and Arduino code with a pitfall cheat sheet.

ESP32 开发环境搭建完全指南:Arduino IDE 安装、板卡配置与烧录避坑(2026 版)ESP32 Dev Environment Setup: Arduino IDE Install, Board Config & Flashing Pitfalls (2026 Edition)

手把手搭建 ESP32 开发环境:Arduino IDE 2.x 安装、ESP32 板支持包添加、CH340/CP2102 驱动、BOOT 烧录模式,含 COM 口不识别等 6 大高频报错排查表。Set up your ESP32 toolchain step by step: Arduino IDE 2.x install, ESP32 board package, CH340/CP2102 drivers, BOOT flash mode — plus a 6-error troubleshooting table.

ESP32 第一个程序实战:读懂 Blink、串口调试与按键控制 LED(含去抖)Your First ESP32 Program: Reading Blink Line by Line, Serial Debugging & Button-controlled LED (with Debounce)

逐行拆解 ESP32 第一个程序:setup/loop 结构、板载 LED 点灯、Serial 串口调试、INPUT_PULLUP 按键检测与软件去抖,附 3 个渐进式实战与验收标准。A line-by-line walkthrough of your first ESP32 program: setup/loop structure, Serial debugging, INPUT_PULLUP button reads and software debouncing — 3 progressive exercises with acceptance criteria.

ESP32 ADC 模拟输入完全入门:analogRead、衰减量程与精度陷阱一次讲透ESP32 ADC Complete Beginner Guide: analogRead, Attenuation Ranges and Accuracy Traps

零基础掌握 ESP32 的 ADC:12 位分辨率、analogRead 用法、衰减与量程换算、ADC2 与 Wi-Fi 互斥、精度校准与噪声过滤,附电池电压监测实战与避坑速查表。Master ESP32 analog input from zero: 12-bit resolution, analogRead usage, attenuation and range conversion, the ADC2/Wi-Fi conflict, calibration and noise filtering — with a battery monitoring project and pitfall cheat sheet.

ESP32 PWM 完全入门:LEDC 通道、呼吸灯、舵机频率与分辨率权衡ESP32 PWM Complete Guide: LEDC Channels, Breathing LEDs, Servo Frequencies and Resolution Trade-offs

从 analogWrite 到 LEDC 底层:16 个 PWM 通道、频率与分辨率的数学关系、呼吸灯实战、舵机 50Hz 与 RGB 灯带控制,附新旧 API 对照与避坑速查表。From analogWrite to the LEDC engine: 16 PWM channels, the frequency/resolution math, a breathing LED project, 50Hz servos and RGB control — with old vs new API tables and a pitfall cheat sheet.

ESP32 中断完全入门:attachInterrupt、ISR 铁律与软硬件去抖实战ESP32 Interrupts Complete Guide: attachInterrupt, ISR Rules and Hardware/Software Debouncing

从轮询到中断的思维跃迁:attachInterrupt 三种触发模式、ISR 编写五条铁律、volatile 与 IRAM_ATTR 的真实含义、RC 硬件去抖电路与软件时间戳去抖,附多任务临界区与避坑速查表。The jump from polling to interrupts: the three trigger modes, five ISR rules, what volatile and IRAM_ATTR really mean, RC debounce circuits and timestamp debouncing — with critical sections and a pitfall cheat sheet.

ESP32 定时器完全入门:millis 非阻塞、Ticker 回调与硬件定时器微秒级精度ESP32 Timers Complete Guide: Non-blocking millis, Ticker Callbacks and Microsecond Hardware Timers

周期性任务的四层武器库:delay 的陷阱、millis() 非阻塞范式、Ticker 轻量回调、硬件定时器微秒级精度与看门狗关系,含多任务调度器雏形与避坑速查表。The four-layer toolbox for periodic tasks: the delay trap, the millis() non-blocking pattern, lightweight Ticker callbacks, microsecond hardware timers and the watchdog — with a selection decision tree and cheat sheet.

ESP32 通信总线完全入门:UART、I2C、SPI 选型与实战(含 I2C 扫描器)ESP32 Communication Buses Guide: UART, I2C and SPI — Selection and Practice (with I2C Scanner)

外设通信三大总线一次讲透:UART 串口透传与引脚重映射、I2C 主从架构与 7 位地址(附扫描器代码)、SPI 速度之王与 CPOL/CPHA,附选型决策树与避坑速查表。All three peripheral buses in one guide: UART transparent bridging and pin remapping, the I2C master-slave architecture and 7-bit addresses (with scanner code), SPI the speed king and CPOL/CPHA — with a selection tree and pitfall cheat sheet.

ESP32 DAC 真模拟输出入门:dacWrite、GPIO25/26 与「假 PWM」的区别ESP32 DAC True Analog Output Guide: dacWrite, GPIO25/26 and the Difference from 'Fake PWM'

DAC 与 PWM 的本质区别、经典 ESP32 的 8 位真模拟输出、dacWrite/ledcWriteAttachedDAC 用法、波形生成与音频入门,含各芯片 DAC 可用性速查。The real difference between DAC and PWM, the classic ESP32's 8-bit true analog outputs, dacWrite usage, waveform generation and an audio primer — with per-chip DAC availability.

ESP32 Web 服务入门:WebServer 网页控制、mDNS 域名与 REST API 接口ESP32 Web Services Guide: WebServer Control, mDNS Names and REST APIs

让手机浏览器直接控制 ESP32:WebServer 托管网页、路由处理与 REST API 设计、mDNS 记忆域名 esp32.local、AJAX 动态刷新与无刷新控制,完成 L2 验收项目。Control an ESP32 from a phone browser: hosting pages with WebServer, routing and REST API design, remembering the esp32.local mDNS name, AJAX dynamic refresh — completing the L2 acceptance project.

ESP32 Wi-Fi 联网第一课:STA/AP 双模式、连接管理与 HTTP 请求实战ESP32 Wi-Fi First Steps: STA/AP Modes, Connection Management and HTTP Requests

从零接通 Wi-Fi:STA/AP/AP+STA 三种工作模式、阻塞与事件驱动两种连接姿势、自动重连与状态机管理、WiFiClient 发起 GET/POST、ArduinoJson 解析 API,附避坑速查表。Get Wi-Fi working from zero: the three operating modes, blocking vs event-driven connection styles, auto-reconnect state management, WiFiClient GET/POST and parsing APIs with ArduinoJson — with a pitfall cheat sheet.

📚 L2 更新中:ADC 模拟输入、PWM 调光已排期(每周更新)· 遇到报错?直达 避坑排错库