🚀 Quick Setup
Materials List
- 1 x Arduino Uno R3
- 1 x I2C LCD Display (16x2 or 20x4)
- 1 x Breadboard
- 2 x Jumper Wires
- 1 x Resistor (optional)
Assembling
1. Connect the VCC pin of the I2C LCD to the 5V pin on the Arduino Uno R3.
2. Connect the GND pin of the I2C LCD to the GND pin on the Arduino Uno R3.
3. Connect the SCL pin of the I2C LCD to the SCL pin on the Arduino Uno R3 (Analog Input 5).
4. Connect the SDA pin of the I2C LCD to the SDA pin on the Arduino Uno R3 (Analog Input 4).
5. If necessary, add a resistor between the VCC and GND pins of the I2C LCD.
Arduino Code & Libraries
arduino
#include
#include
const int lcdColumns = 16;
const int lcdRows = 2;
const int i2cAddress = 0x27;
LiquidCrystal_I2C lcd(i2cAddress, lcdColumns, lcdRows);
void setup() {
lcd.init();
lcd.backlight();
}
void loop() {
lcd.setCursor(0, 0);
lcd.print("Hello, World!");
delay(1000);
}
Please login to leave a comment.
No comments yet. Be the first to share your thoughts!