XIAO ESP32-C6 PCB Design


Can you add add a 330ohm resistor on the data line between the ESP and the JST connector for the LED strip.
Yes. The board has just been rerouted successfully; I’ll now insert a 330 Ω series resistor between the XIAO data pin and LED connector, place it close to the JST data pin, reroute the affected net, and recheck ERC/DRC.
Added R1, 330 Ω in series between XIAO GPIO21/D3 and the LED JST data pin. It uses a compact 0603 footprint placed on the bottom side near the LED connector.
I also rebuilt the routing after your board resize. Final checks show zero airwires, dangling traces, or open ERC/DRC issues.
What connector do I need to order to place into the J2 holes?
J2 is a JST VH-series, 3-position, 3.96 mm-pitch connector.
For the PCB, order:
  • JST B3P-VH(LF)(SN) — vertical through-hole board header
For the mating cable, order:
  • VHR-3N — 3-position receptacle housing
  • SVH-21T-P1.1 — crimp terminals, one per wire
Pinout:
  1. +5 V
  2. LED data
  3. GND
Use suitably heavy wire for the LED power current; for a 3 A run, approximately 18–20 AWG is appropriate.

Project Specification
Project Overview
Production-intent controller for a 5 V WS2812B LED strip with motion sensing. Status: Review.
Intended Use
Powered by one regulated 5 V wall adapter; controls a board-connected LED strip and reads an MPU-6050.
What the Device Should Do
  • Protect against overcurrent, reverse polarity, and 5 V transients.
  • Run a XIAO ESP32-C6 and 5 V WS2812B output.
  • Read acceleration over I2C and optionally use the IMU interrupt.
  • Keep LED data low during MCU reset.
Main Features
  • 3 A protected 5 V power path.
  • AHCT-compatible 3.3 V-to-5 V data buffering.
  • MPU-6050 at I2C address 0x68.
  • Keyed three-pin LED connector ordered +5V, DATA, GND.
System Architecture
See the Block Diagram project file.
Hardware Subsystems
Power Input & Protection; XIAO ESP32-C6 MCU; MPU-6050 IMU; LED Output.
Interfaces and Connections
External 5 V/GND input, WS2812B +5V/DATA/GND output, internal I2C SDA/SCL and IMU INT.
Power and Runtime Expectations
Regulated 5 V external wall supply rated at least 3 A. No battery.
Power Tree and Power Budget
3 A board ceiling. Approximately 0.5 A electronics reserve and 2.5 A LEDs, approximately 40 pixels at 60 mA full-white worst case. Firmware current/brightness limiting is mandatory. Larger strips require separate power injection.
Manufacturing and Assembly Expectations
SMD electronics with board-mounted pluggable connectors. Power-path connector rating at least 5 A; LED connector rating at least 3 A.
Firmware-Relevant Hardware Requirements
Arduino/PlatformIO support, explicit GPIO mapping, I2C sensor initialization, WS2812B library, brightness/current limiting.
Physical Design Expectations
Connector access and high-current copper are layout-stage requirements. Keep buffer resistor near output and bulk capacitor near strip connector.
Important Design Decisions
Use XIAO onboard 3V3 regulation; no additional regulator. AHCT buffer permanently enabled. AD0 low selects 0x68.
Assumptions
The wall supply is regulated 5 V and can provide 3 A. Strip current above the board ceiling is injected separately.
Change Notes
Initial architecture and requirements captured.
  • Project Overview

  • Intended Use

  • What the Device Should Do

  • Main Features

  • System Architecture

  • Hardware Subsystems

  • Interfaces and Connections

  • Power and Runtime Expectations

  • Power Tree and Power Budget

  • Manufacturing and Assembly Expectations

  • Firmware-Relevant Hardware Requirements

  • Physical Design Expectations

  • Important Design Decisions

  • Assumptions

  • Change Notes