Hi, so I am having problems with my new LCD Display. I haven't ever used one before, but I got some sample code:
#include "LiquidCrystal.h"
// initialize the library by providing the nuber of pins to it
LiquidCrystal lcd(8,9,4,5,6,7);
void setup() {
lcd.begin(16,2);
// set cursor position to start of first line on the LCD
lcd.setCursor(0,0);
//text to print
lcd.print(" COUNTER");
delay(100);
int a=0;
lcd.setCursor(0,1);
lcd.print(" ");
lcd.print(a);
while(a<=100)
{
a=a+1;
delay(1000);
lcd.setCursor(0,1);
lcd.print(" ");
lcd.print(a);
}
}
void loop()
{
lcd.clear();
}
I meant the Potentiometer Do you mean a link to where I bought the LCD? I thought they were all the same. Here is the link to where I bought it: Amazon.com
#include "LiquidCrystal.h"
// initialize the library by providing the nuber of pins to it
LiquidCrystal lcd(8,9,4,5,6,7);
void setup() {
lcd.begin(16,2);
}
void loop() {
lcd.setCursor(0,1);
lcd.print("Hello World");
}
I then turned the pot slowly back and forth and nothing happened.
Ok, so as I was messing around with it, I accidentally bumped it, and then stuff flickered on. I figured out that if I bend it around, then I can get it to work a little. At one point, I got it just right so that it said the right words and everything. However, I can't get it in just the right bend again. I have it on some male pins out from my breadboard, but I don't know how to get it to connect better.
There is an old saying - it works better when you plug it in.
I guess my comment about NOT running ANY code and then adjusting the pot did not sink in.
Just connect the + and grounds to BOTH LCD supply and backlight LED and do you intensity adjustment after
the device goes thru its power-on sequence - automatically.
.
It is possible that your is also controlling the backlight so you are better off not running code until you have working hardware.
Not to worry about how much power you drawing - these LCD been around for few yeas and are not that
hungry by itself - its the backlight LED that takes few mA.
Okay guys, thanks for all the question helps, I think I got it mostly figured. So, I was just using some straight male to male pins from my breadboard to each hole in the LCD, and when I gently bent/tipped the lcd display backward or forward, it would sometimes work. So then I knew that it was a problem of bad connectivity. And then, yes, I soldered the pins to the LCD, and now it works great. Will it work to use my IR Remote to change the text on the LCD?
Vulcan666:
Okay guys, thanks for all the question helps, I think I got it mostly figured. So, I was just using some straight male to male pins from my breadboard to each hole in the LCD, and when I gently bent/tipped the lcd display backward or forward, it would sometimes work. So then I knew that it was a problem of bad connectivity.
Never use loose connections; recipe for problems (as you have figured).
Vulcan666:
Will it work to use my IR Remote to change the text on the LCD?
Okay, thanks so much, it works now. However, now it says howdyhowdyhowdyhowdy without end, how do I make it say it once? I put it on those pins because I looked up a diagram and that was how it was wired. Guess they didn't have ir remote plans in mind:)