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.

Power Glove 20th Anniversary Edition

Step 19Write Some Games to Use Your New and Improved Power Glove!

Write Some Games to Use Your New and Improved Power Glove!
«
  • PGBoxing.png
  • 3409234056_969469d029.jpg
That's it! You now have a Power Glove that sends accelerometer orientation, bend values for 4 fingers, and a bitmask for pressed buttons via Bluetooth. Since you have a serial port set up, you can read these in with any language that has serial access. Remember that to start receiving data, you have to send the string A first.

For making games, I'd seriously recommend Unity3D. If it weren't for this one tool and how slick and easy it makes the process, I wouldn't be making games professionally or as a hobby right now.

In the downloads I linked in the intro, I've included a Java program that reads the serial data and spits it out as a text file. This way, if you tech doesn't support serial I/O but can read a text file, you can do that instead.

I've also included two sample Unity3D scripts (written in Unity Javascript, an ActionScript-alike) that are the input manager I use for the Power Glove. They show a simple way to use the raw data to get more human-usable information.

Next step: Off-Road Velociraptor Safari with the Power Glove?
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Dec 10, 2009. 9:33 PMroychook says:
is there any code example for the arduino and how do u get angle information from the accelerometers
Apr 8, 2009. 7:55 AMTheTrustedOne says:
Anyone interested in game development but want more power then Unity3D provides, should also check out GarageGames.com, The license fee for there engine under independant devloper flag is only a couple houndred bucks, you get the source code and with a little work it rivals the unreal engine, plus the support forums are absolutly amazing!
Apr 8, 2009. 9:46 AMHow2BRandy says:
Never trust someone who has to have their id called, "TheTrustedOne."

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!
13
Followers
2
Author:biphenyl
I have a B.S. in Mathematics. I currently work for Flashbang Studios, an independent video game developer in Tempe. I'm an operative in Operation Mindfuck.