Home NXT bot with PSP joystick
Bookmark and Share

Who is online?

We have 64 guests online
Where do visitors come from?
Locations of visitors to 

this page

Visitors in 2009:


Visitors in 2008:


page counter:



PDF Print E-mail
Written by Techbricks.nl   
Friday, 28 November 2008 00:00

NXT Bot with PSP joystick control

I have tested the Mindsensors Sony PlayStation 2 Controller interface for NXT (PSP-Nx-v3) with a PSP joystick. I used the PSP-Nx-v3 to control a NXT bot I had build before. The robot has a AXIS wireless (802.3B/G) web cam. The pictures are displayed in a browser on my laptop.
alt














With the Joystick I am able to move the bot in any direction. With the cam it is possible to see what is in front of the bot, even when it is in an other room.
alt















I have made two test programs. One in NXT-G and one in NXC (Not eXacly C). I used the NXC library for PSP-Nx (PSP-Nx-lib.nxc) and PSP-Nx NXT-G block 1.3 (PSPNx-Lean.zip) both made by Deepak Patil. You can download my test programs here and used them for your own bot:
NXT-G: Robot-techbricks_pspnx.rbt
NXC: Robot-techbricks_pspnx.nxc

Both programs uses port A and B for the NXT motor and sensor port 2 for the PSP-Nx.

The PSP-Nx NXC library (PSP-Nx-lib.nxc) and the NXT-G block (PSP-Nx-Lean.zip) can both be downloaded from www.mindsensors.com.

Even when you don't want to use the NXC language, the working of this program may be easy to view with a text editor or in Bricxcc.
alt


















You can watch a demo video of my bot at Youtube:

Pushing the joystick forward will let the bot runs forward. Turning the stick to the right will turns the bot. The more the joystick is turned to the right, the faster it will turn. In the most right position one motor runs forward and one runs backwards. If you continue to turn the stick to backward, the bot will turn less fast. When the joystick is in the most backward position, the bot runs backward. And so on, displayed in this picture:



















L and R are the left and right motor. 100 means full speed forward, -100 means full speed backward. Moving the joystick around is shown in this video:



Check the complete NXT Bot with PSP Joystick high resolution photo gallery at Google Picasa...
 
Copyright © 2010 www.techbricks.nl. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
Powered by WebRing.