Sunteți pe pagina 1din 5

1/6/2015

LCDShieldblwiki

LCDShield
Fromblwiki

Contents
1LCDKeypadShields(DFRobottype)
2SchematicPins
3ButtonProblems
4BetterApproach?
5Links

LCDKeypadShields(DFRobottype)
http://robotbase.en.alibaba.com/product/357645038211868459/LCD1602_keypad_shield_v2_0.html

CommonlyavailableLCD16x2Keypadshield
TheredLEDisgoodfordevelopmentwhenyouwanttoknowifyourshieldisgettingpower,butit's
reallyannoyingwhenyouwanttotakeapictureorshootsomevideosinceitseemstomesswiththe
autofocusonmycamera.
Noticethatrightonthesilkscreenofthepartismisspelledas"RIGTH".Theentertainingpartishow
manyotherChinesecloneboardshavethesamemisspelling.
MyfirstapproachwastobuyapremadeshieldfortheArduino.Itseemedlikeagoodideasinceitwas
lessthan$10(shippedfromHongKongorChina),buttherearesomedownsidestothisapproach.
Ituses7ofthe14I/OPinsandoneanaloginputline(ontheUNO)
http://landboards.com/blwiki/index.php?title=LCD_Shield

1/5

1/6/2015

LCDShieldblwiki

DigitalI/Opins49forthedatainterface
Digitalpin10forthebacklight(PWMcontrol)
AnalogA0pinforthekeypad
TheshielddoesintelligentlyroutetheunusedArduinopinstoexpansionpinsontheshield.Tousethese
pinseitheraheader(maletomale)orsocket(maletofemale)needstobesolderedtotheshield.Iwould
solderthepinssotheyaresolderedfromthedisplaysideandgodown.Thatwaytheboardcouldbe
mountedtosomething.Alternately,wirescouldbesoldereddirectlytotheshieldpins.

SchematicPins
Fromtheschematic:
Arduinopin
Dig0(Rx)

LCDShieldpin
J57

Dig1(Tx)

J56

Dig2
J55
Dig3(PWM) J54
Dig11(PWM) J53
Dig12
Dig13

J52
J51

Analog1

J65

Analog2
Analog3

J64
J63

Analog4

J62

http://landboards.com/blwiki/index.php?title=LCD_Shield

2/5

1/6/2015

LCDShieldblwiki

Analog5
Reset

J61
J76

VCC

J74

GND
GND

J73
J72

VIN

J71

ButtonProblems
Anotherproblemiswiththebuttonsonthiskeypad.Theyaregreatforprototyping,butIcan'tfigureout
howtousethisshieldinanenclosureandbeabletogettothebuttons.Idon'twantanyonetodirectly
touchthebuttonsandbringanESDchargeontotheunit.Ican'tfindthebuttonshaftsthatIwouldneed
tomountonapaneltotransferthepushtotheswitch.

BetterApproach?
ThereareI2Cdisplaysavailableforthearduino(http://www.robotshop.com/dfroboti2ctwilcd1602
module.html)foraround$15shippedfromChinaonEbay).Theyarenotshieldsandrequireexternal
wiringbutonlyusetwooftheArduinopins(Analog4,5pinsontheUnowhichimplementtheI2C
interface).Theyalsoneed+5VandGround.TheyaretheLCDpartofthisdisplaybutwithasmall
(about$10)cardwhichimplementstheI2Cinterfaceandconvertsthesignalstoparallelinterfaces.

http://landboards.com/blwiki/index.php?title=LCD_Shield

3/5

1/6/2015

LCDShieldblwiki

Theinterfacetothekeysconsistsofavoltagedividerusingresistorswhichareallonasingleanalog
inputtotheArduino.Thissamecircuitcouldeasilybeusedwithfiveindividualpanelmountswitches
andfiveresistors.

Substitutingforcommonvalues:
SwitchPressed

Resistanceto
ground

Resistance
accum

Right

Resistanceto
VCC

Output
Volts

Exact
Count

Min Max

2149

0.0

67

Up
Down
Left

330
560
1000

330
890
1890

2149
2149
2149

0.7
1.5
2.3

136
300
479

68 218
218 389
389 601

Select
None

3300

5190

2149

3.5
5.0

723
1023

601 873
873 1023

Thekeypadshieldisgreatfordevelopmentbutnotagoodforrealapplications.Myrecommendationto
anyonebuildinganLCDpanelistogetonewiththeI2CconnectoranduseourSw5Wayboardfor
navigationallinasinglebutton.

Links
LCD1602KeypadShield(http://robotbase.en.alibaba.com/product/357645038
211868459/LCD1602_keypad_shield_v2_0.html)
DFRobotKeypadShield(http://www.dfrobot.com/wiki/index.php?
title=Arduino_LCD_KeyPad_Shield_%28SKU:_DFR0009%29)
http://landboards.com/blwiki/index.php?title=LCD_Shield

4/5

1/6/2015

LCDShieldblwiki

Schematic(http://www.dfrobot.com/wiki/images/a/a7/LCDKeypad_Shield_SCH.png)
Library(http://www.dfrobot.com/index.php?
route=product/product&keyword=lcd&category_id=0&product_id=51)
Retrievedfrom"http://landboards.com/blwiki/index.php?title=LCD_Shield&oldid=97"

Thispagewaslastmodifiedon9January2014,at07:04.
Thispagehasbeenaccessed296times.

http://landboards.com/blwiki/index.php?title=LCD_Shield

5/5

S-ar putea să vă placă și