WS2812B 5050 RGB LED Strip 5V DC

kr.65.00kr.195.00 inkl. moms

På lager

WS2812B 5050 RGB LED Strip 5V DC. LED Dioderne kan programmernes enkeltvis.

Vælg mellem: 1 Meter, 5 Meter.

Varenummer (SKU): N/A Kategori: Tags: , , , , ,

WS2812B 5050 RGB LED Strip 5V DC. Denne LED-strimmel er lavet af WS2812B LED’er, der er forbundet i serie. Disse LED’er har en IC indbygget. Dette gør det muligt at kommunikere via en ledningsgrænseflade. Det betyder, at du kan styre den alle enkelvis ved hjælp af kun en digital pin på din Arduino, eller and form for board. Det er også muligt at klippe strimlen over og samle den med noget at de monterings vinkler vi har, dem kan du finde HER.

Tekniske detaljer:

Multicolor WS2812B LED strip
Width: 10mm
Pins: 3 (+, -, Signal)
LED Type: 5050 SMD
LED Quantity: 1M 60LED
Working Voltage: DC 5v
FPC Color: Black
Available Color: Full color
IP Grade: Non-Waterproof
Operating Temperature: -20~+45 degree

Light StripVoltagePixels ControlledBaseline (off)
WS28111230.106
WS2812B510.122
WS2812B Eco510.112
WS2813510.122
WS28151210.293
SK9822510.198
SK6812510.166
Strip TypeBaseline (Chip) Power (Watts)Power Per Channel 25% Brightness (Watts)Power Per Channel Full Brightness (Watts)Power per RGB Chip (Watts)Power Single Channel Entire StripPower Entire Strip (Watts)Power Entire Strip Corrected for Voltage Drop (Watts)
WS28111.2720.0160.0640.18410.4419.6828.872
WS2812B0.610.0150.060.188.613.6527.61
WS2812B Eco0.560.020.060.1658.46513.2525.31
WS28130.610.0250.0850.2410.3512.1536.61
WS28153.5160.0240.120.1220.23220.18421.516
SK98220.990.030.10.2659.6812.2540.74
SK68120.830.0150.050.2257.6314.434.58

Forsyninger som passer til:

Controller som passer til:

Installere Arduino IDE Software

Før du kan starte din programmering skal Arduino’s IDE software hentes. Dette program bruges til at programmere chippen.
Download fra dette link: Download

Installere FastLED Library

  • Download library (Download)
  • Udpak filer
  • Flyt/kopir mappen “FastLED-master” til  “libraries” som findes i “Arduino IDE” mappen (C:Program Files (x86)/Arduino/libraries)
  • Åben Arduino IDE software og klik på “Sketch/Include library”
  • Klik nu på “Add Zip. library” og find Zip filen du lige har downloaded.
  • Åben “Sketch/Include library/Manage Librarys” for at opdatere library.
  • Luk, og åben Arduino IDE programmet. (Genstart programmet)
  • Nu er “FastLED-master” installeret

Programmering

Inden programmeringen kan udføres skal den rigtige “COM” port findes. Klik “Værktøj/Port” – og vælg COM port.

Eksempel

Her viser vi et hurtig eksempel på hvordan du får LED stripsen til at vise forskellige farver.

Du skal bruge:

Forbind sådan:

  • Arduino “GND” -> LED Strips “GND/Hvid”
  • Arduino “Pin 5”-> LED Strips “D0/Grøn”
  • Arduino “5V”-> LED Strips “5V/Rød”

Info: De 3 ledninger “Rød=+”, “Hvid=GND” og “Grøn=Signal”.

Kode

#include <FastLED.h>

#define LED_PIN     3
#define NUM_LEDS    60
#define BRIGHTNESS  64
#define LED_TYPE    WS2811
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];

#define UPDATES_PER_SECOND 100

CRGBPalette16 currentPalette;
TBlendType    currentBlending;

