Home > Projects > Interfacing(USB – RS232 – I2c -ISP) Projects > USB Mouse Made Out Of A Wii Nunchuck

USB Mouse Made Out Of A Wii Nunchuck

Summary of USB Mouse Made Out Of A Wii Nunchuck


This instructable shows how to convert a Nintendo Wii Nunchuck into a USB two-button mouse using a Teensy 2.0 programmed in the Arduino environment. It covers disassembly, identifying potentiometer and button connections, breadboard prototyping wiring, Teensy settings (Teensy 2.0, USB Type Keyboard + Mouse), and uploading provided code to test joystick axes and buttons before finalizing.

Parts used in the Wii Nunchuck USB Mouse Project:

  • Nintendo Wii Nunchuck Controller
  • Teensy 2.0 USB Development Board
  • USB cable
  • Breadboard (for prototyping)
  • 22 gauge wire
  • Solder
  • Tri-wing screwdriver
  • Soldering iron and ancillary hand tools
This instructable will describe how to convert a Nintendo Wii Nunchuck controller into a USB 2-button mouse using a Teensy USB.  The Teensy USB is a very user-friendly development board that can be programmed in an Arduino environment. The Teensy USB development board and necessary software are available at www.pjrc.com

Check out the final product in action!

<br />

http://www.youtube.com/watch?v=YBNEImY_uzQ

Step 1: Materials

This is what you’ll need:
USB Mouse Made Out Of A Wii Nunchuck
Components:
–  Nintendo Wii Nunchuck Controller, available at various retailers
–  Teensy 2.0 USB Development Board, available at www.pjrc.com
–  USB cable, available at www.pjrc.com
–  Breadboard (for prototyping), available at www.sparkfun.com
–  22 Gauge Wire, available at www.sparkfun.com
–  Solder, available at www.sparkfun.com

Aside from the components listed above, you should have access to various tools such as a soldering iron and ancillary hand tools. Additionally, you should have basic soldering skill and working knowledge of the Arduino environment before embarking on this journey.

Step 2: Nunchuck disassembly

Remove the two screws on the underside of the Nunchuck controller using a tri-wing screwdriver and un-clip the top shell of the Nunchuck to expose the electronics.

Remove the electronics and un-clip the two hooks of the white molded plastic part at the center to access the electrical connectors of the x and y-axis potentiometers.

Remove the flexible membrane to access the electrical connectors of the C and Z buttons. The middle connection (red wire) is the Z button and top connection (black wire) is the C button.

Step 3: Prototyping on Breadboard

As good practice you should always prototype your project on a breadboard. The Teensy 2.0 comes with optional header pins making prototyping a breeze. Connect the Teensy controller to the inputs of the Nunchuck controller in the following manner:

Teensy              Nunchuck
GND                  Ground (each potentiometer and buttons)
+5V                    5 Volts (each potentiometer)
F0                      X-axis potentiometer output
F4                      Y-axis potentiometer output
D2                     C button
D3                     Z button
USB Mouse Made Out Of A Wii Nunchuck circuit
Once you’ve connected everything per the table above, you’re ready to program. In addition to putting the attached code into the Arduino window, make sure the settings are correct for this project. The board should be identified as “Teensy 2.0” and the USB Type “Keyboard + Mouse”.

Upload the code and press the reset button on the Teensy. Play around with the joystick and both buttons to confirm everything is working the way it should. A simple mistake would be to mix up the X and Y directions or the C and Z buttons, but that can be easily fixed by swapping the connections on the breadboard (another good reason you should always prototype everything).

Quick Solutions to Questions related to Wii Nunchuck USB Mouse Project:

  • What is the goal of this project?
    To convert a Nintendo Wii Nunchuck into a USB two-button mouse using a Teensy 2.0.
  • What board is used to make the Nunchuck act as a USB mouse?
    The Teensy 2.0 USB development board is used.
  • How are the Nunchuck controls connected to the Teensy for prototyping?
    Connect GND to Nunchuck ground, +5V to Nunchuck 5V, F0 to X potentiometer output, F4 to Y potentiometer output, D2 to C button, and D3 to Z button.
  • What Arduino settings are required before uploading code?
    Set the board to Teensy 2.0 and USB Type to Keyboard + Mouse.
  • What should you do after uploading the code?
    Press the reset button on the Teensy and test the joystick and both buttons to confirm functionality.
  • Which Nunchuck connections correspond to the C and Z buttons?
    The middle connection (red wire) is the Z button and the top connection (black wire) is the C button.
  • Why prototype on a breadboard first?
    Breadboard prototyping allows easy swapping of X/Y or C/Z connections if they are mixed up and helps verify operation before final soldering.
  • What tools and skills are recommended for this project?
    Basic soldering skill, hand tools, and working knowledge of the Arduino environment are recommended.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top