Hello all,
I am working with JHD162G M7 LCD Display , Arduino Nano and I2C extender i searched for pinout on web but did't get much information.
all I got is this connection Diagram.

And applied it. But in my case the LCD is printing the text, but it is not clear at all. I tuned the POT and try to solve with some solution with S/W as well but nothing is working.
Here is mine output (Op.jpg)
How can I run this display with I2C and Arduino NANO.
Code-:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Define the I2C address for your 16x2 LCD display
#define LCD_I2C_ADDRESS 0x3F
// Define the LCD dimensions (16x2)
#define LCD_COLUMNS 16
#define LCD_ROWS 2
// Create an instance of the LiquidCrystal_I2C library
LiquidCrystal_I2C lcd(LCD_I2C_ADDRESS, LCD_COLUMNS, LCD_ROWS);
void setup() {
// Initialize the LCD
lcd.init();
lcd.backlight( ); // Turn on the backlight (if available on your LCD)
// Print "Hello, World!" on the LCD
lcd.setCursor(0, 0); // Set the cursor to the top-left corner
lcd.print("Hello, World!");
}
void loop() {
// Your main code can go here, but in this example, we only print once in the setup.
}
I am working with JHD162G M7 LCD Display , Arduino Nano and I2C extender i searched for pinout on web but did't get much information.
all I got is this connection Diagram.

And applied it. But in my case the LCD is printing the text, but it is not clear at all. I tuned the POT and try to solve with some solution with S/W as well but nothing is working.
Here is mine output (Op.jpg)
How can I run this display with I2C and Arduino NANO.
Code-:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Define the I2C address for your 16x2 LCD display
#define LCD_I2C_ADDRESS 0x3F
// Define the LCD dimensions (16x2)
#define LCD_COLUMNS 16
#define LCD_ROWS 2
// Create an instance of the LiquidCrystal_I2C library
LiquidCrystal_I2C lcd(LCD_I2C_ADDRESS, LCD_COLUMNS, LCD_ROWS);
void setup() {
// Initialize the LCD
lcd.init();
lcd.backlight( ); // Turn on the backlight (if available on your LCD)
// Print "Hello, World!" on the LCD
lcd.setCursor(0, 0); // Set the cursor to the top-left corner
lcd.print("Hello, World!");
}
void loop() {
// Your main code can go here, but in this example, we only print once in the setup.
}
Attachments
-
100.7 KB Views: 6