Using Arduino for the first time

I have attached my arduino. I cannot get text to print. Any suggestions? I am using a simple "hello world" code

I suspect someone is going to ask you to post your code. I suggest getting that out of the way. Please use code tags...

[code]
your code goes here
[/code]

At that size it's difficult to tell how the display is wired. At the resolution of the image, scrolling to tell how the display is wired is a challenge. Please try another picture landscape and a few feet back.

 Void set up() {
lcd.begin(16, 2);
lcd.print("hello world");
}

Void loop()  {
lcd.setCursor(16, 2);
lcd.print("hello world");
}


Its hard to catch a good angle for my wiring

landscape means hold your phone horizontal.

code tags: See the </> symbol at the top of the reply box? Click that, then paste your code into the middle of it
<Your code will then be formatted like this>
Thanks

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

LiquidCrystal lcd(12,11, 5, 4, 3, 2);

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(16, 2);
  // print the number of seconds since reset:
  lcd.print("hello world");
}
1 Like

Hint. setCursor(16,2) puts the cursor at the 17th location, in row 3. Is that correct?

what should I change it to?

Read these lines from your code:

Maybe try 1,1 - that should put the cursor in the second row, second character. The comments pretty much indicate the problem, you've not considered zero-based indexing. The top right cell is at 0,0, IIRC. If not, try a few very small values, you should be able to sort it out.
C

This is the schematic I was following

Check the potentiometer. I see the black and blue go to gnd. only one of them go to gnd the other go to + 5 V. And double check if the wire going to E. if a bad contact, the display will not work properly. The rest of the wiring look ok. After the change of wire for the potentiometer, turn the pot CCW and CC to see any change, if yes, adjust until you barely see the dots on the LCD. Technicaly, you should see a display. The code is fine. It is just a simple "Hello World"

Oh I just notice the code about the lcd.setCursor(16,2); it should be ---> lcd.setCursor(0,0); for the first line, and the second line lcd.setCursor(0,1);

That Hello World code will also work if everything is connect properly.

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

    LiquidCrystal lcd(12,11, 5, 4, 3, 2); 
// that is lcd(RS,E,D4,D5,D6,D7);   4 bits mode

    void setup() 
  {
      // set up the LCD's number of columns and rows:
      lcd.begin(16, 2); // init the HD4470 chip of the LCD
      lcd.setCursor(0,0); // Start the cursor at line 0, position 0
      // Print a message to the LCD.
      lcd.print("hello, world!"); // print from position 0 to position 12 - ASCII code being printed
     // into the memory of the LCD display IC. 

  }

    void loop()
 {
// Just do nothing in here
}
      

Did you try my suggested change?

I edited the code but the LCD Display is still not printing any text.

Thank you for that. I Don't see anything wrong with the circuit; did you try the potentiometer adjustment with the new code?

Is pin 16 connected to ground?
is pin 15 connected to 5v?

@beau28713 It is connected. Orange wire to a GND rail and pin 15 is via a resistor. Pin 16 and 15 is just the LCD led. The All Dots show me it is power properly. The picture show the pot is connected at GND rail and the mid point at the proper location.

I did a test, a NC at Vo will not show any text no display ... same for connect to +5V no text. Connect to GND, will show all Dots and with a week text showing up. A +5 V at R/W will not display anything. A bad connected or GND or +5 V at E will make the display not working. Any wrong connection at D4 to D7 will show bad data, will display something, and a gnd RS will only accept setup LCD data only and a +5 V at RS will only accept text data. but the setup will not work and no text being display.

@sergetechone
I may be missing it but i only see 5 wires and there is 6 connection required in that row.
DB4-DB7
LED ground and LED +5v

@beau28713

see picture one. try to zoom the picture. the 6 connection is connected with a resistor. And beside, the LCD should be operating without the led. Led is just a background light.

1 Like

Please show us your new sketch as it is now.