Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi my lcd doesnt display that i was expected. Can anyone help me???

RS-->22 RW-->GROUND E-->23 D4-->24 D5-->25 D6-->26 D7-->27

    #include <LiquidCrystal.h>

LiquidCrystal lcd(22, 23, 24, 25, 26, 27);
void setup() {

lcd.begin(16,2);

lcd.setCursor(0,1);
lcd.print("Hello!");
delay(1000);
}
void loop() {
lcd.setCursor(0,1);
lcd.print(millis()/1000);
}

enter image description here

share|improve this question
1  
Have you tried turning the trim pot? It could be a contrast issue – evolutionizer Aug 14 '15 at 15:18
    
yes. i add lcd clear commant and shakes the cables and the problem is solved! – kosar Aug 14 '15 at 17:10
up vote 3 down vote accepted

I Had a similar problem with a different display, It looks like you are printing the value without clearing the display so all the numbers print on top of each other creating those squares. try adding lcd.clear() in the loop to clear the display before it prints another value.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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