keyestudio
www.keyestudio.cc
121
5
R/W
Select read/write(H/L)
13
D6
Date I/O
6
E
Enable signal
14
D7
Date I/O
7
D0
Date I/O
15
BLA
Back light power positive
8
D1
Date I/O
16
BLK
Back light power negative
Interface description:
1. two power sources, one for module power, another one for back light, generally use 5V. In this
project, we use 3.3V for back light.
2. VL is the pin for adjusting contrast ratio; it usually connects a potentiometer(no more than 5KΩ)
in series for its adjustment. In this experiment, we use a 1KΩ resistor. For its connection, it has 2
methods, namely high potential and low potential. Here, we use low potential method; connect the
resistor and then the GND.
3. RS is a very common pin in LCD. It's a selecting pin for command/data. When the pin is in high
level, it's in data mode; when it's in low level, it's in command mode.
4. RW pin is also very common in LCD. It's a selecting pin for read/write. When the
pin is in high level, it's in read operation; when it's in low level, it's in write operation.
5. E pin is also very common in LCD. Usually, when the signal in the bus is stabilized, it sends out
a positive pulse requiring read operation. When this pin is in high level, the bus is not allowed to
have any change.
6. D0-D7 is 8-bit bidirectional parallel bus, used for command and data transmission.
7. BLA is anode for back light; BLK, cathode for back light.
4 basic operations of 1602LCD:
Read status
input
RS=L, R/W=H, E=H
output
D0-D7=status word
Write command input
RS=L, R/W=H, D0-D7=command
code, E=high pulse
output
none
Read data
input
RS=H, R/W=H, E=H
output
D0-D7=data
Write data
input
RS=H, R/W=L, D0-D7=data,
E=high pulse
output
none
Connection & sample program
1602 can directly communicate with Arduino. According to the product manual, it has two
connection methods, namely 8-bit connection and 4-bit connection.
8-bit connection method:
Summary of Contents for ARDUINO maker learning kit
Page 1: ...keyestudio www keyestudio cc ARDUINO maker learning kit...
Page 23: ...keyestudio www keyestudio cc 21 Connection for 2560 R3...
Page 30: ...keyestudio www keyestudio cc 28 Connection for 2560 R3...
Page 39: ...keyestudio www keyestudio cc 37 Connection for 2560 R3...
Page 43: ...keyestudio www keyestudio cc 41 Connection for 2560 R3...
Page 46: ...keyestudio www keyestudio cc 44 Connection for 2560 R3...
Page 50: ...keyestudio www keyestudio cc 48 Connection for 2560 R3...
Page 58: ...keyestudio www keyestudio cc 56 Connection for 2560 R3...
Page 62: ...keyestudio www keyestudio cc 60 Connection for 2560 R3...
Page 65: ...keyestudio www keyestudio cc 63 Circuit connection Connection for R3...
Page 66: ...keyestudio www keyestudio cc 64 Connection for 2560 R3...
Page 69: ...keyestudio www keyestudio cc 67 Pic 2 Project 15 LM35 temperature sensor...
Page 71: ...keyestudio www keyestudio cc 69 Connection for 2560 R3 Sample program...
Page 74: ...keyestudio www keyestudio cc 72 Schematic diagram...
Page 77: ...keyestudio www keyestudio cc 75 Circuit connection Connection for R3...
Page 78: ...keyestudio www keyestudio cc 76 Connection for 2560 R3...
Page 80: ...keyestudio www keyestudio cc 78 Result...
Page 82: ...keyestudio www keyestudio cc 80 Connection for 2560 R3...
Page 85: ...keyestudio www keyestudio cc 83 Schematic diagram Circuit connection Connection for R3...
Page 91: ...keyestudio www keyestudio cc 89 Circuit connection Connection for R3...
Page 92: ...keyestudio www keyestudio cc 90 Connection for 2560 R3...
Page 95: ...keyestudio www keyestudio cc 93...
Page 96: ...keyestudio www keyestudio cc 94...
Page 104: ...keyestudio www keyestudio cc 102 Connection for 2560 R3...
Page 111: ...keyestudio www keyestudio cc 109 Connection for R3 Connection for 2560 R3...
Page 120: ...keyestudio www keyestudio cc 118 Connection for 2560 R3...
Page 124: ...keyestudio www keyestudio cc 122 Connection for R3 Connection for 2560 R3...
Page 135: ...keyestudio www keyestudio cc 133 Connection for R3 Connection for 2560 R3...
Page 139: ...keyestudio www keyestudio cc 137 Circuit connection Connection for uno R3...
Page 140: ...keyestudio www keyestudio cc 138 Connection for 2560 R3...
Page 144: ...keyestudio www keyestudio cc 142 Circuit connection Connection for R3...
Page 145: ...keyestudio www keyestudio cc 143 Connection for 2560 R3...
Page 148: ...keyestudio www keyestudio cc 146 Connection for 2560 R3 Sample program...
Page 155: ...keyestudio www keyestudio cc 153 Circuit connection Connection for R3...
Page 156: ...keyestudio www keyestudio cc 154 Connection for 2560 R3...
Page 160: ...keyestudio www keyestudio cc 158 Connection for 2560 R3...