i am talking about this http://usbmicro.com/ device
1 what namespace referce do i add ?
2 what imports statement do i use ?
3 how do i make output input commands ?
Printable View
i am talking about this http://usbmicro.com/ device
1 what namespace referce do i add ?
2 what imports statement do i use ?
3 how do i make output input commands ?
On here they have examples of programming it using VB6. You'll have to do some conversion.
the link is dead.
i am using vb 2008 and looking for the simplest way to move a robot
the link is not dead, try again
Look under the menu item: Raw Device Programming and General VB Example. There is no native .NET assembly you can just download and use with this thing.
If you're looking for something easier that you can use VB.NET with, search for a USB robot controller that has available a .NET assembly for programming. Something like this one. It's cheap too at only $125.
thank you jenner
Wow, it'd be cheaper to buy a delorean than the gadgets for the Jenner's controller.
Take a look at the Lego Mindstorms NXT, it's ~2x more expensive but comes with sensors and motors etc. already in the box.
MS supports it directly also via vb .net:
http://blogs.msdn.com/coding4fun/arc...6/3902344.aspx
All he wanted was a controller. You can hook up any sensors and motors you want. I would buy the controller I listed. I wouldn't buy any sensors or motors from that site though. Simple industrial sensors and motors are far cheaper.
Besides, you can't use .NET with Lego Mindstorms. :P
I wrote it as a half joke. The accessories in the lego kit feel a bit like toys but function realistically.
As to vb .net, nxt very much supports it and no idea what it isn't listed on wikipedia. The second link I provided has vb code. Using the motor for example is as simple as using any class.Code:If (_state.MotorEnabled) Then
' Left/RightWheelPower expects a value from -1.0f to 1.0f.
' the Thumbsticks will return a value form -1.0f to 1.0f. Convenient.
' create a request
Dim req As drive.SetDrivePowerRequest = New drive.SetDrivePowerRequest()
' assign the values
req.LeftWheelPower = msg.Body.LeftY
req.RightWheelPower = msg.Body.RightY
' post the request
_drivePort.SetDrivePower(req)
End If
Oh cool. Heck, you should update the Wiki :)