Arduino Controlled LED using Visual Basic

Updated: Nov 18, 2020

Creating a simple program in Visual Basic that allows the user to turn an LED On or Off on the Arduino. The LED is connected to Digital Pin 13 of the Arduino Uno. Visual Basic Program to create an application in the computer that allows the user to click some buttons to control the Arduino.


Before this I’ve always used the Serial Monitor of the Arduino IDE to communicate with the Arduino. Actually what the Serial Monitor does is basically reading or sending data through the Serial interface.

Currently, the only programming language that I’m familiar with and is able to create a GUI (Graphical User Interface) Program is Visual Basic.

I’ll be creating a simple program in Visual Basic 2010 that allows the user to turn an LED On or Off on the Arduino. The LED is connected to Digital Pin 13 of the Arduino Uno.

arduino Code:


void setup() {

// initialize digital pin 13 as an output.

pinMode(13, OUTPUT);

Serial.begin(9600);

}