'RDIoT Demo'에 해당되는 글 354건

  1. 2016.09.21 DC In Line Power Cable Connector Jack LED Strip 12V 1A [B032]
  2. 2016.09.21 DC Power Male Plug Jack Adapter [B078]
  3. 2016.09.21 2.1mm DC Barrel jack Adapter Connector Female [B031]
  4. 2016.09.21 2.1mm DC Barrel jack Adapter Connector Male [B059]
  5. 2016.09.21 DC Power Jack Socket Connector (DC-005) [B034]
  6. 2016.09.21 DC Power Pinboard [B054]
  7. 2016.09.21 MCH-K305D DC Switching Power Supply 30V 5A (MCH-K305D) [B029]
  8. 2016.09.21 Breadboard Power Supply Module 3.3V, 5V (MB-102) [B022]
  9. 2016.09.21 84x84 Nokia 5110 LCD Module (LCD5110) [D055]
  10. 2016.09.21 LCD 4002 Blue (ERM4002SBS-1) [D051]
  11. 2016.09.21 LCD Keypad Shield Green (LCD1602) [D043]
  12. 2016.09.21 LCD Keypad Shield (LCD1602) [D038]
  13. 2016.09.21 LCD2004 I2C Green (LCD2004A) [D046]
  14. 2016.09.21 LCD2004 I2C ( LCD2004A) [D017]
  15. 2016.09.21 LCD1602 I2C (LCD1602) [D016]
  16. 2016.09.21 LCD1602 (HD44780) [D002]
  17. 2016.09.21 12V LED Strip SMD5630 Warm White Waterproof (SMD5630) [D041]
  18. 2016.09.21 12V RGB LED Strip SMD5050 (SMD5050) [D031]
  19. 2016.09.21 12V RGB LED SMD3528 + Key IR (SMD3528,KeyIR) [D030]
  20. 2016.09.21 4x4x4 3D LED Cube [D062]
  21. 2016.09.21 MAX7219 Dot Matrix Module (MAX7219) [D057]
  22. 2016.09.21 8x8 LED dot Matrix (1588AS) [D015]
  23. 2016.09.21 NeoPixel Stick - 8 x WS2812 (5050RGB) [D009]
  24. 2016.09.21 WS2812 16x5050 RGB LED Ring Lamp Light (SMD5050) [D065]
  25. 2016.09.21 6bits Multicolor Rapid Prototyping LED [D050]
  26. 2016.09.21 12V 360 Degree 5050 SMD Red (SMD5050) [D045]
  27. 2016.09.21 SMD5730 E27 24LED 30W Warm White (SMD5730) [D052]
  28. 2016.09.19 FTDI Basic Breakout USB-TTL 6 PIN 5V Module (FT232RL) [B091]
  29. 2016.09.19 Smart Watch DZ09 (DZ09) [B007]
  30. 2016.09.19 Xiaomi Mi Band 1A (XMSH03HM) [B001]

DC In Line Power Cable Connector Jack LED Strip 12V 1A [B032]



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


* Specs

great for flexible 5050 3528 LED Strip light.

Suitable for many applications including controlling a led strip.(Install switch between power supply and strips)

Connect reliable, work effective.

Supply Voltage: 12V

Output: 1A

Color: Black

Overall Length: 360mm

Switch body approx: 60mmx20mmx20mm(LxWxH)

Working Temperature : 0~40C

Storage Temperature : -20~60c

Posted by RDIoT
|

DC Power Male Plug Jack Adapter [B078]




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


* Contents

DC Power Male Plug

Posted by RDIoT
|

2.1mm DC Barrel jack Adapter Connector Female [B031]



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


* Specs

Temperature Range: -70C ~ +155 C

Connectors: Terminal block, Male 5.5*2.1mm/2.5mm DC

Material: Zinc Alloy + Plastic

Internal diameter of the plug: 2.1mm

External diameter of the plug: 5.5mm

Size: 38 x 13 x 13MM

Weight: 61g

Simply & Professional appearance for power cabling

Easier for camera installation, save time and more securer cable connection

2.1 x 5.5mm CCTV Camera for DC Power Plug Connector.

for DC Power Plug with plastic construction and strain relief.

This 2.1 x 5.5mm Power Plug features one power connector end for DC plug male to another end terminal for CCTV camera connected.

It is a perfect solution for those who want to make custom power cable.

This CCTV Camera for DC Power Connector will provide a great connection.

Internal diameter of the plug: 2.1mm

External diameter of the plug: 5.5mm

It measures approx. 1.5" long, 0.55" wide, 0.5" thick.

Posted by RDIoT
|

2.1mm DC Barrel jack Adapter Connector Male [B059]



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


* Specs

5.5mm x 2.1mm male power plug connector

Internal diameter of the plug: 2.1mm

External diameter of the plug: 5.5mm

Size: 3.5cm x 1.4cm x 1.2cm - 1.37inch x 0.55inch x 0.47inch

Posted by RDIoT
|

DC Power Jack Socket Connector (DC-005) [B034]



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



* Specs

Model Number:DC005

Posted by RDIoT
|

DC Power Pinboard [B054]



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


* Specs

Features:

100% brand new and high quality

Hole Diameter: 5.5mm

Pin Diameter: 2.1mm

Product size: Approx. 2.8 x 1.3 x 1.2cm

Reserved two single-row needle welding holes, can be installed directly on the peg board, convenient to test

Power Output Interface: 2 ways of VCC, 2 ways of GND

With power indicator

Posted by RDIoT
|

MCH-K305D DC Switching Power Supply 30V 5A (MCH-K305D) [B029]



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


* Specs

Model No. MCH-K305D

Line Voltage 200-240VAC,50Hz-60Hz

Input Current (at 220VAC,full load) 0.9A

Output Voltage Range 0-30V

Output Current Range 0-5A

Voltage Display Accuracy ±0.5%

Current Display Accuracy ±0.5%

Efficiency >85%

Load Regulation(10-100%) 50mV

Line Regulation(200-240VAC) 20mV

Ripple & Noise(P-P) 50mV

Load Regulation(10-100%) 20mA

Line Regulation(200-240VAC) 20mA

Ripple & Noise(p-p) 20mA

Operating Ambient -10°c to + 60°c, 30%RH to 90% RH

Size 7(W) x 16(H) x 22(D)cm

Weight 1.35kg

Posted by RDIoT
|

Breadboard Power Supply Module 3.3V, 5V (MB-102) [B022]



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


* Specs

- Feature

Breadboard power supply module, with 5 V, 3.3 V output voltages

Apply to MB102 Standard breadboard

Input voltage: 6.5-12 V (DC) or 5V USB power supply

Output voltage: 3.3V and 5V can switch over

Maximum output current: <700 ma

Input voltage ON/OFF switch

Independent control of upper and Lower Bread Board Power Rails. Can switch over to 0 V, 3.3 V, 5 V using jumpers on any rail.

On-board two groups of 3.3V, 5V DC output plug pin, convenient external lead use.

- Connection

1x Barrel 5mm Connector (center +ve) for Input Power

1x USB connector for 5V input or 5V output

4x 2Pin Headers pointing downward for 3.3V or 5V output

1x 2×4 Header for 3.3V and 5V output

2x 1×4 selection jumper for 3.3V/OFF/5V



Posted by RDIoT
|

84x84 Nokia 5110 LCD Module (LCD5110) [D055]



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


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


* Specs

Power supply voltage: 2.7V-3.3V,5V is OK,but part of the screen becomes black when tested

Data interface level: 2.7-5V

Backlight power supply voltage: highest 3.3V

Module size: 43.6mm x 43.1mm(width X height)

Installation diameter: 2mm

Backlight: White


Features : 

84 X 84 dot matrix LCD,can show 4 lines of characters

Use serial interface communicate with the master processor,the number of interface signal line reduced greatly, only 8 signal lines including power and GND.Support different types of MCU,such as the SPI,MCS51 serial mode 0 of AVR.Transfer rate up to 4Mbps,can full speed write display data without waiting time.

Can use the conductive glue to connect the module with the printed board,without connecting cable.The metal hooks on the module can fix the module on the printed board,which is very easy to install and replace.

