'3) Actuator'에 해당되는 글 92건

  1. 2016.09.21 LCD Keypad Shield Green (LCD1602) [D043]
  2. 2016.09.21 LCD Keypad Shield (LCD1602) [D038]
  3. 2016.09.21 LCD2004 I2C Green (LCD2004A) [D046]
  4. 2016.09.21 LCD2004 I2C ( LCD2004A) [D017]
  5. 2016.09.21 LCD1602 I2C (LCD1602) [D016]
  6. 2016.09.21 LCD1602 (HD44780) [D002]
  7. 2016.09.21 12V LED Strip SMD5630 Warm White Waterproof (SMD5630) [D041]
  8. 2016.09.21 12V RGB LED Strip SMD5050 (SMD5050) [D031]
  9. 2016.09.21 12V RGB LED SMD3528 + Key IR (SMD3528,KeyIR) [D030]
  10. 2016.09.21 4x4x4 3D LED Cube [D062]
  11. 2016.09.21 MAX7219 Dot Matrix Module (MAX7219) [D057]
  12. 2016.09.21 8x8 LED dot Matrix (1588AS) [D015]
  13. 2016.09.21 NeoPixel Stick - 8 x WS2812 (5050RGB) [D009]
  14. 2016.09.21 WS2812 16x5050 RGB LED Ring Lamp Light (SMD5050) [D065]
  15. 2016.09.21 6bits Multicolor Rapid Prototyping LED [D050]
  16. 2016.09.21 12V 360 Degree 5050 SMD Red (SMD5050) [D045]
  17. 2016.09.21 SMD5730 E27 24LED 30W Warm White (SMD5730) [D052]
  18. 2016.09.19 3LED 5050 SMD Module Pure Warm White (SMD5050) [D061]
  19. 2016.09.19 White LED Backlight Module [D068]
  20. 2016.09.19 LED G4 Lamp Bulb ACDC12V 2W AC220V Warm White [D060]
  21. 2016.09.19 12V 4W 48 COB LED Lamp Light [D078]
  22. 2016.09.19 Arrow Indicator 14 SMD LED Blue [D077]
  23. 2016.09.19 Bargraph Segment LED Module (SHB10R) [D024]
  24. 2016.09.18 Magic Cup Light Module (KY-027) [D020]
  25. 2016.09.18 RGB LED Module SMD (KY-009) [D008]
  26. 2016.09.18 RGB LED Module DIP (KY-016) [D007]
  27. 2016.09.18 RGB LED (BL-L515) [D006]
  28. 2016.09.18 7 color flash LED Module (KY-034) [D010]
  29. 2016.09.18 2 Color(R,G) LED Module (KY-011) [D005]
  30. 2016.09.12 32x64 RGB LED Matrix P4 (LM-P4-SMD-RGB-LED) Basic Test [D025]

LCD Keypad Shield Green (LCD1602) [D043]



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


*GitHub : https://github.com/rdiot/rdiot-d043.git


* Specs

Useful LCD display for Arduino with 16 symbols and 2 lines. Display background LED is connected to potentiometer regulating screen  brightness and contrast. You can control switching on/off with sketch.

Display has GREEN color.

LCD display uses standard HD44780-compatible driver. Arduino "LiquidCrystal" library is used for display programming and can be found in Arduino IDE  coding environment. You can use standard characters or make your own characters.

LCD display uses digital Arduino digital outputs: 4, 5, 6, 7, 8, 9.

Initialization string in sketch seems as: LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

: ( RS - D8; Enable - D9; LCD4 - D4; LCD5 - D5; LCD6 - D6; LCD7 - D7)

Under LCD there are 5 navigation buttons: Up, Down, Left, Right.

Option. Buttons are connected with A0 analog input only, so you can monitor button status using just one Arduino input. Pay attention: status monitoring is unavailable when several buttons are pressed.

Shield includes  blocks of digital and analog inputs/outputs and also it has A1-A5 analog input blocks (5V/GND/IN) for quick connection to periphery.

Shield is powered with Arduino 5V output. 

'3) Actuator > LCD' 카테고리의 다른 글

84x84 Nokia 5110 LCD Module (LCD5110) [D055]  (0) 2016.09.21
LCD 4002 Blue (ERM4002SBS-1) [D051]  (0) 2016.09.21
LCD Keypad Shield (LCD1602) [D038]  (0) 2016.09.21
LCD2004 I2C Green (LCD2004A) [D046]  (0) 2016.09.21
LCD2004 I2C ( LCD2004A) [D017]  (0) 2016.09.21
Posted by RDIoT
|

LCD Keypad Shield (LCD1602) [D038]



https://www.youtube.com/watch?v=gnCqb5Q-FQo


*GitHub https://github.com/rdiot/rdiot-d038.git


* Contents

- Pin Out : https://www.dfrobot.com/wiki/images/thumb/5/5e/DFR0009-PIN2.png/900px-DFR0009-PIN2.png

- Ref Url : http://www.dfrobot.com/wiki/index.php/LCD_KeyPad_Shield_For_Arduino_SKU:_DFR0009

- Key Code (Left -> ..)

#include <LiquidCrystal.h>

 

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);           // select the pins used on the LCD panel

 

// define some values used by the panel and buttons

int lcd_key     = 0;

int adc_key_in  = 0;

 

#define btnRIGHT  0

#define btnUP     1

#define btnDOWN   2

#define btnLEFT   3

#define btnSELECT 4

#define btnNONE   5

 

int read_LCD_buttons(){               // read the buttons

    adc_key_in = analogRead(0);       // read the value from the sensor 

 

    // my buttons when read are centered at these valies: 0, 144, 329, 504, 741

    // we add approx 50 to those values and check to see if we are close

    // We make this the 1st option for speed reasons since it will be the most likely result

 

    if (adc_key_in > 1000) return btnNONE; 

 

    // For V1.1 us this threshold

    //if (adc_key_in < 50)   return btnRIGHT;  

    //if (adc_key_in < 250)  return btnUP; 

    //if (adc_key_in < 450)  return btnDOWN; 

    //if (adc_key_in < 650)  return btnLEFT; 

    //if (adc_key_in < 850)  return btnSELECT;  

 

   // For V1.0 comment the other threshold and use the one below:

   

     if (adc_key_in < 50)   return btnRIGHT;  

     if (adc_key_in < 195)  return btnUP; 

     if (adc_key_in < 380)  return btnDOWN; 

     if (adc_key_in < 555)  return btnLEFT; 

     if (adc_key_in < 790)  return btnSELECT;   


    return btnNONE;                // when all others fail, return this.

}

 

