I2C Librabry for 16x4 LCD

Hi guys, I am new on this, so I don’t know very much about arduino. I have an Arduino Uno, a 16x4 LCD display, and I would like to use it with I2c, but I haven’t been able to display any character on the lcd screen. I have attached the photo of my project and the library that I am using. The code I am trying to run is the next:

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  

void setup()  
{
  lcd.begin(16,4);     
  
  lcd.setCursor(0,0); 
  lcd.print("Hello ");
  lcd.setCursor(0,1);
  lcd.print("World ");
  lcd.setCursor(0,2);
  lcd.print("Hello ");  
  lcd.setCursor(0,3);
  lcd.print("World ");  
}


void loop()  
{

}

I don’t know what I am doing wrong, maybe is something too obvious, maybe is the library, maybe the code, Could you help me to find what is the problem? Why I cant display any character on the LCD screen?

I couldn't attach the library, What library do I need to use for this type of LCD Display ? The I2C module that I use looks like this: http://www.nexuscyber.com/content/images/thumbs/0000141_blue-backlight-1602a-lcd-module-i2c-interface.jpeg

What do you mean by

I couldn’t attach the library

You’re using the correct library:-

#include <LiquidCrystal_I2C.h>

My guess is that you have the I2C address wrong. Try 0x3F instead of 0x27:-

LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

I have an identical-looking I2C LCD module, and it needs 0x3F.

There’s also a sketch called “I2Cscanner” that’s useful for finding the addresses of connected I2C devices.
Edit: It’s here:- I2C Scanner

I meant that I wanted to put the library that I use in the forum for downloading. But the forum doesn't let you do that. I used the I2C Scanner and it says "0x27". I just realized that it was not welded correctly. I am idiot. Thanks a lot anyway, OldSteve

DelfinDelfin:
I meant that I wanted to put the library that I use in the forum for downloading. But the forum doesn’t let you do that. I used the I2C Scanner and it says “0x27”. I just realized that it was not welded correctly. I am idiot. Thanks a lot anyway, OldSteve

No problem. All’s well that ends well. :slight_smile:

This is my I2C module:-
$_1.JPG

And your’s:-

Interesting to note that two identical-looking modules use different addresses.
(I’ve removed the LED from mine now - it was annoying. :frowning: )

where can i find the library?