WS2812B Power Consumption
Length | 1m |
LCD RGB (individually addressable) | 30 pcs |
Simple test code:
#include <FastLED.h>
#define LED_PIN 2
#define NUM_LEDS 30
#define BRIGHTNESS 255 //1..255
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
FastLED.setBrightness(BRIGHTNESS );
}
void loop() {
for(int i=0; i<30; i++)
{
leds[i] =CRGB::Red;
FastLED.show();
delay(10);
}
delay(30000);
for(int i=0; i<30; i++)
{
leds[i] =CRGB::Green;
FastLED.show();
delay(10);
}
delay(30000);
for(int i=0; i<30; i++)
{
leds[i] =CRGB::Blue;
FastLED.show();
delay(10);
}
delay(30000);
for(int i=0; i<30; i++)
{
leds[i] =CRGB::White;
FastLED.show();
delay(10);
}
delay(30000);
for(int i=0; i<30; i++)
{
leds[i] =CRGB::Black;
FastLED.show();
delay(10);
}
delay(30000);
}
Red | 30 sec | 0.30 amp |
Green | 30 sec | 0.19 amp |
Blue | 30 sec | 0.32 amp |
White | 30 sec | 0.61 amp |
Black | 30 sec | 0.03 amp |