Pages: [1]   Go Down
Author Topic: How to interface Visual Basic 6.0 to Arduino Microcontroller?  (Read 4425 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How to interface Visual Basic 6.0 to Arduino Microcontroller?

please give me guide.. i'm newbie here..
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

VB has a serial class, just talk to it

but why use VB6, stuck at a 1998 bank?

use visual basic 2012 express and VB.net, come into this century for free
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello thanks for the reply..

can u send me plz the link where to download free for the VB2012 or VBnet

thanks..

 smiley-wink
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.microsoft.com/visualstudio/eng/downloads
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For those who have problems with Firmata's sysex and want to acess sysex comands easily:

Try http://connect.mind-craft.net/arduino-firmata-vb-class - change "storedInputData" variable to public and use it, e.g.:

Code:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
        arduino1.StartSysex()
        arduino1.mycommand1(20, 1)
        arduino1.EndSysex()
        Thread.Sleep(100) 'Delay less than a second
        arduino1.processInput()
        TextBox1.Text = arduino1.storedInputData(1)
End Sub

use https://github.com/jgautier/arduino-1/blob/master/examples/EchoString/EchoString.ino
and read http://firmata.org/wiki/Protocol to add your own sysex command to Arduino.vb.
« Last Edit: January 08, 2013, 02:03:05 am by mxm2 » Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

VB has a serial class, just talk to it

but why use VB6, stuck at a 1998 bank?

use visual basic 2012 express and VB.net, come into this century for free

yea, just like in the drug world the first fix is always free.  smiley-wink

Lefty
Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

yea, just like in the drug world the first fix is always free.  smiley-wink

Lefty

vb6 is a much worse drug.
Logged

My website: http://ried.cl

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I Tried every .net compatible library out there and found major issues with them all.  I ended hacking at firmata .net (http://www.imagitronics.org/download/arduino.cs, replacing all of the code with serial port processing, and fixing a few bugs with the main processing loop.   I may follow up with the author and see if he wants to accept my changes and if so I will post the updated version back here.


For those who have problems with Firmata's sysex and want to acess sysex comands easily:

Try http://connect.mind-craft.net/arduino-firmata-vb-class - change "storedInputData" variable to public and use it, e.g.:

Code:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
        arduino1.StartSysex()
        arduino1.mycommand1(20, 1)
        arduino1.EndSysex()
        Thread.Sleep(100) 'Delay less than a second
        arduino1.processInput()
        TextBox1.Text = arduino1.storedInputData(1)
End Sub

use https://github.com/jgautier/arduino-1/blob/master/examples/EchoString/EchoString.ino
and read http://firmata.org/wiki/Protocol to add your own sysex command to Arduino.vb.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if you don't already know visual basic and are just trying to learn some sort of language to interface a computer with the arduino my suggestion would be to learn python.. obviously everyone has their favorite language but the reason I suggest python is because it can and is used in literally everything and is designed to be cross platform unlike Visual Basic.. with python I have made everything from Android/Iphone apps to GUI's that work equally as well on Linux and windows.

also one of the biggest plus's for python and new programmers is that it is very loose with variable assignment and working with strings is super simple.
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

one of the cons of python to new people is that it uses white space to determine structure

the difference between

Code:
this or
  this

could make you hunt for a while
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello thanks for the reply. smiley smiley smiley


เกมส์บาคาร่าgenting crown sbosbobetsbo

Logged

Pages: [1]   Go Up
Jump to: