I had this pincer bot that I had not yet programmed, but using software remotes proved disappointing. With a few lines of code, I was able to use any gamepad or joystick to control the robot.
To use this code, you need to know how to execute commands on your computer. Then, do the following.
- Install Python if you don't already have it.
- Install PyGame for interfacing with the gamepad.
- Install NXT-python for interfacing with the NXT.
- Make sure your NXT and gamepad are connected and working.
in the directory where you've downloaded the code below.
The code assumes you have the pincer bot in the video, for which I'll give you instructions later. Moving around should work with most tank-steered robots.