AMB82-mini not working with only single WS2812B LED

Board : AMB82-mini
Package: 4.1.1-build20260713
SampleCode : WS2812B_Basic
Symptom : only work with WS2812B x4 LEDs, not working with WS2812B x1 LED

— modified sample code to show purely setting only-one WS2812B LED
#include “WS2812B.h”

#define TOTAL_NUM_OF_LED 1
#define NUM_OF_LEDS 1

WS2812B led(SPI_MOSI, TOTAL_NUM_OF_LED);

void setup()
{
Serial.begin(115200);
Serial.println(“WS2812B test”);
led.begin();
}

void loop()
{
led.setPixelColor(0, 50, 0, 0);
led.show();
delay(1000);
led.setPixelColor(0, 0, 50, 0);
led.show();
delay(1000);
led.setPixelColor(0, 0, 0, 50);
led.show();
delay(1000);
}

Could I confirm that is it 4 LED strip, set to use 1 then not working, or only 1 LED direct fail? Thanks

4 LED strip works fine, 1 LED did not work.

Hi @rkuo2000

I have tried with you test code, seems function well for me.
image
image
image

Could you refer to

  • latest SDK

https://github.com/Ameba-AIoT/ameba-arduino-pro2/raw/dev/Arduino_package/package_realtek_amebapro2_early_index.json

  • The connection is here.

Let me know if there is still an issue.

I found the problem is due to voltage drop on Vcc,
because I also add PAM8403 amplifier.
I tried another AMB82-mini board which don’t have voltage drop, then it works fine with

#define TOTAL_NUM_OF_LED 1
#define NUM_OF_LEDS 1

Thanks for the reply.

Yes 5V (Vusb) is the working voltage for ws2812. We can use a fix power for it, if possiable.

Thank you for the effort.