Go Down

Topic: Interface Arduino UNO to Visual Basic 2008 (Read 1 time) previous topic - next topic

cpoole2005

In time after I have learn more about the Arduino (purchesed my first one today and succefully completed this tutorial http://youtu.be/fCxzA9_kg6s). I want to develope software that goes on the Arduino using Arduino programing software, and software for a computer using Visual Basic 2008. My current thinking for some of my projects is to write a bunch of subroutines that will sit on the arduino. The Visual Basic software will call for a routine to be ran, the arduino will run that routine then report the resulats to the Visual Basic software.

My question is can some of you recommend some tutorials to get me started?

Thanks in advance

arduinohabib

Sure! I also had an urge to learn how to use Visual Basic with Arduino.
Look at this:
I wrote this with visual basic. You first drag the "SerialPort" object from the toolbox. Put this in the very beginning of the code:
Code: [Select]

Imports System
Imports System.IO.Ports
Imports System.Threading

Then in Public Class Form 1 insert the following code:
Code: [Select]
Dim WithEvents Arduinoport As SerialPort = New  _
    System.IO.Ports.SerialPort("COM5", _
                                9600, _
                                Parity.None, _
                                8, _
                                StopBits.One)

replace "COM5" with your desired port, 9600 with the desired baud rate.
Then, to send something to the serial port, use the following line:
Code: [Select]
Arduinoport.Write("the desired text")
good luck! Google is your friend.
What is man's best friend? The breadboard!

Go Up