View unanswered posts | View active topics It is currently Fri Apr 18, 2014 4:08 am






Reply to topic  [ 5 posts ] 
Controlling amindstorms robot with the keyboard 
Author Message
Rookie

Joined: Wed Jul 10, 2013 1:18 pm
Posts: 8
Post Controlling amindstorms robot with the keyboard
Hello everyone,

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
Profile
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 187
Post 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.

Cheers,
--Ryan

_________________
Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT


Last edited by rcahoon on Sat Aug 03, 2013 2:59 am, edited 1 time in total.



Wed Jul 10, 2013 7:10 pm
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: Controlling amindstorms robot with the keyboard
I only found the PPjoy for windows XP and 2000

_________________
string Robored = "Awesome"
~~Neil Balch~~


Sat Aug 03, 2013 12:06 am
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 187
Post Re: Controlling amindstorms robot with the keyboard
Installing PPJoy on Windows 7

_________________
Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT


Sat Aug 03, 2013 4:53 am
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: Controlling amindstorms robot with the keyboard
Thanks!

_________________
string Robored = "Awesome"
~~Neil Balch~~


Sat Aug 03, 2013 12:51 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.