LCD1602 character LCD, input and output expansion board, LCD Keypad Shield for ARDUINO

LCD1602 character LCD, input and output expansion board, LCD Keypad Shield for ARDUINO

View More

6,03

(9 customer reviews)

Attualmente disponibile su ordinazione con consegna prevista entro 60 giorni circa dall'acquisto.

QuantitàPrezzo Unitario
12 - 49 5,43
50 - 99 4,82
100 + 4,22

Product Description

 

LCD1602 character LCD, input and output expansion board, LCD Keypad Shield for ARDUINO  

LCD Keypad Shield input and output expansion board using the 2-line, 16-character LCD with contrast adjustment and backlight will complete five key input, use an analogport, a reset button, the the unused IO port expansion out sparemake full use of the IO port. Occupancy digital port: PIN4 (DB4), 5 (DB5), 6 (DB6), 7 (DB7), 8 (RS), 9 (E), 10(backlight control), the analog button port A0. Used in conjunction with Arduino:

 

Pin definitions:

 

Module debugging:

       LCD Keypad Shield plugged into the Arduino controller, then you need to download LCD4Bit_mod.h (Right click to save) library files arduino-0015 \ hardware \ librariesand then downloaded to the Arduino, then compile a test program, the initial LCD Keypad Shield, the first observation of the LCD has no display character, if the characteris not displayed that may be incorrect contrast, you can use a flathead screwdriver to adjust the RP1 (clockwise rotation), transferred to appear clearly characters can.

 

Professional anti-static packaging

Figure of test results:

 

 

GP2D12 ranging code:

# include <LCD4Bit_mod.h>

LCD4Bit_mod lcd = LCD4Bit_mod (2);

char GP2D12;
char a, b;
char str1 [] = “Renge:”;
char str2 [] = “Renge Over”;
char str3 [] = “cm”;

void setup ()
{
  lcd.init ();
  lcd.clear ();
  lcd.printIn (“GP2D12 testing …”);
}

void loop ()
{
      GP2D12 = read_gp2d12_range (1);
      if (GP2D12> 80 | | GP2D12 <10)
        {
          lcd.cursorTo (2,0);
          lcd.printIn (str2);
        }
      else
        {
          a = 0x30 + GP2D12/10;
          b = 0x30 + GP2D12% 10;
          lcd.cursorTo (2, 3);
          lcd.printIn (str1);
          lcd.print (a);
          lcd.print (b);
          lcd.printIn (str3);
        }
    delay (50);
}

float read_gp2d12_range (byte pin)
{
 int tmp;
 tmp = analogRead (pin);
 if (tmp <3) return -1;
 return (6787.0 / ((float) tmp – 3.0)) – 4.0;

Abbiamo disponibili datasheet di tutti i componenti, qualora non fosse presente nella scheda download del prodotto inviaci un messaggio dal modulo contattaci e lo pubblicheremo il prima possibile nel nostro sito.

Facebooktwitterredditpinterestlinkedinmail

There are no reviews yet.

Be the first to review “LCD1602 character LCD, input and output expansion board, LCD Keypad Shield for ARDUINO”