LCD controller/driver chip has been bound to LCD chip,the volume of LCD is small

Low power supply,the working current in normal situation is lower than 200μA,and has power-down mode



* Contents

- Library1 :  https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library

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


- Connect

RST ----- D3

CE ----- D4

DC ----- D5

Din ----- D6

CLK ----- D7

VCC ----- 5V

BL ----- 5V / GND

GND ----- GND


- Key Code Sample

/*********************************************************************

This is an example sketch for our Monochrome Nokia 5110 LCD Displays


  Pick one up today in the adafruit shop!

  ------> http://www.adafruit.com/products/338


These displays use SPI to communicate, 4 or 5 pins are required to

interface


Adafruit invests time and resources providing this open source code,

please support Adafruit and open-source hardware by purchasing

products from Adafruit!


Written by Limor Fried/Ladyada  for Adafruit Industries.

BSD license, check license.txt for more information

All text above, and the splash screen must be included in any redistribution

*********************************************************************/


#include <SPI.h>

#include <Adafruit_GFX.h>

#include <Adafruit_PCD8544.h>


// Software SPI (slower updates, more flexible pin options):

// pin 7 - Serial clock out (SCLK)

// pin 6 - Serial data out (DIN)

// pin 5 - Data/Command select (D/C)

// pin 4 - LCD chip select (CS)

// pin 3 - LCD reset (RST)

Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);


// Hardware SPI (faster, but must use certain hardware pins):

// SCK is LCD serial clock (SCLK) - this is pin 13 on Arduino Uno

// MOSI is LCD DIN - this is pin 11 on an Arduino Uno

// pin 5 - Data/Command select (D/C)

// pin 4 - LCD chip select (CS)

// pin 3 - LCD reset (RST)

// Adafruit_PCD8544 display = Adafruit_PCD8544(5, 4, 3);

// Note with hardware SPI MISO and SS pins aren't used but will still be read

// and written to during SPI transfer.  Be careful sharing these pins!


#define NUMFLAKES 10

#define XPOS 0

#define YPOS 1

#define DELTAY 2



#define LOGO16_GLCD_HEIGHT 16

#define LOGO16_GLCD_WIDTH  16


static const unsigned char PROGMEM logo16_glcd_bmp[] =

{ B00000000, B11000000,

  B00000001, B11000000,

  B00000001, B11000000,

  B00000011, B11100000,

  B11110011, B11100000,

  B11111110, B11111000,

  B01111110, B11111111,

  B00110011, B10011111,

  B00011111, B11111100,

  B00001101, B01110000,

  B00011011, B10100000,

  B00111111, B11100000,

  B00111111, B11110000,

  B01111100, B11110000,

  B01110000, B01110000,

  B00000000, B00110000 };


