Dig out that old Wii controller and use it as a sleek controller for your next robot if you like. The Adafruit Adafruit Wii Nunchuck Breakout Adapter fits snugly into the Wii connector, and performs the level shifting and power regulation needed to use the controller with any microcontroller or microcomputer.

The Wii controllers use a standard I2C interface, and there's existing code for both Arduino and CircuitPython/Python for quick integration with an Arduino UNO, Feather, or even a Raspberry Pi. We like to use these with the Wii Nunchuck, as you can get an X-Y joystick, two buttons and an accelerometer all in one hand-held package. All data is transmitted over I2C address 0x52, and the address can not be changed.

We use extra thicc 2.0mm PCBs for this breakout, and made cut-outs for the grabber-notches, so that the controller connection is snug, and wont rattle or come loose!

To make using it as easy as possible, we’ve created this breakout in Stemma QT form factor. You can either use a breadboard or the SparkFun qwiic compatible STEMMA QT connectors, and compatibility with 5V voltage levels as commonly found on Arduinos, as well as 3.3V logic used by many other boards like the Raspberry Pi or our Feathers. QT Cable is not included, but we have a variety in the shop for quick plug-and-play support.

Doesn't come with the Wii Nunchuck controller, that's sold separately (or just look in that plastic bin in your parent's attic next time you visit).

Power Pins

  • VIN - This is the power pin. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V microcontroller like Arduino, use 5V
  • 3V - This is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if you like.
  • GND - common ground for power and logic

I2C Logic Pins

Default address is 0x52 - this cannot be changed.

  • SCL - I2C clock pin, connect to your microcontroller I2C clock line. This pin is level shifted so you can use 3-5V logic, and there's a 10K pullup on this pin.
  • SDA - I2C data pin, connect to your microcontroller I2C data line. This pin is level shifted so you can use 3-5V logic, and there's a 10K pullup on this pin.
  • STEMMA QT - These connectors allow you to connectors to dev boards with STEMMA QT connectors or to other things with various associated accessories

Wii Nunchuck Connector

Wii controllers use a standard I2C interface. We use extra thick 2.0mm PCBs for this breakout, and made cut-outs for the grabber-notches, so that the controller connection is snug, and wont rattle or come loose!

See the GIF for how to install. The notched side of the connector U goes on the side that says Notch Up!

Connect the Wii Nunchuck Breakout Adapter as shown below using the STEMMA QT connector or a solderless breadboard.

  • Connect board VIN (red wire) to Arduino 5V if you are running a 5V board Arduino (Uno, etc.). If your board is 3V, connect to that instead.
  • Connect board GND (black wire) to Arduino GND
  • Connect board SCL (yellow wire) to Arduino SCL
  • Connect board SDA (blue wire) to Arduino SDA

There are existing Arduino libraries you can use with the Wii series of devices. We'll be using the popular WiiChuck library which has support for the following devices

  • Nunchuk
  • Classic Controller
  • Guitar Hero Guitar
  • Guitar Hero Drums
  • DJ Hero
  • Drawesome Tablet
  • Taiko Drums

Install it by searching the Arduino Library Manager for WiiChuck

The WiiChuck library is very fully featured, using a lot of RAM and Flash and we don't recommend it for use with Arduino compatibles that use ATmega32x's like the UNO/Leonardo/32u4 because its easy to overuse the memory and go unstable. Please pick a board with over 4K of RAM!

You can use this sketch, again it barely fits on a 32u4 or 328 Arduino but it will connect and display data from a Nunchuk type controller!

#include <WiiChuck.h>

Accessory nunchuck;

void setup() {
	if (nunchuck.type == Unknown) {
		nunchuck.type = NUNCHUCK;

void loop() {
  nunchuck.readData();    // Read inputs and update maps

  Serial.print("X: "); Serial.print(nunchuck.getAccelX());
  Serial.print(" \tY: "); Serial.print(nunchuck.getAccelY()); 
  Serial.print(" \tZ: "); Serial.println(nunchuck.getAccelZ()); 

  Serial.print("Joy: ("); 
  Serial.print(", "); 

  Serial.print("Button: "); 
  if (nunchuck.getButtonZ()) Serial.print(" Z "); 
  if (nunchuck.getButtonC()) Serial.print(" C "); 


Open the serial console at 115200 baud to see data streaming out, you can see the X Y Z accelerometer data (ranges from 0 to 1023), X and Y from the thumbstick (ranges from 0-255, with ~127 in the center position), and the two trigger buttons Z and C

It's easy to use the Wii Nunchuck Breakout Adapter with CircuitPython and the Adafruit CircuitPython Nunchuk module.  This module allows you to easily write Python code that reads controls from the Wii Nunchuck.

You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python thanks to Adafruit_Blinka, our CircuitPython-for-Python compatibility library.

CircuitPython Microcontroller Wiring

First wire up a Wii Nunchuck Adapter Breakout to your board exactly as follows. Here is an example of the Nunchuck Adapter wired to a Feather using I2C:

  • Board 3V to sensor VIN (red wire)
  • Board GND to sensor GND (black wire)
  • Board SCL to sensor SCL (yellow wire)
  • Board SDA to sensor SDA (blue wire)

Python Computer Wiring

Since there's dozens of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms, please visit the guide for CircuitPython on Linux to see whether your platform is supported

Here's the Raspberry Pi wired with I2C:

  • Pi 3V3 to sensor VIN (red wire)
  • Pi GND to sensor GND (black wire)
  • Pi SCL to sensor SCL (yellow wire)
  • Pi SDA to sensor SDA (blue wire)

CircuitPython Installation of Nunchuck Library

You'll need to install the Adafruit CircuitPython Nunchuk library on your CircuitPython board.

First make sure you are running the latest version of Adafruit CircuitPython for your board.

Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these libraries from Adafruit's CircuitPython library bundle.  Our CircuitPython starter guide has a great page on how to install the library bundle.

Copy the following files from the bundle to the lib folder on your CIRCUITPY drive:

  • adafruit_nunchuk.mpy
  • adafruit_bus_device

Before continuing make sure your board's lib folder or root filesystem has the adafruit_nunchuk.mpy, and adafruit_bus_device file and folder copied over.

Next connect to the board's serial REPL so you are at the CircuitPython >>> prompt.

Python Installation of Nunchuck Library

You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3. Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready!

Once that's done, from your command line run the following command:

  • pip3 install adafruit-circuitpython-nunchuk

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

CircuitPython & Python Usage

To demonstrate the usage of the sensor we'll initialize it and read from the controller in the board's Python REPL.

Run the following code to import the necessary modules and initialize the I2C connection with the adapter:

import time
import board
import adafruit_nunchuk

nc = adafruit_nunchuk.Nunchuk(board.I2C())

Now you're ready to read values from the controller using these properties:

  • joystick - An (x, y) tuple of the joystick position.
  • button_C - The pressed state of button C.
  • button_Z - The pressed state of button Z.
  • acceleration - An (x, y, z) tuple of acceleration data.

For example, to read the joystick position:

x, y = nc.joystick
print("joystick = {},{}".format(x, y))

To read button presses on the+ buttons:


To read the acceleration data:

ax, ay, az = nc.acceleration
print("accceleration ax={}, ay={}, az={}".format(ax, ay, az))

That's all there is to using the Adafruit Wii Nunchuk Breakout Adapter with Python and CircuitPython!

Full Example Code

This example reads all the data in a loop.

# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT

import time
import board
import adafruit_nunchuk

i2c = board.I2C()  # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C()  # For using the built-in STEMMA QT connector on a microcontroller
nc = adafruit_nunchuk.Nunchuk(i2c)

while True:
    x, y = nc.joystick
    ax, ay, az = nc.acceleration
    print("joystick = {},{}".format(x, y))
    print("accceleration ax={}, ay={}, az={}".format(ax, ay, az))

    if nc.buttons.C:
        print("button C")
    if nc.buttons.Z:
        print("button Z")

Nunchuck Accelerometer and Tap Detection

This section and code come from notes by CGrover used to develop tap detection for potential use in the PowerWash Simulator Controller project.

The accelerometer is very securely mounted, so the tap detection scheme only monitors the more sensitive x-axis (horizontal).

Nunchuck tap detection works best if the side of the controller handle is tapped.

Double-Tap Detection Code

# Set the Nunchuck tap detector parameters and initialize tap event history list
TAP_THRESHOLD = 350  # Tap sensitivity threshold; depends on the physical sensor mount
TAP_DEBOUNCE = 0.2  # Time for accelerometer to settle after tap (seconds)
TAP_TIMEOUT = 1500  # Remove tap event from history timeout (milliseconds)
tap_events = []  # Initialize the tap event history list

# The project's main while looop
while True:
    # Detect a tap on the x-axis of the Nunchuck accelerometer
    accel_sample_1 = nunchuck.acceleration  # Read one sample
    accel_sample_2 = nunchuck.acceleration  # Read the next sample
    if abs(accel_sample_1 - accel_sample_2) >= TAP_THRESHOLD:
        # The difference between two consecutive samples exceeded the threshold
        # (equivalent to a high-pass filter)
        print(f"SINGLE tap detected {ticks_ms()}")
        tap_events.append(ticks_ms() + TAP_TIMEOUT)  # save tap expiration time in event stack
        time.sleep(TAP_DEBOUNCE)  # Debounce delay

    # Clean up tap event history after timeout period expires
    if len(tap_events) > 0:
        # Check for expired events
        if tap_events[0] <= ticks_ms():
            # The oldest event has expired
            tap_events = tap_events[1:]  # Remove the oldest event

    # Check see if two taps are in the event history list
    if len(tap_events) == 2:
        # Double-tap: execute the task and clear event history
        print(f"DOUBLE tap detected {ticks_ms()}")
        # Perform the double-tap task here
        tap_events = []  # Clear event history

Here's an example project you can do with your Nunchuck breakout to control some NeoPixels with joystick, button, and motion from a Wii Nunchuck.


Hand holding a Wiichuck controller pressing buttons. The controller is connected to the breakout wired to a Feather with OLED showing the streaming controller data
Dig out that old Wii controller and use it as a sleek controller for your next robot if you like. The Adafruit Adafruit Wii Nunchuck Breakout Adapter fits snugly into the Wii connector...
In Stock
Hand gripping Wii controller (Nunchuck / Wiichuck)
This is a generic Wii Nunchuck controller, we haven't tried it with a Wii but it does work great with the Video Game shield, and all the microcontroller code we tried. May come in...
In Stock

You can use pretty much any CircuitPython-capable board for this, I had a Metro M4 Airlift handy.

Adafruit Metro M4 Airlift Lite dev board with SAMD51 an ESP32 Wifi Co-processor.
Give your next project a lift with AirLift - our witty name for the ESP32 co-processor that graces this Metro M4. You already know about the Adafruit Metro...
In Stock

This will work with any NeoPixel strand, strip, or ring.

NeoPixel Ring with 60 x 5050 RGBW LEDs lighting up rainbow and white
What is better than smart RGB LEDs? Smart RGB+White LEDs! These NeoPixels now have 4 LEDs in them (red, green, blue and white) for excellent lighting effects. Round and round...
Out of Stock
Top view of JST SH 4-pin to Premium Male Headers Cable next to US quarter for scale.
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium Dupont male headers on the other. Compared with the...
In Stock


Use the STEMMA QT/qwiic to male header pin adapter to plug the Nunchuck breakout into your microcontroller's 3.3V, GND, SDA, & SCL lines.

Wire your NeoPixels into the board's 5V, GND, and D6 (to NeoPixel DIN) pins (if your board only has 3.3V that's usually fine, too, but NeoPixels prefer 5V when available).

Then, plug your Nunchuck controller into the adapter, making sure to follow the silkscreened "NOTCH UP" guidline.


Set up your board as shown on the previous page, then download this code onto the board as code.py.

# SPDX-FileCopyrightText: 2021 John Park for Adafruit Industries
# SPDX-License-Identifier: MIT

import time
import board
import adafruit_nunchuk
import neopixel
import simpleio

i2c = board.I2C()  # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C()  # For using the built-in STEMMA QT connector on a microcontroller
nc = adafruit_nunchuk.Nunchuk(i2c)
#  create neopixel object
NEOPIN = board.D6
NEOORDER = neopixel.GRBW  # set to GRB for 'regular' RGB NeoPixels
pixels = neopixel.NeoPixel(
    NEOPIN, NEOLENGTH, brightness=0.1, auto_write=False, pixel_order=NEOORDER

RED = (220, 0, 0)
PURPLE = (80, 0, 160)
PINK = (100, 0, 80)
GREEN = (0, 180, 0)
CYAN = (0, 80, 100)
BLUE = (0, 0, 255)
BLACK = (0, 0, 0)

pix = 0  # selected pixel
color_pick = 0  # current color index

while True:
    x, y = nc.joystick  # get joystick values
    ax, ay, az = nc.acceleration  # get accelerometer values

    tilt_x = simpleio.map_range(ax, 300.0, 800.0, 0.0, 1.0)  # remap tilt to brightness
    # remap y to current pixel
    pix = int(
        simpleio.map_range(y, 0, 255, 0, NEOLENGTH - 1)

    if nc.button_C:  # hold C button to use tilt for brightness
        pixels.brightness = tilt_x

    if nc.button_Z:
        color_pick = (color_pick + 1) % 4  # cycle through colors
        time.sleep(0.02)  # debounce

    pixels.fill(BLACK)  # turn off pixels
    for i in range(0, pix + 1):  # light up all pixels up to the current one
        pixels[i] = COLORS[color_pick]


Now, you can control your LEDs with the nunchuck!

  • move the joystick up and down to choose how many pixels are lit
  • tap the Z button to change colors
  • hold the C button while tilting the controller from side to side to adjust brightness. Let go of the C button to lock in that brightness level

This guide was first published on Jan 10, 2021. It was last updated on Feb 19, 2024.