#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);
}
Interfacing of Arduino with 16×2 LCD Display
June 30th, 2018 admin
#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);
}
It’s hard to find knowledgeable people for this subject, but you sound like you know what you’re talking about! Thanks|