void setup(){

   lcd.begin(16, 2);               // start the library

   lcd.setCursor(0,0);             // set the LCD cursor   position 

   lcd.print("D038 - Push BTNs");  // print a simple message on the LCD

}

  

void loop(){

   lcd.setCursor(9,1);             // move cursor to second line "1" and 9 spaces over

   lcd.print(millis()/1000);       // display seconds elapsed since power-up

 

   lcd.setCursor(0,1);             // move to the begining of the second line

   lcd_key = read_LCD_buttons();   // read the buttons

 

   switch (lcd_key){               // depending on which button was pushed, we perform an action

 

       case btnRIGHT:{             //  push button "RIGHT" and show the word on the screen

            lcd.print("RIGHT ");

            break;

       }

       case btnLEFT:{

             lcd.print("LEFT   "); //  push button "LEFT" and show the word on the screen

             break;

       }    

       case btnUP:{

             lcd.print("UP    ");  //  push button "UP" and show the word on the screen

             break;

       }

       case btnDOWN:{

             lcd.print("DOWN  ");  //  push button "DOWN" and show the word on the screen

             break;

       }

       case btnSELECT:{

             lcd.print("SELECT");  //  push button "SELECT" and show the word on the screen

             break;

       }

       case btnNONE:{

             lcd.print("NONE  ");  //  No action  will show "None" on the screen

             break;

       }

   }

}


- Key Code (Sensor Value)

#include <LiquidCrystal.h>

 

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);        // select the pins used on the LCD panel

 

unsigned long tepTimer ;   

 

void setup(){

    lcd.begin(16, 2);                       // start the library

}

 

void loop(){

    lcd.setCursor(0, 0);                   // set the LCD cursor   position

    int val;                               // variable to store the value coming from the analog pin

    double data;                           // variable to store the temperature value coming from the conversion formula

    val=analogRead(1);                     // read the analog in value:

    data = (double) val * (5/10.24);       // temperature conversion formula

     

    if(millis() - tepTimer > 500){         // output a temperature value per 500ms

             tepTimer = millis();

 

             // print the results to the lcd

             lcd.print("T: ");              

             lcd.print(data);            

             lcd.print("C");             

     }

}

'3) Actuator > LCD' 카테고리의 다른 글

LCD 4002 Blue (ERM4002SBS-1) [D051]  (0) 2016.09.21
LCD Keypad Shield Green (LCD1602) [D043]  (0) 2016.09.21
LCD2004 I2C Green (LCD2004A) [D046]  (0) 2016.09.21
LCD2004 I2C ( LCD2004A) [D017]  (0) 2016.09.21
LCD1602 I2C (LCD1602) [D016]  (0) 2016.09.21
Posted by RDIoT
|

LCD2004 I2C Green (LCD2004A) [D046]



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


*GitHub : https://github.com/rdiot/rdiot-d046.git

* Contents

- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x20 for a 16 chars and 2 line display

 

void setup()

{

  lcd.init();                      // initialize the lcd 

  // Print a message to the LCD.

  lcd.backlight();

  lcd.setCursor(4,0);

  lcd.print("Hello, World");

  lcd.setCursor(2,1);

  lcd.print("LCD2004 I2C TEST");

   lcd.setCursor(0,2);

  lcd.print("Arduino LCM IIC 2004");

   lcd.setCursor(2,3);

  lcd.print("Always thank you.");

}

'3) Actuator > LCD' 카테고리의 다른 글

LCD Keypad Shield Green (LCD1602) [D043]  (0) 2016.09.21
LCD Keypad Shield (LCD1602) [D038]  (0) 2016.09.21
LCD2004 I2C ( LCD2004A) [D017]  (0) 2016.09.21
LCD1602 I2C (LCD1602) [D016]  (0) 2016.09.21
LCD1602 (HD44780) [D002]  (0) 2016.09.21
Posted by RDIoT
|

LCD2004 I2C ( LCD2004A) [D017]



https://www.youtube.com/watch?v=Yt-eYSfoH1M


*GitHub : https://github.com/rdiot/rdiot-d017.git



* Contents

- DataSheet : http://www.elecrow.com/download/2004%20Datasheet.pdf

- Connect

GND  ------------------  GND

VCC  ------------------   5V

SDA  ------------------   A4

SCL  ------------------   A5

: Mega(SDA-D20, SCL-D21), Leo(SDA-D2, SCL-D3)


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x20 for a 16 chars and 2 line display

 

void setup()

{

  lcd.init();                      // initialize the lcd 

  // Print a message to the LCD.

  lcd.backlight();

  lcd.setCursor(4,0);

  lcd.print("Hello, World");

  lcd.setCursor(2,1);

  lcd.print("LCD2004 I2C TEST");

   lcd.setCursor(0,2);

  lcd.print("Arduino LCM IIC 2004");

   lcd.setCursor(2,3);

  lcd.print("Always thank you.");

}

'3) Actuator > LCD' 카테고리의 다른 글

LCD Keypad Shield Green (LCD1602) [D043]  (0) 2016.09.21
LCD Keypad Shield (LCD1602) [D038]  (0) 2016.09.21
LCD2004 I2C Green (LCD2004A) [D046]  (0) 2016.09.21
LCD1602 I2C (LCD1602) [D016]  (0) 2016.09.21
LCD1602 (HD44780) [D002]  (0) 2016.09.21
Posted by RDIoT
|

LCD1602 I2C (LCD1602) [D016]



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


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



* Contents

- Connect

GND  ------------------  GND

VCC  ------------------   5V

SDA  ------------------   A4 

SCL  ------------------   A5 

: Mega(SDA-D20, SCL-D21), Leo(SDA-D2, SCL-D3)


- DataSheet : http://www.elecrow.com/download/LCD1602.pdf


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x20 for a 16 chars and 2 line display

 

void setup()

{

  lcd.init();                      // initialize the lcd 

 

  // Print a message to the LCD.

  lcd.backlight();

  lcd.print("Hello, world!");

  

  lcd.setCursor(0, 1);

 

  lcd.print("cursor 0,1");

}

'3) Actuator > LCD' 카테고리의 다른 글

LCD Keypad Shield Green (LCD1602) [D043]  (0) 2016.09.21
LCD Keypad Shield (LCD1602) [D038]  (0) 2016.09.21
LCD2004 I2C Green (LCD2004A) [D046]  (0) 2016.09.21
LCD2004 I2C ( LCD2004A) [D017]  (0) 2016.09.21
LCD1602 (HD44780) [D002]  (0) 2016.09.21
Posted by RDIoT
|

LCD1602 (HD44780) [D002]



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


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


* Contents

- DataSheet : http://www.elecrow.com/download/LCD1602.pdf

- Connect

LiquidCrystal lcd(9, 8, 7, 6, 5, 4);

/*

[LCD Pin Number][BreadBoard][Arduino]

1.  Vss------------------ - GND------------------ - GND  ---> GND

2.  Vdd------------------ - VCC------------------ - 5V   ---> 5V (+)

3.  V0------------------ - GND                           ---> R4.7K

4.  RS----------------------------------------------------D13  ------------> RS D9

5.  RW------------------ - GND                           ------------> GND

6.  E----------------------------------------------------D12   ------------> RS D8

7.  DB0(X)

8.  DB1(X)

9.  DB2(X)

10. DB3(X)

11  DB4----------------------------------------------------D11 ----------> 7

12  DB5----------------------------------------------------D10 ----------> 6

13  DB6----------------------------------------------------D9  ----------> 5

14  DB7----------------------------------------------------D8  ----------> 4

15  LEDA------------------ - VCC                         -----> R220 ---- VCC

16  LEDK------------------ - GND                         -----> GND

*/


- Test Example : SerialDisplay

'3) Actuator > LCD' 카테고리의 다른 글

LCD Keypad Shield Green (LCD1602) [D043]  (0) 2016.09.21
LCD Keypad Shield (LCD1602) [D038]  (0) 2016.09.21
LCD2004 I2C Green (LCD2004A) [D046]  (0) 2016.09.21
LCD2004 I2C ( LCD2004A) [D017]  (0) 2016.09.21
LCD1602 I2C (LCD1602) [D016]  (0) 2016.09.21
Posted by RDIoT
|

12V LED Strip SMD5630 Warm White Waterproof (SMD5630) [D041]



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


* Specs

Emitting Color:Red/green/Blue/White/warn white

Light source:3528/5630/5050 SMD LED

Input voltage:12 V DC

IP Grade: waterproof

lifespan: > 50,000 hours

Certification: CE & RoHS

Posted by RDIoT
|

12V RGB LED Strip SMD5050 (SMD5050) [D031]



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


* Specs

Product Features:

Superb right 3528/5050/5630/3014/2835 SMD LED, high intensity and reliability.

Long life span 50,000 hours

Continuous length, packed with 5 meter.

Flexible ribbon for curving around bends

Completely smooth and even light spread, solving the uneven luminous problem

Ultra-bright but running at low temperature

Low power consumption


Specifications:

Emit Color: White / Warm White / Blue / Green /Red/RGB

Protection Rate  NOT Waterproof

Working Voltage: 12V DC

LED Quantity: 60leds / m, 5meter / roll

View angle: 120 ° ~ 140 °

Working Temperature: -20 ° to 50


Application:

Ideal for decoration of building outlines, landscape illumination, amusement themes,

Holiday light sculpture, decorative figure, active signs, displays, shop windows

And storefronts, bar, nightclub, street, sidewalk, deck, park, porch, staircase, railing, ceiling, or drivewa



Posted by RDIoT
|

12V RGB LED SMD3528 + Key IR (SMD3528,KeyIR) [D030]





Basic Test : https://www.youtube.com/watch?v=wracHLMHrPg


Living Room : https://www.youtube.com/watch?v=GdqXGmqFqMQ


* Specs

Item Type:Strip

Average Life (hrs):25000

Waterproof:No

Voltage:12V

Power Source:DC

Power Consumption (W/m):4W/m

Model Number:3528-5

LED Chip Brand:Epistar

LED Chip Model:SMD3528

Certification:CCC,CE,CQC

Occasion:living room

Strip type:SMD

LEDs Number/M:60 pcs/m

Specifications (light beads / m):Other


Package includes:

RGB set:

1x No waterproof 3582 RGB led strip light

1x IR Remote Controller

1x IR Receiver

1x 12V 2A Power Adapter

Single Color(White,Warm white,Red,Green,Blue,Yellow) set:

1X No waterproof 3528 single color led strip

1X 12V 2A power adapter

1X Female Connector


* Contents

- Connect

White - 12V

Green - 

Red - 

Blue - 


- IR Code : http://woodsgood.ca/projects/2015/02/13/rgb-led-strip-controllers-ir-codes/

Posted by RDIoT
|

4x4x4 3D LED Cube [D062]




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


* Specs

service voltage:5V

size:80*120mm

light cube shipping list:

PCB board *1

blue color ultra bright LED long legs *70

5MM red led nightlights*4

 USB power  line *1

USB seat *1

STC12C5A60S2 burn written procedures *1

22.1184M crystal vibration *1

40 p chip base *1

20 p round line of mother*1

Posted by RDIoT
|

MAX7219 Dot Matrix Module (MAX7219) [D057]




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


* Specs

MAX7219 Dot matrix module display module DIY kit SCM control module


* Contents

- Key Code (Ref : https://brainy-bits.com/tutorials/how-to-control-max7219-led-matrix/)

nt dataIn = 12;

int load = 10;

int clock = 11;

 

int maxInUse = 4;    //change this variable to set how many MAX7219's you'll use

 

int e = 0;           // just a variable

 

// define max7219 registers

byte max7219_reg_noop        = 0x00;

byte max7219_reg_digit0      = 0x01;

byte max7219_reg_digit1      = 0x02;

byte max7219_reg_digit2      = 0x03;

byte max7219_reg_digit3      = 0x04;

byte max7219_reg_digit4      = 0x05;

byte max7219_reg_digit5      = 0x06;

byte max7219_reg_digit6      = 0x07;

byte max7219_reg_digit7      = 0x08;

byte max7219_reg_decodeMode  = 0x09;

byte max7219_reg_intensity   = 0x0a;

byte max7219_reg_scanLimit   = 0x0b;

byte max7219_reg_shutdown    = 0x0c;

byte max7219_reg_displayTest = 0x0f;

 

void putByte(byte data) {

  byte i = 8;

  byte mask;

  while(i > 0) {

    mask = 0x01 << (i - 1);      // get bitmask

    digitalWrite( clock, LOW);   // tick

    if (data & mask){            // choose bit

      digitalWrite(dataIn, HIGH);// send 1

    }else{

      digitalWrite(dataIn, LOW); // send 0

    }

    digitalWrite(clock, HIGH);   // tock

    --i;                         // move to lesser bit

  }

}

 

void maxSingle( byte reg, byte col) {    

//maxSingle is the "easy"  function to use for a single max7219

 

  digitalWrite(load, LOW);       // begin    

  putByte(reg);                  // specify register

  putByte(col);//((data & 0x01) * 256) + data >> 1); // put data  

  digitalWrite(load, LOW);       // and load da stuff

  digitalWrite(load,HIGH);

}

 

void maxAll (byte reg, byte col) {    // initialize  all  MAX7219's in the system

  int c = 0;

  digitalWrite(load, LOW);  // begin    

  for ( c =1; c<= maxInUse; c++) {

  putByte(reg);  // specify register

  putByte(col);//((data & 0x01) * 256) + data >> 1); // put data

    }

  digitalWrite(load, LOW);

  digitalWrite(load,HIGH);

}

 

void maxOne(byte maxNr, byte reg, byte col) {    

//maxOne is for addressing different MAX7219's,

//while having a couple of them cascaded

 

  int c = 0;

  digitalWrite(load, LOW);  // begin    

 

  for ( c = maxInUse; c > maxNr; c--) {

    putByte(0);    // means no operation

    putByte(0);    // means no operation

  }

 

  putByte(reg);  // specify register

  putByte(col);//((data & 0x01) * 256) + data >> 1); // put data

 

  for ( c =maxNr-1; c >= 1; c--) {

    putByte(0);    // means no operation

    putByte(0);    // means no operation

  }

 

  digitalWrite(load, LOW); // and load da stuff

  digitalWrite(load,HIGH);

}

 

 

void setup () {

 

  pinMode(dataIn, OUTPUT);

  pinMode(clock,  OUTPUT);

  pinMode(load,   OUTPUT);

 

  digitalWrite(13, HIGH);  

 

//initiation of the max 7219

  maxAll(max7219_reg_scanLimit, 0x07);      

  maxAll(max7219_reg_decodeMode, 0x00);  // using an led matrix (not digits)

  maxAll(max7219_reg_shutdown, 0x01);    // not in shutdown mode

  maxAll(max7219_reg_displayTest, 0x00); // no display test

   for (e=1; e<=8; e++) {    // empty registers, turn all LEDs off

    maxAll(e,0);

  }

  maxAll(max7219_reg_intensity, 0x0f & 0x0f);    // the first 0x0f is the value you can set

                                                  // range: 0x00 to 0x0f

}  

 

void loop () {

 

  //if you use just one MAX7219 it should look like this

   maxSingle(1,1);                       //  + - - - - - - -

   maxSingle(2,2);                       //  - + - - - - - -

   maxSingle(3,4);                       //  - - + - - - - -

   maxSingle(4,8);                       //  - - - + - - - -

   maxSingle(5,16);                      //  - - - - + - - -

   maxSingle(6,32);                      //  - - - - - + - -

   maxSingle(7,64);                      //  - - - - - - + -

   maxSingle(8,128);                     //  - - - - - - - +

 

 delay(2000);

 

 //if you use more than one MAX7219, it should look like this

  

  maxAll(1,1);                       //  + - - - - - - -

  maxAll(2,3);                       //  + + - - - - - -

  maxAll(3,7);                       //  + + + - - - - -

  maxAll(4,15);                      //  + + + + - - - -

  maxAll(5,31);                      //  + + + + + - - -

  maxAll(6,63);                      //  + + + + + + - -

  maxAll(7,127);                     //  + + + + + + + -

  maxAll(8,255);                     //  + + + + + + + +

  

 delay(2000);

 

  //if you use more than one max7219 the second one should look like this

  /*

  maxOne(2,1,1);                       //  + - - - - - - -

  maxOne(2,2,2);                       //  - + - - - - - -

  maxOne(2,3,4);                       //  - - + - - - - -

  maxOne(2,4,8);                       //  - - - + - - - -

  maxOne(2,5,16);                      //  - - - - + - - -

  maxOne(2,6,32);                      //  - - - - - + - -

  maxOne(2,7,64);                      //  - - - - - - + -

  maxOne(2,8,128);                     //  - - - - - - - +

  */

 

  delay(2000);

 

}

Posted by RDIoT
|

8x8 LED dot Matrix (1588AS) [D015]



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


* Specs

ED DOT MATRIX 8X8 HS-1588AB (RED)


* Contents

- Connect

1 - R220 - D13

2 - R220 - D12

3 - R220 - D11

4 - R220 - D10

5 - R220 - A2

6 - R220 - A3

7 - R220 - A4

8 - R220 - A5

 

9 - D2

10 - D3

11 - D4

12 - D5

13 - D6

14 - D7

15 - D8

16 - D9 


- Ref Source

http://arduino-er.blogspot.kr/2014/08/walking-bit-on-88-led-matrix-with.html


- Key Code

// 2-dimensional array of row pin numbers:

const int row[8] = {

  2, 7, 19, 5, 13, 18, 12, 16

};

 

// 2-dimensional array of column pin numbers:

const int col[8] = {

  6, 11, 10, 3, 17, 4, 8, 9

};

 

// 2-dimensional array of pixels:

int pixels[8][8];

 

int posX = 7;

int posY = 7;

int count = 30;

bool bg = false;

 

void setup() {

  // initialize the I/O pins as outputs

  // iterate over the pins:

  for (int thisPin = 0; thisPin < 8; thisPin++) {

    // initialize the output pins:

    pinMode(col[thisPin], OUTPUT);

    pinMode(row[thisPin], OUTPUT);

    // take the col pins (i.e. the cathodes) high to ensure that

    // the LEDS are off:

    digitalWrite(col[thisPin], HIGH);

  }

 

  setupScreen();

 

}

 

void loop() {

 

  // draw the screen:

  refreshScreen();

  

  if(count-- == 0){

    count = 500;

    if(posX--==0){

      posX = 7;

      if(posY--==0){

        posY = 7;

        bg = !bg;

      }

    }

    setupScreen();

 

  }

}

 

void setupScreen(){

  if(bg){

    //ON all others

    for (int x = 0; x < 8; x++) {

      for (int y = 0; y < 8; y++) {

        pixels[x][y] = LOW;

      }

    }

    

    //OFF current pos

    pixels[posX][posY] = HIGH;

  }else{

    //OFF all others

    for (int x = 0; x < 8; x++) {

      for (int y = 0; y < 8; y++) {

        pixels[x][y] = HIGH;

      }

    }

    

    //ON current pos

    pixels[posX][posY] = LOW;

  }

}

 

void refreshScreen() {

  // iterate over the rows (anodes):

  for (int thisRow = 0; thisRow < 8; thisRow++) {

    // take the row pin (anode) high:

    digitalWrite(row[thisRow], HIGH);

    // iterate over the cols (cathodes):

    for (int thisCol = 0; thisCol < 8; thisCol++) {

      // get the state of the current pixel;

      int thisPixel = pixels[thisRow][thisCol];

      // when the row is HIGH and the col is LOW,

      // the LED where they meet turns on:

      digitalWrite(col[thisCol], thisPixel);

      // turn the pixel off:

      if (thisPixel == LOW) {

        digitalWrite(col[thisCol], HIGH);

      }

    }

    // take the row pin low to turn off the whole row:

    digitalWrite(row[thisRow], LOW);

  }

}

Posted by RDIoT
|

NeoPixel Stick - 8 x WS2812 (5050RGB) [D009]



https://www.youtube.com/watch?v=55YDvXyeVjc


*GitHub : https://github.com/rdiot/rdiot-d009.git


* Specs

Make your own little LED strip arrangement with this stick of NeoPixel LEDs. We crammed 8 of the tiny 5050 (5mm x 5mm) smart RGB LEDs onto a PCB with mounting holes and a chainable design. Use only one microcontroller pin to control as many as you can chain together! Each LED is addressable as the driver chip is inside the LED. Each one has ~18mA constant current drive so the color will be very consistent even if the voltage varies, and no external choke resistors are required making the design slim. Power the whole thing with 5VDC (4-7V works) and you're ready to rock.

Product Url : https://www.adafruit.com/products/1426


* Contents

- Connect

GND ----- GND

4-7VDC ----- 5V

DIN ----- D6


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


- Key Code (Example : Standardtest.ino)

#include <Adafruit_NeoPixel.h>

#ifdef __AVR__

  #include <avr/power.h>

#endif

 

#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(60, 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() {

  // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket

  #if defined (__AVR_ATtiny85__)

    if (F_CPU == 16000000) clock_prescale_set(clock_div_1);

  #endif

  // End of trinket special code

 

 

  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) {

  WheelPos = 255 - WheelPos;

  if(WheelPos < 85) {

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

  }

  if(WheelPos < 170) {

    WheelPos -= 85;

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

  }

  WheelPos -= 170;

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

}

