Trying to run LCD Display on nano [bad soldering]

Hello iam trying to do hello world on Arduino nano but nothing happens the display is winstar WH2002A without I2C expander directly conneted to nano only bars on the screen this is the code

#include <LiquidCrystal.h>

// Define the LCD pin configuration
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // Set up the LCD's number of columns and rows:
  lcd.begin(20, 2);

  // Set the contrast for a 5V supply (experiment with different values)
  lcd.command(0x21); // Extended commands
  lcd.command(0xBB); // Set LCD Vop (Contrast). Experiment with different values.

  // Activate the basic mode
  lcd.command(0x20);

  // Print a message to the LCD
  lcd.print("Hello, World!");
}

void loop() {
  // Nothing to do here
}`

Hardware data for reference.

Controller is ST7066.

Library.


i saw but is anyway to run it on uno

Did you read the linked library page?

yes but i`m new to arduino ide how to import the library ?

Download the ZIP.
In the IDE, go to Sketch in the Toolbar
mouse down to Include Library in the drop-down,
then over to Add ZIP Library....
then you'll have to navigate to where the ZIP was downloaded.

("If you can't do that - drop it.")

already imported but there is no code example how to use this library

I didn't look over the library. You noted that you didn't know how to 'import', so I shed some light on that.
Now - looking at the link - it is for R_Pi. So, that won't work at all.
@xfpd ? ? ?

From what I'm reading HD44780 and ST7706 should work with LiquidCrystal from the IDE.
I'm not an expert.

I'd ask for more information, but that usually results in a brickwall (or fritzing).

Bad post by me. I will cross it out.

Followed this guide https://www.arduino.cc/en/Tutorial/LibraryExamples/HelloWorld display is wired correctly bars no text tested with 2 displays and it`s not a LCD problem because this LCD works on PIC tried and with different arduino nano but same

Thread for Locking found the issue bad soldering to R/W pin . evrything works perfectly

For all future issues: Physical inspection must always be first. It involves fewer resources than turning it on, examining code or asking others to examine code (or interpret the "on" state). It is your best investment of time to concentrate on an open observation of your project to keep it moving.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.