Sensors and I/O

RMT LED strip

WS2812-class strips. RMT for timing; EMI for certification.

Sensors and I/O LED strip ESP32 family

Official path: examples/peripherals/rmt/led_strip

01 Overview

RMT builds the strip waveform.

  • Use when: rings, accent lighting.
  • Skip when: a single GPIO lamp (Blink/LEDC).

02 Hardware

  • Strips often need 5V; data may need level shift.
  • Return current decides flicker.
  • Strips are EMI sources in RF tests.

03 Software flow

1. RMT channel and GPIO.

2. Fill GRB buffer.

3. Refresh; do not recompute in an ISR.

04 Core points

  • Power, not code, usually causes sparkle.
  • Custom work: effects, level shift, layout.

中文

传感器与外设

RMT 灯带

WS2812 一类灯带。时序走 RMT,认证时要注意骚扰。

传感器与外设 灯带 ESP32 family

官方路径: examples/peripherals/rmt/led_strip

01 项目概述

用 RMT 发灯带波形。

  • 适用: 状态灯环、装饰灯。
  • 不适用: 普通单色 GPIO 灯(用 Blink/LEDC)。

02 项目硬件描述

  • 灯带 5V 供电常见,数据要电平转换或选 3.3V 容忍灯珠。
  • 大电流回路和地线决定闪不闪。
  • 射频认证时灯带是干扰源。

03 项目软件流程描述

1. 配 RMT 通道和 GPIO。

2. 写 GRB 缓冲区。

3. 刷新;不要在中断里做重计算。

04 项目核心点

  • 电源比代码更容易让灯带花屏。
  • 可定制: 灯效、电平转换、布局。