ravi.2k17
Advanced Member level 4
hi all,
I have connected my Arduino with my 16x2 lcd via 12c module. after loading code it shows only bright green screen with two blank lines.
on the other hand when i see the lcd from side, it shows some absurd characters moving fast from left to right.
what could be the problem here? is lcd faulty?
lcd used
i2c interface to connect lcd with Arduino uno
schematic is attached herewith.
I have connected my Arduino with my 16x2 lcd via 12c module. after loading code it shows only bright green screen with two blank lines.
on the other hand when i see the lcd from side, it shows some absurd characters moving fast from left to right.
what could be the problem here? is lcd faulty?
lcd used
Silicon Technolabs Lcd 16X2 Yellow Backlight Alphanumeric Display for 8051,Avr,Arduino,Raspberry Pi,Pic,Arm All Microcontroller (Green) : Amazon.in: Computers & Accessories
Silicon Technolabs Lcd 16X2 Yellow Backlight Alphanumeric Display for 8051,Avr,Arduino,Raspberry Pi,Pic,Arm All Microcontroller (Green) : Amazon.in: Computers & Accessories
www.amazon.in
i2c interface to connect lcd with Arduino uno
Buy I2C Module LCD Serial Display Adapter Online in India
Module: I2C/IIC Module Compatible LCD: 16x2 and 20x4 Headers: soldered Buy I2C module for LCD display online at low price in India
www.roboelements.com
schematic is attached herewith.
Code:
// Include the libraries:
// LiquidCrystal_I2C.h: [URL]https://github.com/johnrickman/LiquidCrystal_I2C[/URL]
#include <Wire.h> // Library for I2C communication
#include <LiquidCrystal_I2C.h> // Library for LCD
// Wiring: SDA pin is connected to A4 and SCL pin to A5.
// Connect to LCD via I2C, default address 0x27 (A0-A2 not jumpered)
LiquidCrystal_I2C lcd = LiquidCrystal_I2C(0x27, 16, 2);
void setup() {
// Initiate the LCD:
lcd.init();
lcd.backlight();
}
void loop() {
// Print 'Hello World!' on the first line of the LCD:
lcd.setCursor(0, 0); // Set the cursor on the first column and first row.
lcd.print("Hello World!"); // Print the string "Hello World!"
}
Attachments
Last edited by a moderator: