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.
Parts Required:
- Arduino NANO
-
LCD – Alphanumeric-16X2 Characters (1)
- resistor 220 ohm (1)
- Potentiometer
- Wires to connect it all together
#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);
}
}
}

For more Please make sure to subscribe to Officialhrm YouTube channel and like Facebook Page.
Thank you for visiting Officialhrm! Please don’t forget to share this website with your friends.
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!!