Interfacing of Arduino with 16×2 LCD Display

????????????????????????????????????
Ad Banner Image
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 6, A0, A1, A2, A3);

void setup()
{

  lcd.begin(16, 2);

}
void loop()
{ 

  // Print a message to the LCD.
  lcd.print("Welcome...");
  delay(4000);
  lcd.clear();
  lcd.print("Novel Technology");
  delay(4000);

}
Sponsor Banner
You can leave a response, or trackback from your own site.

2 Responses to “Interfacing of Arduino with 16×2 LCD Display”

  1. admin says:

    #include
    int ledPin = 13;
    int RELAYPin = A5;

    void setup() {
    pinMode(ledPin, OUTPUT);
    pinMode(RELAYPin, OUTPUT);
    Serial.begin(115200);
    }

    void blink_fun() {
    digitalWrite(ledPin, HIGH);
    delay(500);
    digitalWrite(ledPin, LOW);
    delay(500);
    digitalWrite(ledPin, HIGH);
    delay(500);
    digitalWrite(ledPin, LOW);
    delay(500);
    }

    void loop() {

    String cmd = “AT+CIPSTART=\”TCP\”,\”166.62.28.120\”,80\r\n”;
    Serial.print(cmd);
    blink_fun();
    String getStr = “GET http://iottest.novel-technology.com/readrelay1.php“;
    getStr += “\r\n\r\n”;
    cmd = “AT+CIPSEND=”;
    cmd += String(getStr.length());
    cmd += “\r\n”;
    Serial.print(cmd);
    delay(10);
    //blink_fun();
    Serial.print(getStr);
    if(Serial.find(“+IPD,3:1”))
    {
    digitalWrite(RELAYPin, HIGH);
    }
    else
    {
    digitalWrite(RELAYPin, LOW);
    }

    delay(5000);
    //delay(5000);
    delay(5000);
    }

  2. It’s hard to find knowledgeable people for this subject, but you sound like you know what you’re talking about! Thanks|

Leave a Reply to the article



Learning & Certifications
Follow Us
Facebook Icon   Linked In Icon   Twitter Icon  
Validation and Recognition

Valid CSS! Valid HTML5!

Powered by Wordpress