Go Down

Topic: LCD Display Problem - Need help ! (Read 98 times) previous topic - next topic

theluke

Hey Guys

I am trying to show a simple "Hello World"  on my LCD-Display (Its the one included in the starter-box).

I Think i made a correct wiring.. but the Display only shows some Squares on the top (or is it the bottom) line. Any other Posts in this Forum didnt help me a lot. So i hope you can give me so advice.

This how i tyied to do it:



And this is  the plan:



And this is the code i use:

Code: [Select]

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 0);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis()/1000);
}



floresta

#1
Feb 21, 2015, 10:51 pm Last Edit: Feb 21, 2015, 11:00 pm by floresta
I cannot reliably follow all of the wires between the Arduino and the LCD module but it seems to me that your data and control lines, the six wires called out in the LiquidCrystal lcd(...); statement, are not connected properly.  They seem to be almost exactly backwards.

Perhaps an additional comment, cleverly omitted in the example, will clear things up.

Code: [Select]

// LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);                // put your pin numbers here


Also - I don't see that LCD pin 5 is connected to GND. 

If you take another picture try moving the camera away from the equipment and zooming in.  That may eliminate some of the parallax error.

Don

theluke

Yeah.. Almost exactly backwards ! Works fine now! Thank you for your answer!

Luke

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy