|
-
Jul 28th, 2009, 03:20 PM
#1
Thread Starter
Banned
how to use usb microcontroller on vb
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 ?
-
Jul 28th, 2009, 03:26 PM
#2
Re: how to use usb microcontroller on vb
On here they have examples of programming it using VB6. You'll have to do some conversion.
-
Jul 28th, 2009, 04:06 PM
#3
Thread Starter
Banned
Re: how to use usb microcontroller on vb
the link is dead.
i am using vb 2008 and looking for the simplest way to move a robot
-
Jul 28th, 2009, 04:42 PM
#4
Re: how to use usb microcontroller on vb
the link is not dead, try again
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Jul 29th, 2009, 08:10 AM
#5
Re: how to use usb microcontroller on vb
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.
Last edited by Jenner; Jul 29th, 2009 at 08:14 AM.
-
Aug 1st, 2009, 05:19 PM
#6
Thread Starter
Banned
Re: how to use usb microcontroller on vb
-
Aug 1st, 2009, 09:44 PM
#7
Re: how to use usb microcontroller on vb
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
-
Aug 3rd, 2009, 10:28 AM
#8
Re: how to use usb microcontroller on vb
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
-
Aug 3rd, 2009, 10:50 AM
#9
Re: how to use usb microcontroller on vb
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
-
Aug 3rd, 2009, 04:18 PM
#10
Re: how to use usb microcontroller on vb
Oh cool. Heck, you should update the Wiki
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|