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.

Wiimote and Glovepie

Wiimote and Glovepie
Glovepie is a program by Carl Kenner that allows you to write codes that link the Wiimote into your PC
A special thanks to Carl Kenner, who wrote Glovepie

First, follow my other instructable to sync your wiimote to your PC
Download and Install Glovepie on your PC - I am using version .30

Now, basically this instructable is about how to use the programming language that glovepie uses as input (for beginners to software programming and such)
if you know how to write software, a quick look at this Glovepie Wiki is all you might need

--before i started using this app, i had virtually no experience or knowledge of programming. the best way to learn is to look at already written scripts, and you can pick up on how to write them - thats what i did

pics won't exactly help here, so just follow the directions, and if you need more help, just send a comment and i will be happy to help asap
 
Remove these adsRemove these ads by Signing Up
 

Step 1General Basics and Structure

Think of a basic code as a cause/effect sentence - basically meaning -- something(cause) triggers something else (effect), followed by a period.

In code language, that would look like:
if - followed by cause
- - - - - effect (can be many)
endif - equivalent of period

Example -- if i wanted the first light on the wiimote to go on when i pressed A --
if wiimote.a
wiimote.led1 = true
endif

other ways to write this are:
if wiimote.a then wiimote.led1 = true
or
wiimote.a = wiimote.led = true

you might notice that even if you let go of A, the led stays on, because its value was set to true.

if you want it to only go on while pressing the button, use the else command like this -- incorporated into the first code --

if wiimote.a
wiimote.led1 = true
else
wiimote.led1 = false
endif

that would be a double cause/effect and the light would work that way because a "counter" is provided for when you let go of the button

Anything on the wiimote is addressed in glovepie as wiimote._
the key list for use is as follows: (the power button is not and can't be used here)
Wiimote. :
DPAD :
UP
DOWN
LEFT
RIGHT
A
B
MINUS
HOME
PLUS
ONE
TWO

Refer to the wiki for info on the lights and other stuff you can do
« Previous StepDownload PDFView All StepsNext Step »
3 comments
May 16, 2008. 10:06 AMrandofo says:
Hello, and welcome to the Instructables community! It's great that you've decided to tell the world about something you've made by publishing an Instructable. We just wanted to let you know that your project still needs a little more work if you want it to be well received on Instructables. Projects that don't include certain basic elements tend not to get the attention that they deserve, and so we'd love for you to check out the list below of what makes a successful Instructable. Successful projects on Instructables include: - clearly written details of a finished project with instruction - as many steps as are necessary to explain your project - clear images that you took of your project for most, if not all of your steps - an intro image - proper spelling and grammar - appropriate cautions or safety considerations I'll give you another opportunity to make any final changes to your project before we publish it. Once you're all set to go, please republish your project and send me a quick comment letting me know that you've made some changes. I'll give it a quick final check to make sure you're on the right path, and then remove this note. Thanks for your submission and we hope to see your project published soon!
Feb 13, 2010. 7:19 AMWinko says:
After having used GlovePie several times, I thought it would be handy to have a function that would auto calibrate my Wii remote. I couldn't find a script or routine that did this, so I decided to give it a shot myself.
 
 
Regards,
 
Winko

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
5
Author:raykholo