void setup()   {

  Serial.begin(9600);


  display.begin();

  // init done


  // you can change the contrast around to adapt the display

  // for the best viewing!

  display.setContrast(50);


  display.display(); // show splashscreen

  delay(2000);

  display.clearDisplay();   // clears the screen and buffer


  // draw a single pixel

  display.drawPixel(10, 10, BLACK);

  display.display();

  delay(2000);

  display.clearDisplay();


  // draw many lines

  testdrawline();

  display.display();

  delay(2000);

  display.clearDisplay();


  // draw rectangles

  testdrawrect();

  display.display();

  delay(2000);

  display.clearDisplay();


  // draw multiple rectangles

  testfillrect();

  display.display();

  delay(2000);

  display.clearDisplay();


  // draw mulitple circles

  testdrawcircle();

  display.display();

  delay(2000);

  display.clearDisplay();


  // draw a circle, 10 pixel radius

  display.fillCircle(display.width()/2, display.height()/2, 10, BLACK);

  display.display();

  delay(2000);

  display.clearDisplay();


  testdrawroundrect();

  delay(2000);

  display.clearDisplay();


  testfillroundrect();

  delay(2000);

  display.clearDisplay();


  testdrawtriangle();

  delay(2000);

  display.clearDisplay();

   

  testfilltriangle();

  delay(2000);

  display.clearDisplay();


  // draw the first ~12 characters in the font

  testdrawchar();

  display.display();

  delay(2000);

  display.clearDisplay();


  // text display tests

  display.setTextSize(1);

  display.setTextColor(BLACK);

  display.setCursor(0,0);

  display.println("Hello, world!");

  display.setTextColor(WHITE, BLACK); // 'inverted' text

  display.println(3.141592);

  display.setTextSize(2);

  display.setTextColor(BLACK);

  display.print("0x"); display.println(0xDEADBEEF, HEX);

  display.display();

  delay(2000);


  // rotation example

  display.clearDisplay();

  display.setRotation(1);  // rotate 90 degrees counter clockwise, can also use values of 2 and 3 to go further.

  display.setTextSize(1);

  display.setTextColor(BLACK);

  display.setCursor(0,0);

  display.println("Rotation");

  display.setTextSize(2);

  display.println("Example!");

  display.display();

  delay(2000);


  // revert back to no rotation

  display.setRotation(0);


  // miniature bitmap display

  display.clearDisplay();

  display.drawBitmap(30, 16,  logo16_glcd_bmp, 16, 16, 1);

  display.display();


  // invert the display

  display.invertDisplay(true);

  delay(1000); 

  display.invertDisplay(false);

  delay(1000); 


  // draw a bitmap icon and 'animate' movement

  testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_WIDTH, LOGO16_GLCD_HEIGHT);

}



void loop() {

  

}



void testdrawbitmap(const uint8_t *bitmap, uint8_t w, uint8_t h) {

  uint8_t icons[NUMFLAKES][3];

  randomSeed(666);     // whatever seed

 

  // initialize

  for (uint8_t f=0; f< NUMFLAKES; f++) {

    icons[f][XPOS] = random(display.width());

    icons[f][YPOS] = 0;

    icons[f][DELTAY] = random(5) + 1;

    

    Serial.print("x: ");

    Serial.print(icons[f][XPOS], DEC);

    Serial.print(" y: ");

    Serial.print(icons[f][YPOS], DEC);

    Serial.print(" dy: ");

    Serial.println(icons[f][DELTAY], DEC);

  }


  while (1) {

    // draw each icon

    for (uint8_t f=0; f< NUMFLAKES; f++) {

      display.drawBitmap(icons[f][XPOS], icons[f][YPOS], logo16_glcd_bmp, w, h, BLACK);

    }

    display.display();

    delay(200);

    

    // then erase it + move it

    for (uint8_t f=0; f< NUMFLAKES; f++) {

      display.drawBitmap(icons[f][XPOS], icons[f][YPOS],  logo16_glcd_bmp, w, h, WHITE);

      // move it

      icons[f][YPOS] += icons[f][DELTAY];

      // if its gone, reinit

      if (icons[f][YPOS] > display.height()) {

 icons[f][XPOS] = random(display.width());

 icons[f][YPOS] = 0;

 icons[f][DELTAY] = random(5) + 1;

      }

    }

   }

}



void testdrawchar(void) {

  display.setTextSize(1);

  display.setTextColor(BLACK);

  display.setCursor(0,0);


  for (uint8_t i=0; i < 168; i++) {

    if (i == '\n') continue;

    display.write(i);

    //if ((i > 0) && (i % 14 == 0))

      //display.println();

  }    

  display.display();

}


void testdrawcircle(void) {

  for (int16_t i=0; i<display.height(); i+=2) {

    display.drawCircle(display.width()/2, display.height()/2, i, BLACK);

    display.display();

  }

}


void testfillrect(void) {

  uint8_t color = 1;

  for (int16_t i=0; i<display.height()/2; i+=3) {

    // alternate colors

    display.fillRect(i, i, display.width()-i*2, display.height()-i*2, color%2);

    display.display();

    color++;

  }

}


void testdrawtriangle(void) {

  for (int16_t i=0; i<min(display.width(),display.height())/2; i+=5) {

    display.drawTriangle(display.width()/2, display.height()/2-i,

                     display.width()/2-i, display.height()/2+i,

                     display.width()/2+i, display.height()/2+i, BLACK);

    display.display();

  }

}


void testfilltriangle(void) {

  uint8_t color = BLACK;

  for (int16_t i=min(display.width(),display.height())/2; i>0; i-=5) {

    display.fillTriangle(display.width()/2, display.height()/2-i,

                     display.width()/2-i, display.height()/2+i,

                     display.width()/2+i, display.height()/2+i, color);

    if (color == WHITE) color = BLACK;

    else color = WHITE;

    display.display();

  }

}


void testdrawroundrect(void) {

  for (int16_t i=0; i<display.height()/2-2; i+=2) {

    display.drawRoundRect(i, i, display.width()-2*i, display.height()-2*i, display.height()/4, BLACK);

    display.display();

  }

}


void testfillroundrect(void) {

  uint8_t color = BLACK;

  for (int16_t i=0; i<display.height()/2-2; i+=2) {

    display.fillRoundRect(i, i, display.width()-2*i, display.height()-2*i, display.height()/4, color);

    if (color == WHITE) color = BLACK;

    else color = WHITE;

    display.display();

  }

}

   

void testdrawrect(void) {

  for (int16_t i=0; i<display.height()/2; i+=2) {

    display.drawRect(i, i, display.width()-2*i, display.height()-2*i, BLACK);

    display.display();

  }

}


void testdrawline() {  

  for (int16_t i=0; i<display.width(); i+=4) {

    display.drawLine(0, 0, i, display.height()-1, BLACK);

    display.display();

  }

  for (int16_t i=0; i<display.height(); i+=4) {

    display.drawLine(0, 0, display.width()-1, i, BLACK);

    display.display();

  }

  delay(250);

  

  display.clearDisplay();

  for (int16_t i=0; i<display.width(); i+=4) {

    display.drawLine(0, display.height()-1, i, 0, BLACK);

    display.display();

  }

  for (int8_t i=display.height()-1; i>=0; i-=4) {

    display.drawLine(0, display.height()-1, display.width()-1, i, BLACK);

    display.display();

  }

  delay(250);

  

  display.clearDisplay();

  for (int16_t i=display.width()-1; i>=0; i-=4) {

    display.drawLine(display.width()-1, display.height()-1, i, 0, BLACK);

    display.display();

  }

  for (int16_t i=display.height()-1; i>=0; i-=4) {

    display.drawLine(display.width()-1, display.height()-1, 0, i, BLACK);

    display.display();

  }

  delay(250);


  display.clearDisplay();

  for (int16_t i=0; i<display.height(); i+=4) {

    display.drawLine(display.width()-1, 0, 0, i, BLACK);

    display.display();

  }

  for (int16_t i=0; i<display.width(); i+=4) {

    display.drawLine(display.width()-1, 0, i, display.height()-1, BLACK); 

    display.display();

  }

  delay(250);

}

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

LCD 4002 Blue (ERM4002SBS-1) [D051]  (0) 2016.09.21
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
Posted by RDIoT
|

LCD 4002 Blue (ERM4002SBS-1) [D051]



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


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


* Specs

Gross Weight (kg) 0.12

Manufacturer EastRising

Continuity Supply We promise the long term continuity supply for this product no less than 10 years since 2015.

Part Number ERM4002SBS-1

Display Format 40x2 Character

Interface 6800 4-bit Parallel , 6800 8-bit Parallel

IC or Equivalent AIP31066 , HD44780, KS0066 , SPLC780 , ST7066

Appearance White on Blue

Diagonal Size No

Connection Pin Header

Outline Dimension 182.00(W)x33.5(H)x13.6(T)mm

Visual Area 152.30x16.70mm

Active Area 147.50(W)x11.50(H)mm

Character Size 3.20x5.55mm

Dot (Pixel) Size 0.60x0.65mm

Dot (Pixel) Pitch 0.65x0.70mm

IC Package COB

Display Type STN-LCD Blue

Touch Panel Optional No

Sunlight Readable No

Response Time(Typ) No

Contrast Ratio(Typ) No

Colors No

Viewing Direction 0.25

Viewing Angle Range No

Brightness(Typ) No

Backlight Color White Color

Backlight Current (Typ) 30mA

