Arduino Project: WiiChuckMouse

As a fun weekend project, I converted an old Nintendo Wii Nunchuck controller into a mouse for my Macbook.

I got the project idea from Maker Magazine.

Here’s how it’s done.

Get an Arduino Uno microcontroller and a Nintendo Wii Nunchuck controller. We will read the Nunchucks’s button presses, joystick movement, and accelerometer readings via the Arduino.

Connect the Nunchuck to the Arduino using jumper wires (diagram here). Connect the Arduino to your Mac’s USB port.

Open the Arduino IDE at https://create.arduino.cc.

Load the Arduino Nunchuck driver available here:
https://github.com/GabrielBianconi/ArduinoNunchuk

screen-shot-2017-02-04-at-8-56-06-pm

On your Mac, run my Python 2.7 script. It listens on its USB port for control data from the Arduino. Change the USB port ID in the script to match yours. https://github.com/qwertyshan/WiiChuckMouse

Now, you can control mouse movements by turning the Nunchuck on x-axis or y-axis. Left and right mouse buttons correspond with the Nunchuck’s C and Z buttons. The joystick can be used to scroll.

2 thoughts on “Arduino Project: WiiChuckMouse

  1. David February 10, 2017 / 8:16 am

    Looks like you need a damper on there, friend. It’ll smooth out the jerky motion of the mouse.

    Liked by 1 person

    • Shan Rao February 11, 2017 / 3:51 pm

      Yes, I agree. That will be the version 1.1 feature. 🙂

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s