¾ÆµÎÀ̳ë 16x2 LCD Å°ÆÐµå ½¯µå (16x2 Character LCD Display Shield)
ÆǸŰ¡°Ý : 5,500¿ø (ºÎ°¡¼¼ Æ÷ÇÔ)
»óÇ°ÄÚµå : [11639]MAX-ZAS-MIZ-0415
¹è¼ÛÀÏ : ´çÀϹ߼Û
Á¦Á¶»ç : OEM
³²Àº¼ö·® : 3°³
±¸¸Å¼ö·® :
°³
ÃÑ ±Ý¾× :
Ãß°¡&´ë·®±¸¸Å ¿äû 053-588-4080

  • »óÇ°»ó¼¼
  • °ü·Ã»óÇ°
  • ¹è¼Û/±³È¯/¹ÝÇ° ¾È³»
  • »óÇ°¸®ºä
¾ÆµÎÀ̳뿡 ÀûÃþÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ´Â 16x2 LCD ½¯µåÀÔ´Ï´Ù.


Ư¡ (Features) :

  • º¹ÀâÇÑ È¸·Î ±¸¼º¾øÀÌ ³¢¿ì±â¸¸ ÇÏ¸é ¹è¼±Àº ÇØ°áµË´Ï´Ù.

  • ±ÛÀÚ°¡ ³ªÅ¸³ªÁö ¾ÊÀ» ¶§, °¡º¯ÀúÇ×À» ½Ã°è¹æÇâ(¿À¸¥ÂʹæÇâ)À¸·Î µ¹·ÁÁÖ½Ã¸é ±ÛÀÚ°¡ ³ªÅ¸³³´Ï´Ù.


ÇɹèÄ¡ (Pinout) :

  • Ưº°ÇÑ ¿¬°á¾øÀÌ ¹æÇ⸸ ¸Â°Ô ½¯µå¸¦ ³¢¿öÁÖ½Ã¸é µË´Ï´Ù.

  • °¢°¢ÀÇ ¹öÆ°µéÀº ¾Æ³¯·Î±× ÇÉ¿¡ ¿¬°áµÇ¾î ÀÖ°í LCDÀÇ ÇɵéÀº ¾ÆµÎÀ̳ë¿Í ´ÙÀ½°ú °°ÀÌ ¿¬°áµË´Ï´Ù.
    µû¶ó¼­ ¾Æ·¡ÀÇ ÇɵéÀ» Á¦¿ÜÇÑ ÇÉÀ» »ç¿ëÇÏ°í ½ÍÀ» ¶§, ÇÉÇì´õ¸¦ ³³¶«Çؼ­ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.


±¸¼ºÇ° (Component) :

  • ¾ÆµÎÀ̳ë 16x2 LCD Å°ÆÐµå ½¯µå x 1


Âü°íÀÚ·á (noted items) :

  • LCD ½¯µåÀÇ ±âº»ÀûÀÎ »ç¿ë ¿¹Á¦´Â ¿©±â¸¦ Å¬¸¯Çؼ­ È®ÀÎÇØÁֽñ根ٶø´Ï´Ù.
  • ¾ÆµÎÀ̳ë LCD Å°Æе堽¯µå¿Í ÆÄÀ̽ãÀ» ÇÔ²² »ç¿ëÇÑ ¿¹Á¦´Â ¿©±â¸¦ È®ÀÎÇØÁֽñ根ٶø´Ï´Ù.
  • LCD ½¯µå¸¦ ÀÌ¿ëÇÑ ¹èÅ͸® ÀÜ·® Ã¼Å© ¿¹Á¦´Â ¿©±â¸¦ ´­·¯ È®ÀÎÇØÁֽñ根ٶø´Ï´Ù.
  • ¸ÞÄ«¼Ö·ç¼Ç Ä¿¹Â´ÏƼ Mechasolution Blog´Â ¿©·¯°¡Áö Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.


ÇÁ·Î±×·¡¹Ö Äڵ堿¹½Ã (Programming code Example) :

  • LCD ¹à±â Á¶Àý ¿¹½Ã ¼Ò½ºÄÚµåÀÌ´Ï Âü°í¹Ù¶ø´Ï´Ù.

// include the library code:
#include

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

//Key message
char msgs[5][15] = {"Right Key OK ", 
                    "Up Key OK    ", 
                    "Down Key OK  ", 
                    "Left Key OK  ", 
                    "Select Key OK" };
int  adc_key_val[5] ={30, 150, 360, 535, 760 };
int NUM_KEYS = 5;
int adc_key_in;
int key=-1;
int oldkey=-1;
int brightness=250;

void setup() {
  // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("test LCD Keypad 1");
}

void loop() 
{
 
  adc_key_in = analogRead(0);   // read the value from the sensor
  key = get_key(adc_key_in); // convert into key press
  if (key != oldkey) // if keypress is detected
  {
     delay(50);  // wait for debounce time
     adc_key_in = analogRead(0);   // read the value from the sensor
     key = get_key(adc_key_in);    // convert into key press
     if (key != oldkey)
     {
       oldkey = key;
       if (key==1)
       {
         brightness+=25;
         if(brightness>250) brightness=0;
         analogWrite(10,brightness);
         show_brightness();
         lcd.setCursor(0, 1);  //x=0, line=2
         lcd.print("brightness: ");            
       }
       
       if(key==2)
       {
         brightness-=25;if(brightness<0) brightness=250;
         analogWrite(10,brightness);
         show_brightness();
       }
    }
  }   
  
}


int show_brightness(void)
{
 int temp;  
 lcd.setCursor(12, 1);  //x=12, line=2
    temp=brightness/25;
    if(temp>9)
       lcd.print("100%");
    else
      {       
        lcd.print(temp%10+'0');
        lcd.print("% ");
      }
}
       
// Convert ADC value to key number
int get_key(unsigned int input)
{
 int k;    
 for (k = 0; k < NUM_KEYS; k++)
 {
  if (input < adc_key_val[k])
  {           
                return k;
                }
 }    
        if (k >= NUM_KEYS)
        k = -1;     // No valid key pressed
       return k;
}



Âü°íÀÚ·á (noted items) :

  • ¸ÞÄ«¼Ö·ç¼Ç Ä¿¹Â´ÏƼ Mechasolution Blog´Â ´Ù¾çÇÑ Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.

¸ÞÄ«¸®¿öÁî






°ßÀû¿äû
±¸¸Å´ëÇà
Äü/¹æ¹®¼ö·É
ÈĺҰáÁ¦
±â¼ú¹®ÀÇ