WS2812 16x5050 RGB LED Ring Lamp Light (SMD5050) [D065]




https://www.youtube.com/watch?v=eHAzBD8xm7E


*GitHubhttps://github.com/rdiot/rdiot-d065.git


* Specs

Voltage:DC4-7V

Communication  interface:Single-wire communication

LED Chip:WS2812B

Inside Diameter :3.2 cm

Outside Diameter: 4.5 cm



* Contents

// DC4~7V (5V)

Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800);


- Connect

5V ----- 5V

DI ----- D6

GND ----- GND


- Library : https://github.com/adafruit/Adafruit_NeoPixel

- Test Example : standard


- Key Code

#include <Adafruit_NeoPixel.h>

 

#define PIN 6

 

// Parameter 1 = number of pixels in strip

// Parameter 2 = Arduino pin number (most are valid)

// Parameter 3 = pixel type flags, add together as needed:

//   NEO_KHZ800  800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)

//   NEO_KHZ400  400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)

//   NEO_GRB     Pixels are wired for GRB bitstream (most NeoPixel products)

//   NEO_RGB     Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)

Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800);

 

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across

// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input

// and minimize distance between Arduino and first pixel.  Avoid connecting

// on a live circuit...if you must, connect GND first.

 

void setup() {

  strip.begin();

  strip.show(); // Initialize all pixels to 'off'

}

 

void loop() {

  // Some example procedures showing how to display to the pixels:

  colorWipe(strip.Color(255, 0, 0), 50); // Red

  colorWipe(strip.Color(0, 255, 0), 50); // Green

  colorWipe(strip.Color(0, 0, 255), 50); // Blue

  // Send a theater pixel chase in...

  theaterChase(strip.Color(127, 127, 127), 50); // White

  theaterChase(strip.Color(127,   0,   0), 50); // Red

  theaterChase(strip.Color(  0,   0, 127), 50); // Blue

 

  rainbow(20);

  rainbowCycle(20);

  theaterChaseRainbow(50);

}

 

// Fill the dots one after the other with a color

void colorWipe(uint32_t c, uint8_t wait) {

  for(uint16_t i=0; i<strip.numPixels(); i++) {

      strip.setPixelColor(i, c);

      strip.show();

      delay(wait);

  }

}

 

void rainbow(uint8_t wait) {

  uint16_t i, j;

 

  for(j=0; j<256; j++) {

    for(i=0; i<strip.numPixels(); i++) {

      strip.setPixelColor(i, Wheel((i+j) & 255));

    }

    strip.show();

    delay(wait);

  }

}

 

// Slightly different, this makes the rainbow equally distributed throughout

void rainbowCycle(uint8_t wait) {

  uint16_t i, j;

 

  for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel

    for(i=0; i< strip.numPixels(); i++) {

      strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));

    }

    strip.show();

    delay(wait);

  }

}

 

//Theatre-style crawling lights.

void theaterChase(uint32_t c, uint8_t wait) {

  for (int j=0; j<10; j++) {  //do 10 cycles of chasing

    for (int q=0; q < 3; q++) {

      for (int i=0; i < strip.numPixels(); i=i+3) {

        strip.setPixelColor(i+q, c);    //turn every third pixel on

      }

      strip.show();

     

      delay(wait);

     

      for (int i=0; i < strip.numPixels(); i=i+3) {

        strip.setPixelColor(i+q, 0);        //turn every third pixel off

      }

    }

  }

}

 

//Theatre-style crawling lights with rainbow effect

void theaterChaseRainbow(uint8_t wait) {

  for (int j=0; j < 256; j++) {     // cycle all 256 colors in the wheel

    for (int q=0; q < 3; q++) {

        for (int i=0; i < strip.numPixels(); i=i+3) {

          strip.setPixelColor(i+q, Wheel( (i+j) % 255));    //turn every third pixel on

        }

        strip.show();

       

        delay(wait);

       

        for (int i=0; i < strip.numPixels(); i=i+3) {

          strip.setPixelColor(i+q, 0);        //turn every third pixel off

        }

    }

  }

}

 

// Input a value 0 to 255 to get a color value.

// The colours are a transition r - g - b - back to r.

uint32_t Wheel(byte WheelPos) {

  if(WheelPos < 85) {

   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);

  } else if(WheelPos < 170) {

   WheelPos -= 85;

   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);

  } else {

   WheelPos -= 170;

   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);

  }

}

Posted by RDIoT
|

6bits Multicolor Rapid Prototyping LED [D050]



https://www.youtube.com/watch?v=CSUq8nZIrKM


*GitHubhttps://github.com/rdiot/rdiot-d050.git


* Specs

