Pages: [1]   Go Down
Author Topic: Interface Arduino UNO to Visual Basic 2008  (Read 1368 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Beijing
Offline Offline
Full Member
***
Karma: 3
Posts: 193
Skype name habib.derbyshire
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
Imports System
Imports System.IO.Ports
Imports System.Threading
Then in Public Class Form 1 insert the following code:
Code:
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:
Arduinoport.Write("the desired text")
good luck! Google is your friend.
Logged

What is man's best friend? The breadboard!

Pages: [1]   Go Up
Jump to: