ESP32-S3 N16R8 how to turn on LED RGB

same on mine, not solded


Good catch and thank you for the post. Saved me hours!

I get a timout error when trying to light the LED strip.

both pads are soldered.

LED as 4.8V ca.
19 LEDs,
num_leds set accordingly to 19.

However:

23:18:57	[D]	[esp-idf:000]	
e[0;31mE (11580) rmt: rmt_tx_wait_all_done(533): invalid argument
23:18:57	[E]	[esp32_rmt_led_strip:154]	
RMT TX timeout

I ordered a WS2812b from amazon.

Whats wrong here?

light:
  - platform: esp32_rmt_led_strip
    id: led_ww
    rgb_order: GRB
    pin: GPIO48
    num_leds: 1
    chipset: ws2812
    name: "On board light"
    effects:
      - pulse:
          name: "Fast Pulse"
          transition_length: 0.5s
          update_interval: 0.5s
          min_brightness: 0%
          max_brightness: 100%

  - platform: esp32_rmt_led_strip
    id: led_strip
    rgb_order: GRB
    pin: GPIO09
    num_leds: 10
    chipset: ws2812
    name: "Led Striptease"
    effects:
      - pulse:
          name: "Fast Pulse"
          transition_length: 0.5s
          update_interval: 0.5s
          min_brightness: 0%
          max_brightness: 100%
      - addressable_scan:
          name: "Scan Effect With Custom Values"
          move_interval: 5ms
          scan_width: 10

When I reverse the two led blocks the onboard led is causing these problems

You have two strips documented, but neither of them have a rmt_channel listed. (Remote Memory Terminal?)

rmt_channel (Required , int): The RMT channel to use. Each LED strip needs to use a unique channel.

That requirement was found on this page:

I don’t know a lot about ESPHome only having a few boards running it with mostly copied code. However, I was playing my YD-ESP32-23, which has the RGB LED and got it working such that I can control it from HA.

Points to note:

  1. the little solder jumper pads labelled RGB next to the LED needs a blob of solder to bridge them.
  2. Code snippets from my working instance
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf

and

light:
  - platform: esp32_rmt_led_strip
    id: my_light  
    rgb_order: GRB
    pin: GPIO48
    num_leds: 1
    chipset: ws2812
    name: "My Light"
    effects:
      - pulse:
          transition_length: 550ms
          update_interval: 550ms
  1. I don’t think the rmt_channel is needed anymore. It threw up a validation error for me and I couldn’t see any mention of it in the esp32_rmt_led_strip documentation.
  2. I don’t think I needed the pulse bit as I don’t use it. I just copied in!
1 Like

The effect section is just as expected an effect. You could create a switch that calls this effect. So look at esphome switch and add some code to make led flash.

Oh and the rmt bit is no longer needed and it’s not supported in esp idf

I just bought from Ali Express another variant of the board and it didn’t have the RGB jumper pads. But it worked out of the box!

Mines got the LED control on GPIO33, found this searching the docs on the esperif website and it was in the schematics

This sketch shows a wide aray of colors if you change the GPIO38 to GPIO48 for the ESP32-S3-WROOM-1 N16R8 MCU 44Pin 8M PSRAM. ESP32 S3 BlinkRGB.ino Advanced Example Sketch - Projects / Showcase - Arduino Forum