I am looking for documentation or code allow me to control a simple robot mindstorms with the arrow keys, for example. So if I press the up key the robot forward.I use RobotC to program the robot. After I know the C language and vb.net.For communication I think is wired a little easier and once you function I think happened in Bluetooth.

Thank you in advance

Guillaume

PS: Excuse me for my English. I am French

Wed Jul 10, 2013 1:22 pm

rcahoon

Site Admin

Joined: Tue Oct 09, 2012 10:34 amPosts: 192

Re: Controlling amindstorms robot with the keyboard

Hi Guillaume,ROBOTC doesn't have any built-in support for this feature, so here's my best suggestion:

If you look in the sample code in the Remote Control folder, you can find code that shows you how to use a joystick connected to the PC to control the NXT.

There's a program available on the internet called PPJoy which allows you to create virtual joysticks mapped to keyboard buttons.

The combination of these two should give you keyboard control. PPJoy is a little painful to set up on 64-bit systems, but I was able to get it working to control a robot.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum