Menu Close

Control LCD Display with Arduino and Visual basic

 

Control LCD Display with Arduino and Visual basic
Serial Communication Visual Basic Project.
Visual basic windows application with Arduino nano.

Control LCD Display

Parts Required:

  1. Arduino NANO
  2. LCD – Alphanumeric-16X2 Characters (1)
  3. resistor 220 ohm (1)
  4. Potentiometer
  5. Wires to connect it all together

 

uper

#include <LiquidCrystal.h>

const int ledPin =  6;
int buttonState = 0;
String x;
String str;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

pinMode(ledPin, OUTPUT);
Serial.begin(9600);
lcd.begin(16, 2);
digitalWrite(ledPin, HIGH);

}

void loop () {

if(Serial.available() > 0)
{
x = Serial.readString();
lcd.clear();
lcd.print(x);
if (x==“LED OFF”){

digitalWrite(ledPin, LOW);
}
else{
digitalWrite(ledPin, HIGH);
}
}

}

 Down

For more Please make sure to subscribe to Officialhrm YouTube channel and like Facebook Page.

Thank you for visiting OfficialhrmPlease don’t forget to share this website with your friends.

Download

File Description Date added File size Downloads
zip LCD text from Pc February 26, 2019 7:09 pm 3 MB 324
Posted in Arduino

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *