3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Hooking Up A Treadmill to PC Game

Step 15Set Up A Computer with a Script

The hardware is done. Now all you have to do is get this bizarre contraption to interface with your game. This part is easy, and you don't have to be total computer geeks
like us to do it.
1. Download GlovePie from http://carl.kenner.googlepages.com/glovepie_download and install it
2. Download the GlovePie script we wrote off of this instructable.
3. Go to File/Open in GlovePie, select the TreadmillControl.PIE script you just downloaded.
4. Click Run

Now the forward movement of the treadmill will be seen by the computer as tapping on the 'w' key, and the joystick will simulate the 'a' (left) and 'd' (right).

**Read below only if you need to use other keys than the ones for most movement in games (WASD setup).
If you need the treadmill to tap a different key besides 'w', all you need to do is replace the variable "key.a" with "key.whateverLetterYouWant" for example, if you wanted
to tap on the 'r' key instead of 'w', just change "key.a" to "key.r." I told you it was easy!
Here are the lines that control forward movement and left and right. These will allow you to customize the script.
key.a = var.keya
key.d = var.keyd
key.w= var.moveit
The second part of the script you might want to customize is how fast you need to run for your character to run at full speed. All you need to do to change that is alter the
numbers in the lines of the script that look like:
if var.speed >= 15 then
Just set the 15 to a lower number, and it will be easier to make your character run full speed.

*You can download our script here. When saving, if the file saves as .tmp, simply rename the extension to .PIE
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Mar 23, 2009. 2:50 PMwilliam17050 says:
Can you use a second mouse for aiming and shooting intead of a joystick?
Jan 4, 2009. 3:02 AMbryazana says:
When I run the script my character just keeps running and can't be stopped. Also, how do you keep the mouse from looking up and down?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
60
Followers
4
Author:ManaEnergyPotion