extern CRGBPalette16 myRedWhiteBluePalette;
extern const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM;

void setup() {
delay( 3000 ); // power-up safety delay
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.setBrightness(  BRIGHTNESS );

currentPalette = RainbowColors_p;
currentBlending = LINEARBLEND;
}

void loop()
{
ChangePalettePeriodically();

static uint8_t startIndex = 0;
startIndex = startIndex + 1; /* motion speed */

FillLEDsFromPaletteColors( startIndex);

FastLED.show();
FastLED.delay(1000 / UPDATES_PER_SECOND);
}

void FillLEDsFromPaletteColors( uint8_t colorIndex)
{
uint8_t brightness = 255;

for( int i = 0; i < NUM_LEDS; i++) {
leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
colorIndex += 3;
}
}

void ChangePalettePeriodically()
{
uint8_t secondHand = (millis() / 1000) % 60;
static uint8_t lastSecond = 99;

if( lastSecond != secondHand) {
lastSecond = secondHand;
if( secondHand ==  0)  { currentPalette = RainbowColors_p;         currentBlending = LINEARBLEND; }
if( secondHand == 10)  { currentPalette = RainbowStripeColors_p;   currentBlending = NOBLEND;  }
if( secondHand == 15)  { currentPalette = RainbowStripeColors_p;   currentBlending = LINEARBLEND; }
if( secondHand == 20)  { SetupPurpleAndGreenPalette();             currentBlending = LINEARBLEND; }
if( secondHand == 25)  { SetupTotallyRandomPalette();              currentBlending = LINEARBLEND; }
if( secondHand == 30)  { SetupBlackAndWhiteStripedPalette();       currentBlending = NOBLEND; }
if( secondHand == 35)  { SetupBlackAndWhiteStripedPalette();       currentBlending = LINEARBLEND; }
if( secondHand == 40)  { currentPalette = CloudColors_p;           currentBlending = LINEARBLEND; }
if( secondHand == 45)  { currentPalette = PartyColors_p;           currentBlending = LINEARBLEND; }
if( secondHand == 50)  { currentPalette = myRedWhiteBluePalette_p; currentBlending = NOBLEND;  }
if( secondHand == 55)  { currentPalette = myRedWhiteBluePalette_p; currentBlending = LINEARBLEND; }
}
}

// This function fills the palette with totally random colors.
void SetupTotallyRandomPalette()
{
for( int i = 0; i < 16; i++) {
currentPalette[i] = CHSV( random8(), 255, random8());
}
}

void SetupBlackAndWhiteStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;

}

// This function sets up a palette of purple and green stripes.
void SetupPurpleAndGreenPalette()
{
CRGB purple = CHSV( HUE_PURPLE, 255, 255);
CRGB green  = CHSV( HUE_GREEN, 255, 255);
CRGB black  = CRGB::Black;

currentPalette = CRGBPalette16(
green,  green,  black,  black,
purple, purple, black,  black,
green,  green,  black,  black,
purple, purple, black,  black );
}

const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM =
{
CRGB::Red,
CRGB::Gray, // 'white' is too bright compared to red and blue
CRGB::Blue,
CRGB::Black,

CRGB::Red,
CRGB::Gray,
CRGB::Blue,
CRGB::Black,

CRGB::Red,
CRGB::Red,
CRGB::Gray,
CRGB::Gray,
CRGB::Blue,
CRGB::Blue,
CRGB::Black,
CRGB::Black
};

 

Download

Kontakt os

Du er altid velkommen til at kontakte os på info@ardustore.dk, eller sende os en besked via messenger (Klik her) og vi vil hjælpe dig.

Yderligere information

WS2812B LED Strip

1 Meter, 3 Meter, 5 Meter

Anmeldelser

Der er endnu ikke nogle anmeldelser.

Vær den første til at anmelde “WS2812B 5050 RGB LED Strip 5V DC”

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *