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.
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?
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.
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);
}
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.]
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.