Microsoft Robotics Studio and Lego Mindstorms NXT

Posted July 16, 2007 7:03 PM Categories: .NET | Coding4Fun | LegoNXT

I have published my latest article on MSDN's Coding4Fun titled "Microsoft Robotics Studio and Lego Mindstorms NXT".  This article will demonstrate how to use Microsoft Robotics Studio v1.5 to drive a robot built using Lego Mindstorms NXTwith an Xbox 360 Controller in C#, VB.NET and MSRS' included Visual Programming Language.

Comments welcome!

Comments (21) -

Kashif Sharif
Kashif Sharif
8/8/2007 4:08:15 PM #

Hi,
I downloaded the code, and when I try to open the LegoTriBotVPL.mvpl file, the error comes up on the VPL intrface as "The file LegoTriBotVPL.mvpl could not be opened."

Why is this? Am I doing something wrong ?

Brian Peek
Brian Peek
8/8/2007 5:14:41 PM #

I'm not certain. Are you using v1.5 of MSRS?  Have you tried opening any other VPL files?

I'm not seeing the issue here, nor has anyone else reported, so I don't have any ideas off the top of my head...

Jeff Baucom
Jeff Baucom
8/15/2007 10:00:22 PM #

Can you provide full samples of the C# source code?   I am using this to learn C#.  Thanks

Brian Peek
Brian Peek
8/15/2007 10:04:19 PM #

Jeff,

Samples in all three languages are linked from the original article on Coding4Fun...

Kashif Sharif
Kashif Sharif
10/22/2007 3:36:52 PM #

Hi,

I kind of solved the problem i previously mentioned in August. It was just an issue with the genaric drive.
I had another question: Can the XInputController take input from any game pad, or is it stuck with Microsoft Xbox 360 controller only. I mean can I use a simple Logitec USB gamepad to do the same thing ?

Thanks.

Brian Peek
Brian Peek
10/22/2007 5:04:03 PM #

The XInputController is tied directly to the 360 controller.  It's using XNA under the hood which, under that hood, talks directly to the XInput API, which is for the 360 controller only.

I *think* you can use the GameController service to use a generic gamepad or joystick...

Amator
Amator
1/6/2008 5:25:03 PM #

Hello! Could you tell me, please, how can I use Generic Differential Drive and Generic Motor in same project. I can't use it together neither in C#, no in VPL... Frown

Brian Peek
Brian Peek
1/6/2008 9:05:53 PM #

Amator, I don't have the info on that.  You may wish to try posting at MS' MSRS forums:

forums.microsoft.com/.../default.aspx

musclebai
3/6/2008 11:15:00 AM #

img252.imageshack.us/my.php?image=vplxr2.jpg

have a look at the above vpl sample.I have been able to drive a lego mindstorms nxt by wire using a gamepad i found from a below 5 $ store.

Ron Kessler
3/14/2008 2:02:30 PM #

Brian, my NXT can communicate with the PC, I can use the Lego-G software and download via BT. I followed your instructions in your article and get no errors. However, the web page comes up and insists the NXT is not connected...tried COM5 (as it reports) but is won't connect. Tried on my XP and Vista PC's with the same results. Using three diiferent dongles including the ABe from Lego....any thoughts?

thanks

Ron Kessler
3/26/2008 6:26:20 PM #

Brian, I can run your program w/o error. MSRS shows in the nxt. But when I run the program in VS it shows a brief command window that goes by too fast to read and the program ends....You mention repathing the manifest file. Not sure what you mean.

Ron

Miles
Miles
3/31/2008 3:47:13 PM #

Ron, have you tried COM4?

Quick way to make sure you've got the right com port, double click on your bluetooth icon in the bottom right corner and select the COM Ports tab at the top.  There should be two COM ports saved for the NXT, make sure to use the Outgoing one.

If you don't see any COM ports set for the NXT, you'll need to go back and reattach to the bluetooth network following the post that Brian wrote before.

- Miles

dina
9/9/2008 4:45:53 AM #

I m using MS Robotics Studio. I want to create DSS C++ service having multiple input connection pins? How Can I do That? If u have some idea plz reply me asap.

Brian Peek
Brian Peek
9/10/2008 2:55:52 AM #

@dina

I've never used MSRS with C++....anyone else?

dan
dan
3/18/2009 9:33:27 AM #

I tried to connect the nxt it works but when i turn on the program it says INVALID SERIAL PORT although i use 52 and despite my efforts it does not work. and just in case you need to know i use the flow chart msrs language.i really need help please!

dan
dan
3/20/2009 12:41:45 PM #

never mind i figured it out myself

Andrew
Andrew
8/14/2009 12:13:08 AM #

Dan, can you explain how you fixed it?  I'm facing the same problem myself.

Thanks,
  Andrew

Nick
Nick
10/30/2009 12:55:05 PM #

im trying to connect using the dss command promt and the command given using bluetooth and i constantly get the same error message

Failed to connect to the LEGO NXT hardware [10/30/2009 09:49:90][httpe://compname:50000/lego/nxt/brick/bb150d47-b50e-4b80-b8b3-a6561e763d7a]

last numbers may or may not change

can anyone help? ive used three diff bluetooth devices

gandhi
gandhi
5/30/2010 6:46:24 PM #

Brian, thank you for a cool article, have you been able to get MSRS to work with MindStorm attached to USB instead of Bluetooth ?

Brian Peek
Brian Peek
5/31/2010 1:57:56 AM #

@gandhi, I have not...sorry!

jay
jay
10/7/2010 11:33:30 PM #

When i attempt to create my initial file in the DSS command Prompt it creates all required files except the .sln file. Any suggestions as to what is going wrong?

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

My Info

  • View Brian Peek's profile on LinkedIn

Sponsored Ad

My Book

Sponsored Ad

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar