How to interface Visual Basic 6.0 to Arduino Microcontroller?
please give me guide.. i'm newbie here..
How to interface Visual Basic 6.0 to Arduino Microcontroller?
please give me guide.. i'm newbie here..
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
hello thanks for the reply..
can u send me plz the link where to download free for the VB2012 or VBnet
thanks..
![]()
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.:
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 arduino-1/EchoString.ino at master · jgautier/arduino-1 · GitHub
and read V2.3ProtocolDetails - Firmata to add your own sysex command to Arduino.vb.
Osgeld:
VB has a serial class, just talk to itbut 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
retrolefty:
yea, just like in the drug world the first fix is always free.Lefty
vb6 is a much worse drug.
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.
mxm2:
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.:
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.
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.
one of the cons of python to new people is that it uses white space to determine structure
the difference between
this or
this
could make you hunt for a while
hello thanks for the reply.
![]()