I set up a circuit that programs an LCD to print text, but my LCD does not print the text that I want to
print. The LCD turns on, but does not print text.
Board: Arduino Uno
LCD: Hitachi HD44780 Driver LCD
Here is the code:
//LCD text with incrementing number
//Include the library code:
include <LiquidCrystal.h>
//Start the time at 0
int time = 0;
//Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
void setup()
{
//Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
//Print a message to the LCD.
lcd.print("Jeremy's Display");
}
void loop()
{
//Move cursor to second line, first position
lcd.setCursor(0, 1);
//Print Current Time
lcd.print(time);
//Wait 1 second
delay(1000);
//Increment the time
time++;
}
Go and read the instructions, then go back and modify your post to mark up the code as such so we can examine it conveniently and accurately.
At present, that is not the main problem.
Now, provide the link to your display and the wiring diagram you are using, and a perfectly focussed photo showing all parts of your rig and allowing all connections to be traced.
Perhaps you did, but you need to post it on a reputable image hosting site - not that garbage one.
Look, I am reluctant to say this, but perhaps just ensure it is less than a megabyte and "attach" it to your post.
While you are at it, please go back to your first post, choose "More --> Modify" in the bottom right corner and put "code" tags around your code according to the instructions I pointed you to earlier.
Here is the code that I have modified so that it can be examined accurately and conveniently
//LCD text with incrementing number
//Include the library code:
include <LiquidCrystal.h>
//Start the time at 0
int time = 0;
//Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
void setup()
{
//Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
//Print a message to the LCD.
lcd.print("Jeremy's Display");
}
void loop()
{
//Move cursor to second line, first position
lcd.setCursor(0, 1);
//Print Current Time
lcd.print(time);
//Wait 1 second
delay(1000);
//Increment the time
time++;
}
Here is the code that I have modified so that it can be examined accurately and conveniently
So it has taken 8 days to get the first part of reply #1 dealt with. At this rate we may be able to get everything fixed up by Christmas . . . in 2017.
OK, now we get to Floresta's reply #2 - we are really racing along, aren't we?
May I suggest you go back and use the "More --> Modify" option below and to the right of your first post to mark up the code as such, otherwise people tend to look at it and conclude that it is not worth even looking at anything that follows.
And we still haven't seen the photo. Look, just use the "attach" function even though I detest it, to post a photo reduced with a photo editor, to less than a megabyte (or whatever the limit is). At least I can then see it with some ornate jiggery-pokery.
It is perhaps a little misleading that this control is referred to as a "contrast" control. It is more correctly a "bias" control that needs to be set to provide correct operation of the LCD. As the LCD is not a grey-scale display, there is simply one correct setting to provide a clear display.
d3l9j7:
I set up a circuit that programs an LCD to print text, but my LCD does not print the text that I want to
print. The LCD turns on, but does not print text.
Board: Arduino Uno
LCD: Hitachi HD44780 Driver LCD
Here is the code:
//LCD text with incrementing number
//Include the library code:
include <LiquidCrystal.h>
//Start the time at 0
int time = 0;
//Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
void setup()
{
//Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
//Print a message to the LCD.
lcd.print("Jeremy's Display");
}
void loop()
{
//Move cursor to second line, first position
lcd.setCursor(0, 1);
//Print Current Time
lcd.print(time);
//Wait 1 second
delay(1000);
//Increment the time
time++;
}
//LCD text with incrementing number
//Include the library code:
include <LiquidCrystal.h>
//Start the time at 0
int time = 0;
//Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
void setup()
{
//Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
//Print a message to the LCD.
lcd.print("Jeremy's Display");
}
void loop()
{
//Move cursor to second line, first position
lcd.setCursor(0, 1);
//Print Current Time
lcd.print(time);
//Wait 1 second
delay(1000);
//Increment the time
time++;
}