More Views

LCD1602 character LCD input and output expansion board LCD Keypad Shield

AF0506185803

Available

Quick Overview

Seller Name : Xin Zhan
Best Quality Wholesale Price
Rs316.00
Cash-On-Delivery: Not Available for this product

OR

Details

Product Details

 

 

Arduino compatible LCD1602 Character LCD expansion board , PCB Immersion Gold processing technology, full use of materials, the use of motherboard 2 Row 16 Character LCD, not only has the contrast adjustment knob, backlight selector switch, also has 4 Direction buttons, 1 Selection buttons and a reset button; this 1602 The simplified circuit LCD expansion board in the true sense, this directly insert plate Arduino compatible Duemilanove The controller can .

Specifications

1 . Module size: 20.5mm 41mm

 

 

2 . Unit weight: 57g

1602 Character LCD Brief introduction

1602LCD The main technical parameters:

 

1 . Display capacity: 16 2 Characters

2 . Chip operating voltage: 4 . 5 5 . 5V

3 . Working current: 2 . 0mA (5 . 0V)

4 . Module optimum operating voltage: 5 . 0V

5 . Character size: 2 . 95 4 . 35 (W H) mm

 

 

 

1 VSS Power Ground 9 D2 data

 

2 VDD The positive power supply 10 D3 data

3 VL LCD bias 11 D4 data

4 RS data / Choose Commands 12 D5 data

5 R / W read / Write Select 13 D6 data

6 E Enable signal 14 D7 data

7 D0 data 15 BLA Backlight positive

8 D1 data 16 BLK Backlight negative

Article 1 foot: VSS A ground power supply.

Article 2 foot: VDD Meet 5V Positive supply.

Article 3 foot: VL A liquid crystal display contrast adjustment end, connected to the positive supply when the weakest contrast, when the grounding contrast

The highest contrast ratio will produce too high Ghosting , When used by a 10K Potentiometer to adjust the contrast.

Article 4 foot: RS Register selection, select the data register high, low selection instruction register.

Article 5 foot: R / W Read-write signal line, a read operation is high, the write operation is low. when RS

and R / W Common is low can be written instruction or display address, when RS Low R / W Is high

You can read busy signal, when RS It is high R / W Is low data can be written.

Article 6 foot: E End to enable end, when E When Duanyou high jump into a low, the LCD module execute the command.

Article 7 ~ 14 foot: D0 ~ D7 for 8 Bit bidirectional data line.

Article 15 Feet: Backlight positive.

Article 16 Feet: Backlight negative.

1602LCD Instructions Description:

1602 LCD module inside the controller has 11 Control instruction, such as the table shown below:

Number Command RS R / W D7 D6 D5 D4 D3 D2 D1 D0

1 Clear screen 0000000001

2 Cursor returns 000000001 *

 

3 Set the input mode 0 0 0 0 0 0 0 1 I / D S

4 Display ON / OFF control 0 0 0 0 0 0 1 D C B

5 Shift cursor or character 0 0 0 0 0 1 S / C R / L * *

6 Set function 0 0 0 0 1 DL N F * *

7 Set character generator memory address 0001 Character generator memory address

8 Set data memory address 001 The display data memory address

9 Read busy flag or address 0 1 BF Address counter

10 Write data to CGRAM or DDRAM 10 Write data content

11 From CGRAM or DDRAM reading 11 Data read out contents

1602 LCD module to read and write operations, the screen and cursor operations are programmed by instructions to achieve. Explanation: 1 It is high, 0 Low

instruction 1 : Clear display, script 01H, The cursor is reset to address 00H position.

instruction 2 : Cursor reset, the cursor returns to the address 00H .

instruction 3 : Cursor and display mode settings I / D : Direction of movement of the cursor, high right, low left S:

Whether all the text on the screen left or right. High indicates active low is invalid.

instruction 4 : Display switch control. D : Control the overall display on and off, open the display indicates high, low

Ping said off display C : Control the cursor on and off, there is high that the cursor indicates a low level without the cursor B :control

Made whether the cursor is blinking, flashing high, low, not blinking.

instruction 5 : Cursor or display shift S / C : Text mobile display a high level, the low level to move the cursor.

instruction 6 : Function Set command DL : High level of 4 Bit bus, is low 8 Bit bus N : Low

Usually a single line display, a high level two-line display F: Low display 5x7 Character dot matrix display at a high level

5x10 Dot matrix characters.

instruction 7 : Character Generator RAM Address settings.

instruction 8 : DDRAM Address settings.

instruction 9 : Read the busy signal and the cursor address BF : Busy flag high that busy, the module can not be connected

Receive commands or data, if low representation busy.

instruction 10 : Write data.

instruction 11 : Read data.

versus HD44780 Compatible chip schedule is as follows:

Read input status RS = L , R / W = H , E = H D0 D7 = Status Word

Write command input RS = L , R / W = L , D0 D7 = Script, E = High pulse output None

 

Read Data Input RS = H , R / W = H , E = H D0 D7 = data

Write data input RS = H , R / W = L , D0 D7 = data, E = High pulse output None

 

1602LCD General Initialization Reset process:

Delay 15mS

Write instruction 38H No busy signal detection

 

Delay 5mS

Write instruction 38H No busy signal detection

Delay 5mS

Write instruction 38H No busy signal detection

After each write command, read / Write data operations are necessary to detect a busy signal

Write instruction 38H : Display mode settings

Write instruction 08H : Show Close

Write instruction 01H : Clear screen display

Write instruction 06H : Move the cursor display settings

Write instruction 0CH : Display ON and set the cursor

AUDUINO Official routines:

// Example use of LCD4Bit_mod library

#include LCD4Bit_mod.h

// Create object to control an LCD.

// Number of lines in display = 1

LCD4Bit_mod lcd = LCD4Bit_mod (2);

 

// 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;

 

void setup () (

pinMode (13, OUTPUT); // We'll use the debug LED to output a heartbeat

 

lcd.init ();

// Optionally, now set up our application-specific display settings, overriding whatever the lcd did in lcd.init ()

//lcd.commandWrite(0x0F);//cursor on, display on, blink on. (Nasty!)

lcd.clear ();

lcd.printIn ( "KEYPAD testing ... pressing");

 

)

 

void loop () (

 

adc_key_in = analogRead (0); // Read the value from the sensor

digitalWrite (13, HIGH);

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 = 0) (

lcd.cursorTo (2, 0); // Line = 2, x = 0

lcd.printIn (msgs [key]);

)

)

)

 

// Delay (1000);

digitalWrite (13, LOW);

)

 

// 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;

)

LCD4Bit_mod.h



Related Images







Additional Information

SKU AF0506185803
Cash on Delivery No

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.

Don't Miss Out

Stay up-to-date with the latest news, hottest trends and new arrivals direct to your inbox

//inkocean pagelog