I2C LCD lights up but shows nothing
- 16x2 LCD with I2C
Why it happens
- The address in the code isn't your LCD's.
- The contrast screw is turned too far.
- SDA and SCL are swapped.
lcd.init()orlcd.backlight()is missing.
How to fix it
- Turn the small blue screw on the back slowly with a screwdriver until letters or faint boxes show.
- Check wires: on an Uno SDA is A4 and SCL is A5; on an ESP32 usually SDA 21 and SCL 22.
- Run an I2C scanner sketch (our ESP32 LCD lesson has one) and put the address it prints into the code.
- Try 0x3F if 0x27 fails.
It worked if: The text shows clearly, and the scanner prints one address.
Related errors
Tutorials where it can happen
- 16x2 LCD with Arduino: With and Without I2C
- Interfacing ESP32 with 16x2 LCD Displays
- Air Quality and HVAC Control with Arduino, DHT11 and MQ-135
- Air Quality Monitor with Arduino, MQ-135 and LCD
- Alcohol Sensor MQ-3 with Arduino and LCD
- Arduino Breathalyzer with MQ-3 Alcohol Sensor and LCD
34 more
- Building a Rainfall Measurement and LCD Display with Arduino
- Building a Sound-Activated Music Player with LCD Display
- Building a Vibration Sensor with LCD Feedback
- Building an Intruder Detection System with LCD and Alarm using Arduino
- Building Electronics Dice with LCD Display
- Capacitive Touch Sensor-Based Home Automation System with LCD Display
- Color Detection and Sorting System with TCS34725
- Distance Measurement and Stepper Motor Control with LCD Output
- DIY Heart Rate Monitor with Pulse Sensor and LCD Display
- Gas Sensor-Based Air Freshener System with LCD Display
- Gas Sensor-Based Garage Ventilation Control with LCD Display
- Hall Effect Sensor with Arduino: Measure Magnetic Field
- HC-SR04 Ultrasonic Sensor with Arduino Uno
- Heart Rate-Based Fitness Tracker with LCD Feedback
- How to Make a Smart Energy Meter with Arduino and LCD
- LDR Light Meter with Arduino and LCD
- Light-Sensitive Motorized Blinds with Arduino and LCD
- Mini Weather Station with Arduino, DHT11 and 16x2 LCD
- Motion-Activated Security Camera with LCD Feedback
- MQ-2 Gas Sensor Arduino Code with I2C LCD
- Object Tracking and Following System with LCD Feedback
- pH Level Monitoring and LCD Output with Arduino
- Rainwater Harvesting and Recharge: a Project for Kids
- RFID Access Control with Arduino and LCD
- Smoke Detection and Fire Sprinkler Control with LCD Display
- Soil pH Level Monitoring and LCD Output
- Sound Level Meter with Arduino and LCD
- Temperature-Controlled Fan with Arduino and LM35
- Ultrasonic Parking Sensor with LCD Display using Arduino
- Vehicle Parking Space Occupancy Detection with LCD Feedback
- Vehicle Speed Measurement and LCD Output Using Arduino
- Water Flow Measurement and Control with LCD using an Arduino
- Water Level Monitoring and Fish Tank Pump Control with Arduino
- Water Level Monitoring and Pump Control System with Arduino
From how the part works. Explained from how the part works; not tried on a real circuit for this page.
Didn't help? Search another error or ask us.

