1
\$\begingroup\$

enter image description here

Hello, actually I am very new in electronics. Im using this as a reference in connecting lcd and 4x4 keypad in my my controller ( an arduino clone) Gizduino ATMEGA644 but I'm having a problem because of its pin different pin description.

enter image description here

When I tried connecting it the same with my reference (without looking at the pin description)I'm only having black box in the lcd after uploading a sample program. can someone help me?

this is the connection I used:

enter image description here

\$\endgroup\$
  • \$\begingroup\$ Is this a follow-on to your previous question or are you using a different LCD this time? \$\endgroup\$ – RedGrittyBrick Jan 12 '14 at 1:18
  • \$\begingroup\$ @RedGrittyBrick Actually im using a different lcd this time. Im using an lcd like on my reference. \$\endgroup\$ – NewInEverything Jan 12 '14 at 1:20
  • \$\begingroup\$ @RedGrittyBrick I am using standard lcd and 4x4 keypad connected to my microcontroller via breadboard GPIO pins \$\endgroup\$ – NewInEverything Jan 12 '14 at 1:27
2
\$\begingroup\$

Where the sketch initialises the LiquidCrystal library, substitute the pin numbers you are actually using

LiquidCrystal lcd(13,12,11,10,9,8); // RS, Enable, D4,D5,D6,D7

The Arduino Uno in your Fritzing diagram has the following pinout

enter image description here

You GizDuino+ has

enter image description here

The usual LCD pinout is

enter image description here

So you are possibly using pins 8-13 instead of 0-5 (4 x data, enable, rs)

If you installed the gizDuino cores in the Arduino IDE, you should be using 8-13, the compiler will produce the correct code

\$\endgroup\$
  • \$\begingroup\$ So I need to connect the yellow wires to pins 8-13 of my gizduino ? \$\endgroup\$ – NewInEverything Jan 12 '14 at 1:43
  • \$\begingroup\$ @New: you can connect them to almost any pins (that are not already in use), Just put those pin numbers into the LiquidCrystal lcd(...); statement (in the right order). See the Manual \$\endgroup\$ – RedGrittyBrick Jan 12 '14 at 1:45
  • \$\begingroup\$ so I need to change this code LiquidCrystal lcd(12, 11, 5, 4, 3, 2); to which ever pin i used? \$\endgroup\$ – NewInEverything Jan 12 '14 at 2:04
  • \$\begingroup\$ @New: That is right. \$\endgroup\$ – RedGrittyBrick Jan 12 '14 at 2:09
  • \$\begingroup\$ I did change the codes into this LiquidCrystal lcd(15, 14, 13,12, 11, 8); but still i got no output but black boxes . \$\endgroup\$ – NewInEverything Jan 12 '14 at 2:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.