Currently, the only programming language that I’m familiar with and is able to create a GUI (Graphical User Interface) Program (aka not the white text on a black background program) is Visual Basic. I’ll be using the Express edition since it’s free. Who doesn’t like free stuff? 🙂
In this demonstration, 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.
Don’t freak out cause I didn’t use a resistor for the LED. This particular type of LED I bought has very high impedance, I’m not worried that it will burn out.
I wrote a code for the Arduino so that it can receive instructions from the computer.
I enclosed the 1 and 0 with inverted commas because the value that I’ll be sending from the computer will actually be in ASCII.
Here is a screenshot of the program written in Visual Studio 2010 Express.
The serial port baud rate is set to 9600 and the Arduino Uno is using COM4. Visual Basic 2010 comes with the SerialPort function, so it’s pretty simple to program.
Here is a video demonstrating how the program and the Arduino work together.
Thanks for reading 🙂