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
|