Posted by RDIoT
|

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
|

SMD5730 E27 24LED 30W Warm White (SMD5730) [D052]



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


* Specs

Item Type:LED Bulbs

Beam Angle(°):360°

Average Life (hrs):50000

Base Type:E27

Shape:Bar

Voltage:220V

LED Chip Model:5730

Certification:CCC,CE,CQC,EMC,FCC,GS,LVD,PSE,RoHS

Power Tolerance:5%

Number of LED Chip:other

Color Temperature:Nature White(3500-5500K)

Occasion:living room

Led Bulb Type:Corn Bulb

Length:Other

LED Chip Brand:Other

Posted by RDIoT
|

3LED 5050 SMD Module Pure Warm White (SMD5050) [D061]



https://www.youtube.com/watch?v=vvzeM5yt-oE


* Specs

Light Angle: 120 °

LED quantity: 3 PCS

Light life: 50000 hours

Working voltage: DC12V

Power: 0.25W (5050 smd) per module

Driving way: constant pressure drive

Waterproof: IP68 (could be used under water)

Shell material: anti-static, UV resistance, PVC plastic

With adhesive tape on the back

Shell size: 68*20mm

Item weight: About 10g one piece

Posted by RDIoT
|

White LED Backlight Module [D068]



https://www.youtube.com/watch?v=7kpdhaMf6Es


* Specs

Mfg Part# KWB-R7323W/1W

Mfg Name: LUCKY LIGHT ELECTRONICS CO LTD

Operation Power : 3V 20mA

Weight : 5.6g

Size : 107.5 x 22.6 x 2.7mm


* Contents

- DataSheet : http://www.adafruit.com/datasheets/KWB-R7323W-1W.pdf


Posted by RDIoT
|

LED G4 Lamp Bulb ACDC12V 2W AC220V Warm White [D060]



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

* Specs

Item Type:LED Bulbs

Beam Angle(°):360°

LED Chip Brand:Cree

Average Life (hrs):30000

LED Chip Model:1W High Power

Certification:CCC,CE,CQC,RoHS

Color Temperature:Warm White (2700-3500K)

Occasion:Bedroom

Led Bulb Type:Corn Bulb

Length:Other

Shape:Other

Posted by RDIoT
|

12V 4W 48 COB LED Lamp Light [D078]




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



* Specs

Features:

100% Brand new and high quality!

Superior performance & reliable quality.

Long service life.

High power super bright LED light.

No dizzy, no uncomfortable glare, no zebra strips.

Great for making light sources for video camera, fish tank, decoration light.

What is COB?

COB (Chips on Board) is a new technology of LED packaging of LED light engine.

Multi LED chips are packaged together as one light module.

When it lights up, it looks like a lighting panel.

How COB LED light source works?

In COB lighting, single LED chips are placed directly on a circuit board (or substrate) which has thermal properties to disperse heat.

Heat dissipation is a very important aspect of LED lighting since it can have a major impact on the life expectancy of the luminary.

Therefore, COB lighting can have a higher LED chip density and achieve higher light level while maintaining or improving life expectancy.


Specifications:

Condition: brand new

Quantity: 1pc

Type: COB LED

Lighting angle: 180 degrees

Voltage: DC 12V

Current: 480mA

Power: 4W

Light Color: Warm White (3000-3500K)

Pure White (6000-6500K)

Size: 3.9*3.4cm

Posted by RDIoT
|

Arrow Indicator 14 SMD LED Blue [D077]




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


* Specs

This Product features one pair Brilliant Blue brand new 14-SMD-1210 LED arrow lights,can be hidden behind the side mirror for any cars, SUVs or trucks as turn signal lights.

We have redesigned this LED arrow with the LED lights embedded/hidden inside the circuit board so it is thinner than a Quarter. Thinner means less gap, so it will make the installation process easier for you.

Simply remove the side mirror, and place the LED arrows against the back of the mirror and tap the wires to the turn signal lights.

 

Features:

1 PC LED arrow

Color:Blue/Red/Green/White/Yellow

14 pieces 1210 type SMD LED lights

Ultra slim design, only 0.058" thin (about 1/3 the size vs other LED arrows on the market)

With the arrow pointing right ">" height: 2" width: 2"

Put LED lights behind the rear mirror, virtually invisible!

Highly recommend professional installation since it requires opening up the entire side mirror(not including installation instructions)


* Contents

- Connect

Red - 12V

Black - GND

Posted by RDIoT
|

Bargraph Segment LED Module (SHB10R) [D024]



https://www.youtube.com/watch?v=-Qtzp6CA7Cc


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


* Specs

These 10 segment bar graph LEDs have many uses. With a compact footprint, and a simple hookup, they are easy for prototyping or finished products. Essentially, they are 10 individual red LEDs housed together.


Forward Current (Per Segment): 25mA

Max Reverse Voltage: 5v

10 segment bar

Color: Super Bright Red

Industrial standard size

Low power consumption

Categorized for luminous intensity 


* Contents

- Connect

1  ----- D2  - R220 - GND

2  ----- D3  - R220 - GND

3  ----- D4  - R220 - GND

4  ----- D5  - R220 - GND

5  ----- D6  - R220 - GND

6  ----- D7  - R220 - GND

7  ----- D8  - R220 - GND

8  ----- D9  - R220 - GND

9  ----- D10  - R220 - GND

10  ----- D11  - R220 - GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

 

int segPins[] = { 2,3,4,5,6,7,8,9,10,11 };

int idxBar = 0;

int minVal = 50;

int maxVal = 350;

int delayTime = 200;

 

byte digitsFill[10][10] = {

  {1,0,0,0,0,0,0,0,0,0},

  {1,1,0,0,0,0,0,0,0,0},

  {1,1,1,0,0,0,0,0,0,0},

  {1,1,1,1,0,0,0,0,0,0},

  {1,1,1,1,1,0,0,0,0,0},

  {1,1,1,1,1,1,0,0,0,0},

  {1,1,1,1,1,1,1,0,0,0},

  {1,1,1,1,1,1,1,1,0,0},

  {1,1,1,1,1,1,1,1,1,0},

  {1,1,1,1,1,1,1,1,1,1}

};

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  for (int i=0; i<11; i++)

  {

    pinMode(segPins[i], OUTPUT);

  }

 

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

  lcd.setCursor(0,0);

  lcd.print("D024:Bargraph LED");

 

  idxBar = map(analogRead(A0), minVal, maxVal, 0, 9);

 

  lcd.setCursor(0,1);

  lcd.print("analog=" + (String)analogRead(A0) + "  ");

 

  for(int j=0; j<10; j++)

  {

    digitalWrite(segPins[j], digitsFill[idxBar][j]);

 

    lcd.setCursor(0,2);

    lcd.print("idxBar="+(String)idxBar+" "); 

  }

   delay(delayTime);

}

'3) Actuator > LED' 카테고리의 다른 글

12V 4W 48 COB LED Lamp Light [D078]  (0) 2016.09.19
Arrow Indicator 14 SMD LED Blue [D077]  (0) 2016.09.19
Magic Cup Light Module (KY-027) [D020]  (0) 2016.09.18
RGB LED Module SMD (KY-009) [D008]  (0) 2016.09.18
RGB LED Module DIP (KY-016) [D007]  (0) 2016.09.18
Posted by RDIoT
|

Magic Cup Light Module (KY-027) [D020]



https://www.youtube.com/watch?v=yrBU-JRPk8M


*GitHub : https://github.com/rdiot/rdiot-d020.git


* Specs

Magic Light Cup modules are easy to Interactive Technology Division developed a can and ARDUINO interactive modules, PWM dimming principle is to use the principle of two modules brightness changes. Mercury switches provide a digital signal that triggers the PWM regulator, through the program design, We can see the light like two cups filled with the effect of shuffling back and forth.


* Contents

- Connect

G ----- GND

+ ----- X

S ----- D10

L ----- D11


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

 

int pinLed = 11;

int pinInput = 10;

 

int stateA = 0;

int brightness = 0;

int oldBrightness = 0;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  pinMode(pinLed, OUTPUT);

  pinMode(pinInput, INPUT);  delay(1000);

  digitalWrite(pinInput, HIGH);

 

  lcd.clear();

}

 

void loop()

  lcd.setCursor(0,0);

  lcd.print("D020:Magic Cup Light");

 

  stateA = digitalRead(pinInput);

 

  if (stateA == HIGH && brightness < 255)

    brightness++;

  if (stateA == LOW && brightness >0)

    brightness--;

  if (oldBrightness != brightness)

  {

    lcd.setCursor(0,1);

    lcd.print("brightness=" + (String)brightness + "  ");

  }

  oldBrightness = brightness;

  analogWrite(pinLed, brightness);

  delay(10); 

}

'3) Actuator > LED' 카테고리의 다른 글

Arrow Indicator 14 SMD LED Blue [D077]  (0) 2016.09.19
Bargraph Segment LED Module (SHB10R) [D024]  (0) 2016.09.19
RGB LED Module SMD (KY-009) [D008]  (0) 2016.09.18
RGB LED Module DIP (KY-016) [D007]  (0) 2016.09.18
RGB LED (BL-L515) [D006]  (0) 2016.09.18
Posted by RDIoT
|

RGB LED Module SMD (KY-009) [D008]



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


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


* Specs

Using 5050 full color LED with max current of 20mA

Forward Voltage : Red 1.80V (2.4 max), Green,Blue 2.8V (3.6V)

RGB trichromatic limiting resistor to prevent burnout

through the PWM adjusting three primary colors can be mixed to obtain different colors

with a variety of single-chip interface

Operating voltage: 5V

LED drive mode: common cathode driver


* Contents

- Connect

B ----- D9

R ----- D11

G ----- D10

- ----- 3.3V or 5V 


- Key Code

int B = 9; // OUTPUT PIN blue

int R = 11; // OUTPUT PIN red

int G = 10; // OUTPUT PIN green

 

void setup()

{

 Serial.begin(115200); 

 Serial.println("Arduino Examples - RGB LED");

 pinMode(R, OUTPUT);

 pinMode(G, OUTPUT);

 pinMode(B, OUTPUT);

}

 

void loop()

 // RED

 digitalWrite(R, LOW);

 digitalWrite(G, HIGH);

 digitalWrite(B, HIGH);

 delay(1000);

 

 // GREEN

 digitalWrite(R, HIGH);

 digitalWrite(G, LOW);

 delay(1000);

 

 // BLUE

 digitalWrite(G, HIGH);

 digitalWrite(B, LOW);

 delay(1000);

 

 // RED + GREEN = YELLOW

 digitalWrite(B, HIGH);

 digitalWrite(R, LOW);

 digitalWrite(G, LOW);

 delay(1000);

 

 // RED + BLUE = MAGENTA

 digitalWrite(B, LOW);

 digitalWrite(R, LOW);

 digitalWrite(G, HIGH);

 delay(1000);

 

 // GREEN + BLUE = CYON

 digitalWrite(B, LOW);

 digitalWrite(R, HIGH);

 digitalWrite(G, LOW);

 delay(1000);

 

 // RED + GREEN + BLUE = WHITE

 digitalWrite(B, LOW);

 digitalWrite(R, LOW);

 digitalWrite(G, LOW);

 delay(1000);

 

 // ALL OFF

 digitalWrite(B, HIGH);

 digitalWrite(R, HIGH);

 digitalWrite(G, HIGH);

 delay(1000);

}

'3) Actuator > LED' 카테고리의 다른 글

Bargraph Segment LED Module (SHB10R) [D024]  (0) 2016.09.19
Magic Cup Light Module (KY-027) [D020]  (0) 2016.09.18
RGB LED Module DIP (KY-016) [D007]  (0) 2016.09.18
RGB LED (BL-L515) [D006]  (0) 2016.09.18
7 color flash LED Module (KY-034) [D010]  (0) 2016.09.18
Posted by RDIoT
|

RGB LED Module DIP (KY-016) [D007]



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


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


* Specs

Use of full color LED

RGB tricolor current-limiting resistance to prevent burn out

Through the PWM regulating three primary colors mixed with different colors

With a variety of single chip microcomputer interface

Working voltage: 5V

LED drive mode: Yin drive


* Contents

- Connect

R ----- D11

G ----- D10

B ----- D9

- ----- GND


- Key Code

int redPin = 11;

int greenPin = 10;

int bluePin = 9;

 

void setup()

{

 pinMode(redPin, OUTPUT);

 pinMode(greenPin, OUTPUT);

 pinMode(bluePin, OUTPUT); 

}

 

void loop()

{

  setColor(255, 0, 0); // red

  delay(1000);

  setColor(0, 255, 0); // green

  delay(1000);

  setColor(0, 0, 255); // blue

  delay(1000);

  setColor(255, 255, 0); // yellow

  delay(1000); 

  setColor(80, 0, 80); // purple

  delay(1000);

  setColor(0, 255, 255); // aqua

  delay(1000);

}

 

void setColor(int red, int green, int blue)

{

  analogWrite(redPin, red);

  analogWrite(greenPin, green);

  analogWrite(bluePin, blue); 

}

'3) Actuator > LED' 카테고리의 다른 글

Magic Cup Light Module (KY-027) [D020]  (0) 2016.09.18
RGB LED Module SMD (KY-009) [D008]  (0) 2016.09.18
RGB LED (BL-L515) [D006]  (0) 2016.09.18
7 color flash LED Module (KY-034) [D010]  (0) 2016.09.18
2 Color(R,G) LED Module (KY-011) [D005]  (0) 2016.09.18
Posted by RDIoT
|

RGB LED (BL-L515) [D006]



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


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


* Specs

5.0mm Round Type, RGB Full Color LED Lamps

Diffused and Water clear lens are available.

Popular T-1 diameter package.

IC compatible /Low current capability.

RoHs Compliance


* Contents

- DataSheet : http://www.alldatasheet.com/datasheet-pdf/pdf/699972/BETLUX/BL-L515.html


- Connect

R ----- D11

GND ----- GND

G ----- D10

B ----- D9


- Key Code

int redPin = 11;

int greenPin = 10;

int bluePin = 9;

 

void setup()

{

 pinMode(redPin, OUTPUT);

 pinMode(greenPin, OUTPUT);

 pinMode(bluePin, OUTPUT); 

}

 

void loop()

{

  setColor(255, 0, 0); // red

  delay(1000);

  setColor(0, 255, 0); // green

  delay(1000);

  setColor(0, 0, 255); // blue

  delay(1000);

  setColor(255, 255, 0); // yellow

  delay(1000); 

  setColor(80, 0, 80); // purple

  delay(1000);

  setColor(0, 255, 255); // aqua

  delay(1000);

}

 

void setColor(int red, int green, int blue)

{

  analogWrite(redPin, red);

  analogWrite(greenPin, green);

  analogWrite(bluePin, blue); 

}

Posted by RDIoT
|

7 color flash LED Module (KY-034) [D010]



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


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


* Specs

Product Type: LED

Product Model: YB-3120B4PnYG-PM

Shape: Round LED 5mm DIP type

Color: pink yellow green (high brightness)

Lens type: white mist

Standard Forward Voltage :3.0-4 .5 V


* Contents

- Connect

S ----- D2

Middle ----- X 

- ----- GND


- Key Code

int R = 2;

 

void setup()

{

 Serial.begin(115200);

 Serial.println("Arduino Examples - 7 Color Flash");

 pinMode(R, OUTPUT);

 digitalWrite(R, LOW);

}

 

void loop()

{

 digitalWrite(R, HIGH); // on (for 5 Second)

 delay(5000); 

}

'3) Actuator > LED' 카테고리의 다른 글

Magic Cup Light Module (KY-027) [D020]  (0) 2016.09.18
RGB LED Module SMD (KY-009) [D008]  (0) 2016.09.18
RGB LED Module DIP (KY-016) [D007]  (0) 2016.09.18
RGB LED (BL-L515) [D006]  (0) 2016.09.18
2 Color(R,G) LED Module (KY-011) [D005]  (0) 2016.09.18
Posted by RDIoT
|

2 Color(R,G) LED Module (KY-011) [D005]



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


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


* Specs

The Keyes 2 Color LED Module is a simple yet effective LED that is compatible with Arduino systems.  


Specs:

Material: FR4

Length: 35mm

Width: 15mm

Height: 13mm

Weight: 1.35g

Operating Voltage: 5v DC



* Contents

- Connect

- ----- GND

R ----- D11 (red)

G ----- D10 (green)


- Key Code

int R = 11; // OUTPUT PIN red

int G = 10; // OUTPUT PIN green

 

void setup()

{

 Serial.begin(115200); 

 pinMode(R, OUTPUT);

 pinMode(G, OUTPUT);

}

 

void loop()

 analogWrite(R, 0);

 analogWrite(G, 0);

 

 // RED

 for (int i = 0; i < 256; i++)

 {

 analogWrite(R, i);

 delay(10); 

 }

 for (int i = 0; i < 256; i++)

 {

 analogWrite(R, 255-i);

 delay(10);

 }

 

 // YELLOW

 for (int i = 0; i < 256; i++)

 {

 analogWrite(G, i);

 delay(10);

 }

 for (int i = 0; i < 256; i++)

 {

 analogWrite(G, 255 - i);

 delay(10);

 }

 

 // RED + Green

 for (int i = 0; i < 256; i++)

 {

 analogWrite(R, i);

 analogWrite(G, i);

 delay(10);

 }

 

 for (int i = 0; i < 256; i++)

 {

 analogWrite(R, 255 - i);

 analogWrite(G, 255 - i);

 delay(10);

 } 

}

'3) Actuator > LED' 카테고리의 다른 글

Magic Cup Light Module (KY-027) [D020]  (0) 2016.09.18
RGB LED Module SMD (KY-009) [D008]  (0) 2016.09.18
RGB LED Module DIP (KY-016) [D007]  (0) 2016.09.18
RGB LED (BL-L515) [D006]  (0) 2016.09.18
7 color flash LED Module (KY-034) [D010]  (0) 2016.09.18
Posted by RDIoT
|

32x64 RGB LED Matrix P4 (LM-P4-SMD-RGB-LED) Basic Test [D025]





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


*GitHub https://github.com/rdiot/rdiot-d025.git


* Specs

P4 smd 3in1 led display module:

Pixel Pitch   P4

Pixel Component  3in1

Pixel Density  62500dot/m⊃2;

Pixel configuration 1R1G1B

Module resolution(dots) 64x32 

Module dimension(mm) 256x128

Drive Mode 1/16

Brightness   2500cd/m2;

Viewing Angle  Horizontal:160°   Vertical:160°

Control Distance    100m

Refresh Frequency Rate 400Hz/S

Life Span   100,000hours

Display MTBF   10,000 Hours

Constant Working Time  72hours

Operation Temperature   -40°C~+70°C

Operation Humidity  10%-90%RH

Blind Pixels Rate  0.0001

Smooth   ±1mm


* Contents

- Refer Url : https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/connecting-with-jumper-wires

- Refer Url : https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/library

- Refer Url : https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/how-the-matrix-works


- Library 1 : https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/

- Library 2 : https://github.com/adafruit/Adafruit-GFX-Library 


- Connect

GND ----- 3EA GND

R1 ----- D24

G1 ----- D25

B1 ----- D26

R2 ----- D27

B2 ----- D28

G2 ----- D29

A   ----- A0

B   ----- A1

C   ----- A2

D   ----- A3

LAT ----- D10

CLK ----- D11

OE   ----- D9


- Key Code

#include <Adafruit_GFX.h>   // Core graphics library

#include <RGBmatrixPanel.h> // Hardware-specific library


#define OE   9

#define LAT 10

#define CLK 11

#define A   A0

#define B   A1

#define C   A2

#define D   A3


RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false, 64);


void setup() {


  matrix.begin();

  

  // draw a pixel in solid white

  matrix.drawPixel(0, 0, matrix.Color333(7, 7, 7)); 

  delay(500);


  // fix the screen with green

  matrix.fillRect(0, 0, matrix.width(), matrix.height(), matrix.Color333(0, 7, 0));

  delay(500);


  // draw a box in yellow

  matrix.drawRect(0, 0, matrix.width(), matrix.height(), matrix.Color333(7, 7, 0));

  delay(500);

  

  // draw an 'X' in red

  matrix.drawLine(0, 0, matrix.width()-1, matrix.height()-1, matrix.Color333(7, 0, 0));

  matrix.drawLine(matrix.width()-1, 0, 0, matrix.height()-1, matrix.Color333(7, 0, 0));

  delay(500);

  

  // draw a blue circle

  matrix.drawCircle(10, 10, 10, matrix.Color333(0, 0, 7));

  delay(500);

  

  // fill a violet circle

  matrix.fillCircle(40, 21, 10, matrix.Color333(7, 0, 7));

  delay(500);

  

  // fill the screen with 'black'

  matrix.fillScreen(matrix.Color333(0, 0, 0));

  

  // draw some text!

  matrix.setTextSize(1);     // size 1 == 8 pixels high

  matrix.setTextWrap(false); // Don't wrap at end of line - will do ourselves


  matrix.setCursor(8, 0);    // start at top left, with 8 pixel of spacing

  uint8_t w = 0;

  char *str = "RD Kim  IoT Making";

  for (w=0; w<8; w++) {

    matrix.setTextColor(Wheel(w));

    matrix.print(str[w]);

  }

  matrix.setCursor(2, 8);    // next line

  for (w=8; w<18; w++) {

    matrix.setTextColor(Wheel(w));

    matrix.print(str[w]);

  }

  matrix.println();

  //matrix.setTextColor(matrix.Color333(4,4,4));

  //matrix.println("Industries");

  matrix.setTextColor(matrix.Color333(7,7,7));

  matrix.println("LED MATRIX!");

  

  // print each letter with a rainbow color

  matrix.setTextColor(matrix.Color333(7,0,0));

  matrix.print('3');

  matrix.setTextColor(matrix.Color333(7,4,0)); 

  matrix.print('2');

  matrix.setTextColor(matrix.Color333(7,7,0));

  matrix.print('x');

  matrix.setTextColor(matrix.Color333(4,7,0)); 

  matrix.print('6');

  matrix.setTextColor(matrix.Color333(0,7,0));  

  matrix.print('4');

  matrix.setCursor(34, 24);  

  matrix.setTextColor(matrix.Color333(0,7,7)); 

  matrix.print("*");

  matrix.setTextColor(matrix.Color333(0,4,7)); 

  matrix.print('R');

  matrix.setTextColor(matrix.Color333(0,0,7));

  matrix.print('G');

  matrix.setTextColor(matrix.Color333(4,0,7)); 

  matrix.print("B");

  matrix.setTextColor(matrix.Color333(7,0,4)); 

  matrix.println("*");

}

Posted by RDIoT
|