lcd black boxes

my lcd which is of 16x2 isnt getting any characters on it
all of my gonnection are perfectly right.
here are my connections.

lcd pins--- arduino pins.

pin1--gnd
pin2--5v
pin3--pot middle pin
pin4--12
pin5-gnd
pin6--11

D4--5
D5--4
D6--3
d7--2

15-5v
16--gnd

im still getting black boxes only.

help me through this plss

If your connections are right, why bother showing us that part?
If your connections are right, then it's probably your program that's wrong.
Show us that.

my code is the normal hello world one only which is there in the examples.

i dont know its really annoying seeing that it appears only black box and not the text

And you have tried adjusting the contrast?

yes i did, but on adjusting eithr it is going blank or iys showing boxes

Then without seeing your code and based on my experience, you have a bad LCD or your wiring is not perfect.

i hve changed my lcd and checked and even i have chnaged my arduino board too
then too iys the same thing

Which Arduino board are you using?
Can you post a photo of your wiring?
You have tried a different Arduino and a different LCD, but used the same code?

Hi,
We need to see;

  • Your code, in code tags.
  • A circuit diagram, with pin labels and powersupply.
  • A picture of your project, so we can see your component layout.

Tom.... :slight_smile:

Without seeing your code, without proof that your wiring is in fact 'perfectly right', without any details about what it is you've done, one can only assume that you are posting here for emotional support and sympathy, not to get help with fixing anything.

Poor baby, I am sorry that you are in a situation that is upsetting you. You will get through this. You are a valuable person to this world regardless of your failures.

There.

yes im am about to upload my details.

here is my connections.

im using Ardiuno uno
.
im using 10k potentiometer.

lcd connection.

LCD-----ARDIUNO.

1---GND
2---5v
3-middle pin of pot
4-12
5-GND
6-11

D4-5
D5-4
D6-3
D7-2

15-5v
16-gnd.

#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // 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);
}

here is the images.

2nd imahge

Your list of connections (which looks correct to me) has an inconsistency:

  • You start with pin numbers in the left hand column for pins 1 to 6
  • You then change to signal names for D4, D5, D6, and D7
  • You revert back to pin numbers for pins 15, and 16

Could you change the signal names to pin numbers, so that we know exactly how you have it connected.
For full clarity, you also aught to designate the 4 pins that are not used as 'not connected' .

....or a photograph of your setup would be useful.
[edit: you posted your photographs whilst i was typing my reply.]

Hi,
Check ;

  • where your D5 wire on the LCD goes to on the Uno, It should be Pin4 on the UNO, not pin 2
  • where your D7 wire on the LCD goes to on the Uno, It should be Pin2 on the UNO, not pin 4

You need to sit down and draw a schematic, you would have noticed the difference almost instantly.

Tom... :slight_smile:

At the LCD end your wires of D4, D5,D6 and D7 come in the following order: Orange, Red, Purple, Yellow.
At the Arduino end your wires to pins 5, 4, 3, 2 come in the following order: Orange, Yellow, Purple, Red.

shrikant_arts:
all of my connections are perfectly right.

lcd pins--- arduino pins

GND--GND
VCC---5V
V0-- MIDDLE PIN OF POT
RS--12
R/W--GND
E--11
DB4--5
DB5--4
DB6--3
DB7--2

A--5V
K--GND

THESE ARE THE CONNECTIONS

Hi,

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

Means that;

  • DB4 on the LCD is connected to pin D5 on the UNO
  • DB5 on the LCD is connected to pin D4 on the UNO
  • DB6 on the LCD is connected to pin D3 on the UNO
  • DB7 on the LCD is connected to pin D2 on the UNO

Swap your RED and YELLOW wires at the UNO.

Tom.. :slight_smile:

I HV CORRECTED THAT STILL THE SAME SITUATION