⭐ Q13. LCD Interfacing
Hindi:
Arduino से 16×2 LCD पर text display करने का प्रोग्राम लिखिए।
English:
Write an Arduino program to display text on a 16×2 LCD.
🔧 Components
Arduino Uno
16×2 LCD
Potentiometer (1K – contrast control)
🔌 Connections
LCD Pins → Arduino Pins
RS → 13
E → 12
D4 → 11
D5 → 10
D6 → 9
D7 → 8
✅ CODE
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
void setup() {
lcd.begin(16, 2);
lcd.print("LICT O-LEVEL");
}
void loop() {
lcd.setCursor(0, 1);
lcd.print("Time: ");
lcd.print(millis() / 1000);
}
📘 Working
LCD में दो lines होती हैं। पहली में स्थिर text और दूसरी में running timer दिखाया गया है।