Instructables
loading
loading

Kale_3d

  • Date JoinedNov 23, 2013
  • Total Views47,212
  • Featured %18%

Orangeboard

GoleS22 days ago
GoleS1 month ago

i have wired up as you have done,by the way the LCD i have used is called gtc-16026 and i have entered this : char keys[ROWS][COLS] = {


{'A','3','2','1'},


{'B','6','5','4'},


{'C','9','8','7'},


{'D','#','0','*'}

};

// Connect keypad ROW0, ROW1, ROW2 and ROW3 to these
Arduino pins.

byte rowPins[ROWS] = { 1, 12, 16, 15 };

// Connect keypad COL0, COL1, COL2, and COL3 to these
Arduino pins.

byte colPins[COLS] = { 17, 18, 19, 14 };

// Create the Keypad

Keypad kpd = Keypad( makeKeymap(keys), rowPins,
colPins, ROWS, COLS );

///////////////////////////////////////////////////////LCD
SETUP///////////////////////////////////////

LiquidCrystal lcd(2, 3, 13, 8, 9, 10, 11, 4, 5, 6, 7);

but you have said that if i use another LCD than the one you have used I should change the coding, could you please help me with what i should change? i am kind of confused

Kale_3d (author)  GoleS1 month ago
The line "LiquidCrystal lcd(2, 3, 13, 8, 9, 10, 11, 4, 5, 6, 7);" is the only thing you have to change by using a different LCD module there are also some other things in the code that should be changed later if you want to user all of the available squares like scrolling variables but that is a later problem. Adafruit has a guide that is relevant to your specific LCD and explains in depth how to wire and program it. I have linked the specific step with documentation on configuring the line of code you were having trouble with below. https://learn.adafruit.com/character-lcds/using-a-character-lcd
GoleS Kale_3d27 days ago

i tried it but it didn't work, is it possible for you to chat with at gmail? so i can tell you what i have done until now

GoleS1 month ago

hi i was wondering if it is possible to use this keypad instead of that one you have used in making arduino calculator? here is the link of the keypad http://no.farnell.com/eao/eco-16250-06/keypad-4x4-...

could i still use the same coding as you have used or do i need to change something?

sincerely

Kale_3d (author)  GoleS1 month ago
I don't see any reason why that keypad wouldn't work. At first glace it looks like the pinout is the same so you shouldn't have any problems.
GoleS Kale_3d1 month ago

thanx, could i ask you any questions later if i faced any problems? i really appreciate your help. it means a lot for me. you are best. :) wish me good lock