2.54MM PIN 6 Digitals LED Board ,Can be inserted directly into Arduiuo UNO MEGA2560 DUE  Board ,Ideal for linking up to your Arduiuo UNO Pro Mini Nano Mega2560 DUE  Development  Board  etc,or others MCU  Embedded development board  (AVR STM32 STM8 STM0 ARM7 ARM9 ARM11 PIC C8051 C51 STC MSP430 FPGA/CPLD etc.) 


6 bit    6 colors   Common Cathode LEDs.

Multicolor are White Blue Chartreuse Yellow Pink Red.

7 PIN OUT  2.54mm

1K ohm   Limiting resistor

Power Supply Voltage: 3.3-12V

LED &  Resistor Package : 0603

Size: 17.78MM x 11.43MM


* Contents

- Key Code

int D1 = 13;//White

int D2 = 12;//Blue

int D3 = 11;//Chartreuse

int D4 = 10;//Yellow

int D5 = 9;//Pink

int D6 = 8;//Red

 

int GND = 7;//GND

int D11 = 6;//White

int D12 = 5;//Blue

int D13 = 4;//Chartreuse

int D14 = 3;//Yellow

int D15 = 2;//Pink

int D16 = 1;//Red

 

int i;


void setup() {                

pinMode(D1, OUTPUT);   

pinMode(D2, OUTPUT); 

pinMode(D3, OUTPUT);  

pinMode(D4, OUTPUT);  

pinMode(D5, OUTPUT);  

pinMode(D6, OUTPUT); 

 

pinMode(D11, OUTPUT);   

pinMode(D12, OUTPUT); 

pinMode(D13, OUTPUT);  

pinMode(D14, OUTPUT);  

pinMode(D15, OUTPUT);  

pinMode(D16, OUTPUT);  

pinMode(GND, OUTPUT);  

digitalWrite(GND, LOW); 

}

 

 

// the loop routine runs over and over again forever:

void loop() {

  

  //White LED light than any other color lights, so reducing the brightness

  for(i=0;i< ms_cnt/6;i++)

  {

  digitalWrite(D1, HIGH);   

  delay(1);              

  digitalWrite(D1, LOW);    

  delay(5);               

  }

  

  digitalWrite(D2, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(ms_cnt);               // wait for a Millisecond

  digitalWrite(D2, LOW);    // turn the LED off by making the voltage LOW

  

  digitalWrite(D3, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(ms_cnt);               // wait for a Millisecond

  digitalWrite(D3, LOW);    // turn the LED off by making the voltage LOW

 

  digitalWrite(D4, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(ms_cnt);               // wait for a Millisecond

  digitalWrite(D4, LOW);    // turn the LED off by making the voltage LOW

  

  digitalWrite(D5, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(ms_cnt);               // wait for a Millisecond

  digitalWrite(D5, LOW);    // turn the LED off by making the voltage LOW

  

  digitalWrite(D6, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(ms_cnt);               // wait for a Millisecond

  digitalWrite(D6, LOW);    // turn the LED off by making the voltage LOW

  

  //White LED light than any other color lights, so reducing the brightness

  for(i=0;i< ms_cnt/6;i++)

  {

    digitalWrite(D11, HIGH);   

    delay(1);              

    digitalWrite(D11, LOW);    

    delay(5);               

  } 


  digitalWrite(D12, HIGH); 

  delay(ms_cnt); 

  digitalWrite(D12, LOW); 

  

  digitalWrite(D13, HIGH); 

  delay(ms_cnt);

  digitalWrite(D13, LOW); 

 

  digitalWrite(D14, HIGH); 

  delay(ms_cnt); 

  digitalWrite(D14, LOW); 

  

  digitalWrite(D15, HIGH); 

  delay(ms_cnt); 

  digitalWrite(D15, LOW); 

  

  digitalWrite(D16, HIGH); 

  delay(ms_cnt); 

  digitalWrite(D16, LOW); 

}

Posted by RDIoT
|

12V 360 Degree 5050 SMD Red (SMD5050) [D045]




https://www.youtube.com/watch?v=gw9pWSLNhes


* Specs

Brand new and high quality

Super Bright 5 SMD 5050 LED Chip

Low power consumption and ultra long life

Easy to install, simply to replace, convenient using

Can replacement of turn signal light, corner light, parking light, side marker light, tail light, and backup lights

Easy to replace Standard

194 168 501 W5W 147 152 158 159 161 184 192 193 259 280 285 447 464 555 558 585 655 656 657 1250 1251 1252 2450 2652 2921 2825

Wedge base Model which is a small bulb

Bulb Model: T10

Power Supply: DC 12V/1W

Dimensions: 1.1 in x 0.43 in x 0.43 in (28 mm x 11 mm x 11 mm)

Posted by RDIoT
|