Langsung ke konten utama

Tutorial Arduino - Menggunakan LCD Display 2x16



Di Tutorial kali ini kita akan belajar bagaimana cara menggunakan LCD Display untuk menampilkan suatu Teks.

Komponen :

- Arduino Uno
- LCD Display (2x16)
- Breadboard dan Kabel Jumper
- Potensiometer

Skematik :



Code :
/*
https://www.youtube.com/user/IqbalEfef
Like & Share the Video and Also
Please Subscribe
Thank You
*/

/*
 *RS = 12
 *E  = 11
 *D4 = 5
 *D5 = 4
 *D6 = 3
 *D7 = 2
*/

/*
 * A = 5V
 * K = 5V
 * LCD R/W = GND
 * LCD VSS = GND
 * LCD VCC = 5V
 * LCD VO = Potensiometer Out
*/

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  lcd.begin(16, 2);
}

void loop() {
  lcd.setCursor(0, 0);
  lcd.print("Iqbal Efef");
  lcd.setCursor(0, 1);
  lcd.print("Subscribe!");
}

/*
https://www.youtube.com/user/IqbalEfef
Like & Share the Video and Also
Please Subscribe
Thank You
*/


Komentar