Saturday, June 27, 2015

Controlling LCD with Arduino

Hi guys! Today what we are going to do is controlling LCD!! I am going to show you a basic use of LCD but we will going to use that LCD again don't worry :D



What we need is

-Arduino
-Jumper Wires
-LCD (Which is compatible with Arduino)
-10k Potentiometer
-Patience(For the ones who is new to electronics ^-^)

Here is the diagram

Just don't afraid of the diagram you can do it!!






TIP
--------
GUYS AFTER CONNECT 1ST AND 2ND PIN TO THE BREADBOARD AND ARDUINO DON'T UPLOAD THE CODE JUST CONNECT POTENTIOMETER AND SEE IF IT WORKS LIKE IN THE VIDEO
--------





And here is our Arduino Code
---------------------------------------
// LCD nin kütüphanesini ekliyoruz
#include <LiquidCrystal.h>

// Hangi pinleri bağlayacağımızı gösteriyoruz
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // LCD nin kolon ve satır sayısını söyledik programa
  lcd.begin(16, 2);
  // Gözükecek mesajımı
  lcd.print("hello, world!");
}

void loop() {
  // İmleci kolon 0 satır 1 e yerleştirdik
  // İlk kolon 0 çünkü saymaya 0,1,2,3,4 diye başlanıyor
  lcd.setCursor(0, 1);
  // bu kısımda reset atılana kadar sayı sayıyor
  lcd.print(millis() / 1000);
}

---------------------------------------




Ask me anything in the comment section or just write your opinions about tutorial or blog ^-^. See you in another project :D

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...