ever wanted to use a nunchuck as a mouse?
all you need is:
a wiimote
a bluetooth adapter
a nunchuck.

Step 1: Connecting...

take the wiimote battery cover off and press and hold the sync button(red) under the cover. click the sun on bluesolei, and wait for nintendo cnt 01 to show up click the wiimote.. then click the mouse icon when its got a square around it.

Step 2: Programming Glovepie

glovepie must be programmed with the following script:

// Mouse Control Script by marinos35
// filename: miiseSNC.pie
// Version BETA2
// http://WiiMoveU.GooglePages.com

// Hide/Show GlovePIE window by double-clicking the Home button
if var.run == FALSE then
var.run = TRUE
var.hidden = TRUE

if ((DoubleClicked(Wiimote.Home) and Wiimote.HasClassic == FALSE) or DoubleClicked(Home) or DoubleClicked(Wiimote.Classic.Home)) and var.hidden then
var.hidden = FALSE
elseif ((DoubleClicked(Wiimote.Home) and Wiimote.HasClassic == FALSE) or DoubleClicked(Home) or DoubleClicked(Wiimote.Classic.Home)) and var.hidden == FALSE then
var.hidden = TRUE

// Home button enables and disables the buttons. Function similar to the Lock Key
var.home = SingleClicked(Wiimote.Home)
If var.home and var.on then
var.on = FALSE
elseif var.home and var.on = FALSE then
var.on = TRUE

// Keys for Wiimote
If var.on then
mouse.x = (2 - Wiimote.dot1x / 1023 - Wiimote.dot2x / 1023)/2
mouse.y = (Wiimote.dot1y / 1023 + Wiimote.dot2y / 1023)/2
Mouse.LeftButton = Wiimote.A
Mouse.RightButton = Wiimote.B
Up = Wiimote.Up
Down = Wiimote.Down
Left = Wiimote.Left
Right = Wiimote.Right

// Keys for Nunchuk
var.joyfix = 5 / 100
Mouse.LeftButton = Wiimote.Nunchuk.CButton // C = left mouse click
Mouse.RightButton = Wiimote.Nunchuk.ZButton // Z = right mouse click
if (Wiimote.Nunchuk.JoyX > var.joyfix or Wiimote.Nunchuk.JoyX < -var.joyfix) then mouse.x = mouse.x + Wiimote.Nunchuk.JoyX/50 // {Analog is used
if (Wiimote.Nunchuk.JoyY > var.joyfix or Wiimote.Nunchuk.JoyY < -var.joyfix) then mouse.y = mouse.y + Wiimote.Nunchuk.JoyY/50 // for mouse movement}

// Keys for Classic Controller
Mouse.RightButton = Wiimote.Classic.ZL // ZL = right mouse click
Mouse.LeftButton = Wiimote.Classic.L // L = left mouse click
if (Wiimote.Classic.Joy1X > var.joyfix or Wiimote.Classic.Joy1X < -var.joyfix) then mouse.x = mouse.x + Wiimote.Classic.Joy1X/50 // {Left analog is used
if (Wiimote.Classic.Joy1Y > var.joyfix or Wiimote.Classic.Joy1Y < -var.joyfix) then mouse.y = mouse.y + Wiimote.Classic.Joy1Y/50 // for mouse movement}  

Step 3: All Done!

ok! click run and you are ready. insert the nunchuck, and start playin around wit it!
You know, after i made this instructable, i came into posession of a wii motion plus sensor. Trust me, its way better than the nunchuck.
It's definitely a must, many games require motion plus.
Follow HiPoweredHacker
i am gonna try that, but i think its better to use the wiimote because it has a motion sensor

About This Instructable




Bio: I must have an arduino to survive. simple as that. I am 13 years old, and do all soldering, programming, and PCB etching in my ... More »
More by Krayzi99:nunchuck mouse 
Add instructable to: