LCD lights up without working

Hi, I'm sort of a Arduino noob. I've been working on a LCD for a while but it doesnt work. It lights up and i think that means its connected fine (i think) but it doesnt do what its supposed to. The code is the most basic "print me seconds" you can find in any page and I followed basic instructions to connect the 16x2 to the arduino. What could it be? Maybe cables quality, could something be burned?

This is my cable config:

No, it means it lights up.

Can you make the screen go between totally blank to just showing black boxes wheee characters shoukd go by using the contrast potentiometer?

Please post the sketch you are using.

Please draw a schematic diagram, which will be unambiguous. Using a pencil is fine, and so are blocks representing the Arduino and the LCD.

Be sure to show where power is coming from, and how it is routed to the parts that need power.

a7

Not sure what your lists are, post an annotated schematic showing exactly how it is wired. For the LED to light pins 15 and 16 need power. I believe if you reverse the display the LED will also light. Are you trying to use a backpack, that uses I2C? Post a link to the technical information on the display and any other hardware connected to the board.

If you have a pre-made cable, each wire should have its own color. Post a picture of the LCD, cable and Arduino with the connections easy to see. I suspect D8 and D9 are reversed.

Ty for the comments! Here is the config I'm using rn:

I believe my lcd is a Hitachi HD44780, and right now while I'm working on it im using my laptop as a power source

I posted the connections, dunno if in the best way, kinda new to this forum. I cannot go between those modes, sometimes just shows black boxes when i change the cables but not with the potentiometer.

I'm not using I2c, is it easier?

That will do.

Now


First success with an LCD is a right of passage, which is why slavish copying of a known good device, circuit and sketch are recommended, "Jello Whirled!" kinda test.

The I2C type interface is no easier or harder inherently. It uses fewer wires, but introduces some issues that must be addressed. I would say it is ever so slightly easier to get the 4 bit data lines kind like you are using working.

HTH

a7

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