Total Pageviews

Friday, 2 March 2018

Arduino LCD interfacing code

//copy this whole text and paste it in your arduino ide and then upload it to arduino
//code by www.youtube.com/onlyinnovative
//Like, Share and Subscribe
/*
 * LCD pins- Arduino pins
 vss-gnd
 vdd-5v
 vo-6
 rs-12
 rw-gnd
 e-11
 d4-5
 d5-4
 d6-3
 d7-2
 A-5v
 K-gnd

 */
#include <LiquidCrystal.h> 
int Contrast=75;
 LiquidCrystal lcd(12, 11, 5, 4, 3, 2); 

 void setup()
 {
    analogWrite(6,Contrast);
     lcd.begin(16, 2);
  } 
     void loop()
 { 
     lcd.setCursor(0, 0);
     lcd.print("Only Innovative");
   
    lcd.setCursor(0, 1);
     lcd.print("Subscribe");
 }

11 comments:

  1. Hi, we have tried with the written code and changed the contrast value like 1 to 100 but could find only fading black boxes (from 1 to 100 to 120) (at 190 = Complete Blank Screen) but no letters are being appearing. Can you please suggest some fix

    ReplyDelete
    Replies
    1. You should decrease the contrast then only you can see the letters

      Delete
  2. and please give me solution at you tube since I dont know how to use blogger or send me fix at neeraj@parampaisa.com. Please, please please

    ReplyDelete
  3. How do you do that, I am having the same problem.

    ReplyDelete
  4. same problem solution please irritated

    ReplyDelete
  5. copy this whole text and paste it in your arduino ide and then upload it to arduino
    //code by www.youtube.com/onlyinnovative
    //Like, Share and Subscribe
    /*
    * LCD pins- Arduino pins
    vss-gnd
    vdd-5v
    vo-6
    rs-12
    rw-gnd
    e-11
    d4-5
    d5-4
    d6-3
    d7-2
    A-5v
    K-gnd

    ReplyDelete
  6. code by www.youtube.com/onlyinnovative
    //Like, Share and Subscribe
    /*
    * LCD pins- Arduino pins
    vss-gnd
    vdd-5v
    vo-6
    rs-12
    rw-gnd
    e-11
    d4-5
    d5-4
    d6-3
    d7-2
    A-5v
    K-gnd

    */
    #include
    int Contrast=75;
    LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

    void setup()
    {
    analogWrite(6,Contrast);
    lcd.begin(16, 2);
    }
    void loop()
    {
    lcd.setCursor(0, 0);
    lcd.print("Only Innovative");

    lcd.setCursor(0, 1);
    lcd.print("Subscribe");
    }
    Only Innovative at 11:13
    Share

    ReplyDelete
  7. not any running crystal diplay code for this connection pl send the code or programe

    ReplyDelete
  8. #include
    int Contrast=72;
    LiquidCrystal lcd(12, 11, 6, 5, 4, 3, 2);

    void setup()
    {
    analogWrite(6,Contrast);
    lcd.begin(16, 2);
    }
    void loop()
    {
    lcd.setCursor(0, 9);
    lcd.print("wellcome");

    lcd.setCursor(10, 16);
    lcd.print("hello");
    }

    ReplyDelete