Go Down

Topic: How to interface Visual Basic 6.0 to Arduino Microcontroller? (Read 4951 times) previous topic - next topic

How to interface Visual Basic 6.0 to Arduino Microcontroller?

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

Osgeld

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
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

hello thanks for the reply..

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

thanks..

;)

MikMo

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

mxm2

#4
Jan 07, 2013, 10:57 pm Last Edit: Jan 08, 2013, 08:03 am by mxm2 Reason: 1
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: [Select]

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.

retrolefty


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.  ;)

Lefty

eried


yea, just like in the drug world the first fix is always free.  ;)

Lefty


vb6 is a much worse drug.
My website: http://ried.cl

kev_rm

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: [Select]

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.

Dreded

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.

Osgeld

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

the difference between

Code: [Select]
this or
  this


could make you hunt for a while
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL


Go Up