Activity › Forums › Questions & Troubleshooting › Lcd(20*4) keypad shield
-
Lcd(20*4) keypad shield
-
Hello All,
I am facing problem with my Lcd keypad shield. It is working fine with Arduino Nano, Mega and Uno. But, whenever i am connecting it with controllino maxi, i am not getting any output. i can see that my Analog pin (A0) led is blinking whenever i press any key.
That’s the basic circuit i am using.
https://create.arduino.cc/projecthub/greatbim/lcd-keypad-shield-c87403
i hope somebody can help me out in this regards.
Thanks in Advance.
Greetings
Ashish -
Hello Ashish
If you are using I2C try using this library:
https://community.controllino.com/forums/discussion/lcd204-keypad-shield/
The code is below code below:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
void setup()
{
lcd.begin(20,4);
lcd.setCursor(3,0);
lcd.print(“Hello YouTube!”);
lcd.setCursor(8,1);
lcd.print(“****”);
lcd.setCursor(0,2);
lcd.print(“This is a demo text”);
lcd.setCursor(8,3);
lcd.print(“****”);
}
void loop()
{
}
-
Hello Kudz,
Thank you so much for your response.
Unfortunately, the link you shared with me its not working.
-
I found its Solution.
#include <Wire.h>
#include <LCD.h> /*Positive was not define in my L2C library*/
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address
void setup()
{
lcd.begin(20,4);
lcd.setCursor(3,0);
lcd.print(“Hello YouTube!”);
lcd.setCursor(8,1);
lcd.print(“****”);
lcd.setCursor(0,2);
lcd.print(“This is a demo text”);
lcd.setCursor(8,3);
lcd.print(“****”);
}
void loop()
{
}
-
Hello Ashish,
is the display working fine now?
And what about the buttons? I assume that you connected them to A0 pin at X1 pinheader, right?
Thanks,
Lukas
-
Hello Lukas,
Yes, my display is working fine.
However, i still have some problem with my keypad. I am getting response with delay.
Yes, i have connected it to A0 in X1
Thanks
Ashish
-
Hello Lukas,
Finally i figured it out my mistake with Keypad. i was thinking that it can initialize with same value (Analog A0) as in Arduino. But i need to change it and now its working fine.
Thanks
Ashish
-
-
-
Log in to reply.