Menu Close
Spread the love

Control LCD Display with Arduino and Visual Basic

 

Control LCD display using Arduino and Visual Basic can be a useful project for displaying data or information.
To accomplish this, you will need to establish serial communication between the Arduino and Visual Basic.

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

Thank you for visiting. If you found this information helpful, please consider subscribing to the Officialhrm YouTube channel and liking their Facebook Page for more updates and helpful content. 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 2442
Posted in Arduino

Related Posts

1 Comment

  1. Skincell Pro Ingredients

    Oh my goodness! Incredible article dude! Thanks,
    However I am encountering difficulties with your RSS. I don’t understand why I cannot subscribe to it.
    Is there anybody else having similar RSS issues?
    Anyone who knows the answer will you kindly respond?
    Thanx!!

Leave a Reply

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