Power Supply(Typ) 5V

Supply Current for LCM(Max) 2200uA

Operating Temperature -20C~70C

Storage Temperature -30C~80C

Series Number ERM4002-1 


* Contents

- Controller DataSheet : http://www.buydisplay.com/download/ic/SPLC780.pdf


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


LiquidCrystal_I2C lcd(0x27,40,2);  // LCD4002


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD4002");

  

  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D051:LCD4002");


  String str="";

  for(char i='A'; i<='Z'; i++)

  {

    str += (String)i;

    lcd.setCursor(0,1);  

    lcd.print(str);


    delay(50);

  }

  

  str +=" ";


  for(int i=1; i<=10; i++)

  {

    str += (String)i;

    lcd.setCursor(0,1);  

    lcd.print(str);


    delay(300);

  }

}

Posted by RDIoT
|

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
|

FTDI Basic Breakout USB-TTL 6 PIN 5V Module (FT232RL) [B091]




https://www.youtube.com/watch?v=4DAoEV6L5EE


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


* Specs

This is the newest revision of our FTDI BASIC. It now uses a SMD 6-pin header on the bottom, which makes it smaller and more compact. Functionality has remained the same.

This is a basic breakout board for the FTDI FT232RL USB to serial IC. The pinout of this board matches the FTDI cable to work with official  cloned 5V  boards. It can also be used for general serial applications. The major difference with this board is that it brings out the DTR pin as opposed to the RTS pin of the FTDI cable. The DTR pin allows a target to auto-reset when a new Sketch is downloaded. This is a really nice feature to have and allows a sketch to be downloaded without having to hit the reset button. This board will auto reset any board that has the reset pin brought out to a 6-pin connector.

The pins labeled BLK and GRN correspond to the colored wires on the FTDI cable. The black wire on the FTDI cable is GND, green is CTS. Use these BLK and GRN pins to align the FTDI basic board with your  target.

This board has TX and RX LEDs that make it a bit better to use over the FTDI cable. You can actually see serial traffic on the LEDs to verify if the board is working.

This board was designed to decrease the cost of  for Arduino development and increase ease of use (the auto-reset feature rocks!). Our for Arduino Pro boards and LilyPads use this type of connector.

One of the nice features of this board is a jumper on the back of the board that allows the board to be configured to either 3.3V or 5V (both power output and IO level). This board ship default to 5V, but you can cut the default trace and add a solder jumper if you need to switch to 3.3V. 



Posted by RDIoT
|

Smart Watch DZ09 (DZ09) [B007]



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


* Specs

Supports single SIM (GSM)

It can call/answer the phone call ( using Bluetooth connectivity)

Easy sync between the connected smartphone and DZ09 smartwatch

Control the music player from your watch.

Take pictures from the watch itself, remote control your smartphone.

Sleep Monitoring– monitor your sleep quality

Pedometer– Record the steps and achieve your targets.

Sedentary reminder

Anti-lost/phone finder


A 1.56 inch TFT LCD display supporting handwriting recognition.

0.3 MP camera/remote control of smartphone’s camera is possible

TF card support (upto 32GB)

Powered by MTK6260A, 533 MHz processor

It has 128MB of RAM and 64 MB of ROM

Supports Single SIM ( GSM, micro SIM )

Bluetooth v3.0 connectivity

A 380mAh Li-on battery with a standby time of 180 hours and 5 hours of talk time

Posted by RDIoT
|

Xiaomi Mi Band 1A (XMSH03HM) [B001]



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

* Specs

Stylish TPSiV Material

Sleep-cycle smart alarm

Fitness monitor & sleep tracker

Dow Corning Skin-friendly wristband

IOS 7.0 (Or above) can use the function of Pedometer,Sleep monitor and Alarm.(Other function will be updated in the future)

Functions of sport data recording, sleep quality monitoring, smart alarm clock wake up,calls reminder(Need set in app)

Short immersion under normal temperature and pressure, when the housing is temporarily immersed in 1M deep water will not cause harmful effects(Not for swimming or diving)

The miband can unlock your Mi phone without a password(Use for MI phone only)

Posted by RDIoT
|