Fix an I2C Character LCD That Lights Up but Shows No Text
A glowing backlight with no readable text is one of the most common character LCD problems. It is also a useful clue: part of the assembly has power, but that does not prove the LCD controller has initialised or received valid data. A methodical test separates these possibilities much faster than repeatedly changing libraries.
PMD Way's alphanumeric LCD modules include displays and interface accessories. An I2C backpack for HD44780-compatible LCDs converts a parallel control interface into an I2C connection. The backpack and LCD remain two distinct parts, and either side can explain a blank screen.
Understand what each symptom proves
| Observation | What it suggests | What it does not prove |
|---|---|---|
| Backlight illuminates | The backlight circuit receives power | Correct controller supply, contrast or data |
| An I2C address responds | A device acknowledges on the bus | Working LCD connections or correct pin mapping |
| Dark character blocks appear | The contrast setting makes character cells visible | Successful display initialisation |
| Text appears but is misplaced | Some commands and character data work | Correct geometry or cursor configuration |
Write down the starting symptom and change one thing at a time. Keep the same simple test message throughout diagnosis. Replacing wiring, software and power simultaneously may produce a working display without identifying the fault, leaving it ready to return in the completed project.
Check power and contrast before software
Disconnect power before inspecting or moving the backpack. Check that its header aligns with the LCD's pin numbering, that every required connection is soldered, and that no solder bridges join adjacent pads. Confirm the actual module's supply specification rather than assuming all HD44780-compatible displays use the same voltage.
With a safe, correctly configured supply connected, measure at the LCD assembly itself. A voltage measured at the controller board can hide a broken jumper or poor breadboard contact. Check the ground connection as carefully as the positive supply. A partially inserted header can power the backlight while leaving a logic connection unreliable.
Adjust the contrast control gently through its useful range while the test program runs. The official Arduino character LCD guide distinguishes the contrast input from the backlight connections. Turning the contrast potentiometer changes character visibility; it is not generally a backlight brightness adjustment. Do not force its mechanical end stops.
The listed backpack has a separate backlight jumper. Its position and the software's backlight command can affect illumination, but neither repairs missing character data. Newhaven Display's troubleshooting guidance recommends checking both the contrast voltage and the prescribed initialisation sequence when a display shows nothing.
Find the address instead of guessing
Read the expander's marking and inspect its address jumpers. PMD Way lists two possible supplied versions: PCF8574T with a default address of 0x27, or PCF8574AT with a default address of 0x3F. Those defaults are useful starting information, not a substitute for checking a modified or previously used board.
The NXP PCF8574/PCF8574A datasheet explains that the two devices have different fixed address bits, with three hardware address inputs selecting the remainder. Run a scanner on the correct bus with the LCD backpack as the only peripheral during initial diagnosis. Record the reported seven-bit address and use the address convention expected by your library.
If nothing acknowledges, stay with power, SDA, SCL, bus selection and pull-ups. There is little value in adjusting character positions before communication exists. If two modules share an address, disconnect one and test them individually; a scanner showing one address does not tell you that only one device is responding.
Protect a lower-voltage controller
A backpack powered from 5 V may have bus pull-ups connected to that rail. Do not connect it directly to a microcontroller with 3.3 V-only inputs merely because both use I2C. Check the board schematic, pull-up destination and the input limits of every device on the bus. Open-drain signalling does not remove the need for compatible voltage levels.
Where translation is required, use an I2C-compatible bidirectional arrangement with correctly configured pull-ups and supplies. The Texas Instruments PCA9306 documentation illustrates this class of solution. Follow the chosen translator's own circuit requirements; a random resistor in a signal wire is not a verified substitute.
Check the backpack's internal pin mapping
An I2C scanner tests the expander, not the parallel wiring between that expander and the LCD. Different backpack designs can connect expander bits to the LCD's enable, register-select and data lines in different orders. A library configured for another mapping may communicate successfully with the expander while sending meaningless signals to the display.
The maintained hd44780_I2Cexp documentation describes automatic address and mapping configuration for supported backpacks. Its I2CexpDiag example checks the interface and LCD operation, providing more useful evidence than a scanner alone. Automatic configuration has limitations, so follow its diagnostic output rather than assuming every backpack is supported.
Run that diagnostic with unrelated peripherals removed and record its complete result. If it identifies the expander but fails an LCD test, inspect the backpack-to-display solder joints and mapping. If it succeeds, move to the library's matching minimal display example before returning to the larger project. Keep the exact library name and version in your notes because similarly named LCD libraries can have different constructors and behaviour.
Restore the application in controlled steps
Set the correct number of columns and rows, then print a short fixed label at a known position. Next, write distinct text on each row. This reveals geometry mistakes without the distraction of sensor conversion, formatting or scrolling code. Test the last intended character position as well as the first.
Reintroduce the main application one feature at a time. Try a complete power cycle as well as a software reset: they do not necessarily leave the LCD and controller in the same state. If the fault appears only when another load starts, measure supply behaviour and inspect shared wiring rather than adding arbitrary delays everywhere.
Finally, save a working test sketch, address, wiring photograph and diagnostic result with the project. A future replacement then has a clear acceptance test: correct supply, readable contrast, reliable communication and predictable text after repeated starts.