+

SUO-A.D.N LCD1602 Character LCD Input And Output Expansion Board (H6B3)

USD 2.07USD 2.30

SUO-A.D.N LCD1602 Character LCD Input And Output Expansion Board (H6B3)

Description

  LCD1602 character LCD input and output expansion board Keypad Shield

Information download address:

Http://yunpan.taobao.com/s/1ol25MFk

LCD Keypad Shield input and output expansion board using two lines of 16 characters LCD, with contrast adjustment and backlight, the use of an analog port to complete the five key input, a reset button, the unused IO port are extended out, Make full use of IO port. Occupied digital port: PIN4 (DB4), 5 (DB5), 6 (DB6), 7 (DB7), 8 (RS), 9 (E), 10 (backlight control), analog key port A0.Use with Ar.duino:

 Pin definition:

Module debugging:

Plug the LCD Keypad Shield onto the Ar.duino controller and download itLCD4Bit_mod.h(Right save as) library file to Ar.duino-0015 \\ hardware \\ libraries, then compile the following test program and then download to Ar.duino, the initial use of LCD Keypad Shield, first observe the LCD has no display characters, If there is no display of characters that may be contrast is not correct, you can use the word screwdriver to adjust RP1 (clockwise rotation), transferred to the clear character can be.

Professional anti-static packaging:

Test results:

GP2D12 Ranging Code:

#include

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 {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 tmpTmp = analogRead (pin);If (tmp Return (6787.0 / ((float) tmp - 3.0)) - 4.0; 

 

 

 

 

 

 

 

 

 

 

 

 

Specification

Brand Name : KAI TUO DA

Supply Voltage : Datasheet

Type : Other

is_customized : Yes

Model Number : Title & photo

Dissipation Power : Datasheet

Operating Temperature : Datasheet

Origin : Mainland China

Application : Other

Condition : New

+