Wii Nunchuck + 2 servos + JeonLab mini

One of my sons has complained one day that his Wii Nunchuck didn’t work and showed it to me. The joystick was loose but all the other function seemed to be fine. So he got a new Wii Nunchuck I got my own toy.  🙂

If you search the internet with key words, “wii nunchuck arduino,” you will find many blog posts, forum posts, and video clips.   I also found those interesting posts and videos some time ago and have once tried the Arduino Duemilanove and a Wii Nunchuck and a servo motor.   It just worked as it is supposed to do.   Of course I had to return the Wii Nunchuck to my son at that time, but now I have my own part.   Although the joystick was broken, the accelerometer and two switches, C and Z, were intact.   So I started removing the broken part and unnecessary part of the PCB and switches so that only the accelerometer was left.

Separated PCB

PCB only
Wii Nunchuck PCB

The right part (joystick and button switch terminals) of the PCB has been cut.


Wii Nunchuck accelerometer and JeonLab mini v1.0  (wires: Blue-GND, Green-SDA(data), Yellow-SCK(clock), Orange-+3.3V; colors have no meaning here, I just used what I could find around)
chuck2servo_assemle 24

Since I’m going to supply +5V for servos, in order to provide +3.3V, I just simply attach a Zenner diode and a 100 ohm resister as shown below.
zenner diode for 3.3V

Before putting the JeonLab mini in a small blue box, an FTDI breakout board from Sparkfun was connected and my sketch (at the end of this post) was loaded.
chuck2servo_assemle 27

chuck2servo_assemle 29

chuck2servo_assemle 31

With a simple sketch below, it works fine to move two servos 0 to 180 degrees as responses of tilted angle of the Wii Nunchuck accelerometer PCB.

Some more pictures or video will be posted soon.

Sketch (JeonLab_Nunchuck.pde)

 * Wiichuck_2servos
 * Apr 2011, Jinseok Jeon
 * WiiChuck data read:
 *  thanks to WiiChuckDemo by Tod E. Kurt,
 *  http://todbot.com/blog/

#include "nunchuck_funcs.h"

Servo servoX;
Servo servoY;
float tempx=0, tempy=0;

void setup()

void loop()
  for (int i = 1; i   {
    tempx += nunchuck_accelx();
    tempy += nunchuck_accely();

  tempx = map(int(tempx/50.0), 74, 166, 0, 180);
  tempy = map(int(tempy/50.0), 73, 170, 0, 180);

  tempx = 0;
  tempy = 0;

Opto-mechatronic Engineering scientist.

Tagged with: , ,
Posted in JeonLab mini, Modification
7 comments on “Wii Nunchuck + 2 servos + JeonLab mini
  1. […] Jeon's laboratory Skip to content HomeAbout meShopJeonLab mini v1.0Parts ← Wii Nunchuck + 2 servos + JeonLab mini […]

  2. Brian says:

    I’m am just learning – at 50 – and getting my two boys, ages 13 and 12, active too. We’d like to see videos of your project. Are you ready?

  3. Brian says:

    We just saw you video on another page. Nice.

    Here is a delta robot driven with a Nunchuck: http://blog.makezine.com/archive/2010/07/delta-robot-controlled-by-an-arduin.html

  4. jeonlab says:

    Brian: I also have two boys, 14 and 12. 🙂

  5. jeonlab says:

    I have seen that video, delta robot, and found it quite interesting. I have thought about similar one before, but I just had no time to build one.
    I need more time for my hobby!!!!

  6. […] have posted a project on using the accelerometer chip in the broken Wii Nunchuck. It was broken: the joystick did’t work. However, the accelerometer chip in the Nunchuck was […]

  7. […] have thought about how to use it useful and have tested with two servos, but I had no time to proceed that project which have sit on my desk for a long […]

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

April 2011
« Mar   May »

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 12 other followers

%d bloggers like this: