LED 0805 Resistor Value

For a 2ร—8 matrix = 16 LEDs, donโ€™t drive all LEDs directly one-pin-per-LED unless you have lots of GPIO. Use a multiplexed matrix:
  • 2 row lines
  • 8 column lines
  • 16 LEDs
  • 8 current-limiting resistors, usually one per column
That uses 10 GPIO total.
Typical wiring:

Text


ROW1  โ”€โ”€ LED LED LED LED LED LED LED LED โ”€โ”€ columns
ROW2  โ”€โ”€ LED LED LED LED LED LED LED LED โ”€โ”€ columns

COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8
Use one resistor per column, e.g.:

Text


ESP32 GPIO column pin โ”€โ”€ 150ฮฉ to 330ฮฉ โ”€โ”€ LED column
Then scan rows quickly:
  1. Enable row 1.
  2. Set the 8 column pins for row 1 pattern.
  3. Wait ~0.5โ€“2 ms.
  4. Disable row 1.
  5. Enable row 2.
  6. Set the 8 column pins for row 2 pattern.
  7. Repeat forever.
For ESP32 at 3.3 V with red 0805 LEDs, Iโ€™d start with:
  • 220 ฮฉ if multiplexing and you want decent brightness
  • 330 ฮฉ for safer/lower current
  • 470 ฮฉโ€“1 kฮฉ if they only need to be dim indicators
Important: because each row is only on ~50% of the time, each LED appears dimmer than a continuously driven LED. You can compensate with slightly lower resistors, but keep ESP32 GPIO current limits in mind. For a clean design, use transistor/MOSFET row drivers if more than a few LEDs can be on at once.
Pick LEDs and resistors
Show LED5 schematic
Add row drivers
Compare resistor currents
Check LED5 datasheet
can the data D+ and D- lines connecting usb c to the esp32 module have vias in their traces?


No results...

Credit Card Synth thumbnail
Welcome to your new project. Imagine what you can build here.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$10.77โ€“$10.82

Digi-Key

$21.84โ€“$22.76

HQonline

$1.35

LCSC

$11.40

Mouser

$26.23

TME

$0.00

Verical

$10.23โ€“$24.77

Controls