Extension board · Controls and displays

Wii Nunchuck adapter

A small adapter whose board edge takes the plug of a Wii Nunchuk, putting its thumb stick, two buttons and accelerometer on an I2C bus. Reading it needs your own driver.

Top view of the adapter: a shaped tongue at one end that enters the controller plug, a socket on the left and right edges and a Qwiic connector.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
Stick + 2 buttonsplus an accelerometer
0x52usual controller I2C address
3.3 Vonly
I2C + Qwiictwo ways in
1.6 mmboard thickness at the tongue
40 × 50millimetres, four M3 holes
A hand controller can disconnect at any time. Never use it for safety or emergency stop. This product is not affiliated with Nintendo.

Tech specs

PurposeA cabled hand controller as a jog stick with buttons
ControllerWii Nunchuk or compatible; bought separately. Address 0x52 is the widely documented value; third-party controllers differ
InterfaceI2C with removable 3.3 kΩ pull-ups
Controller plugThe shaped board edge (J4); no purchased connector. Gold (ENIG) contact finish recommended
Supply3.3 V from the socket; allow 10 mA for the controller
ConnectorsTwo Gadgeteer type I sockets (Samtec SHF-105, 1.27 mm) and one Qwiic
Size40 × 50 mm, four M3 holes on a 30 × 40 mm pattern
Works withSmoothieboard V2 Prime header GG electrically; no firmware driver
LicenceOpen hardware, CERN-OHL-S-2.0; the tongue contact geometry derives from Adafruit’s adapter, published under CC BY-SA 3.0

Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.

Board tour

The numbers on the drawing match the list below it. The board is shown from the component side.

  1. 1
    Controller tongue (J4) — The controller plug pushes onto this edge.
  2. 2
    Input socket I IN (J1) — SDA on contact 8, SCL on 9.
  3. 3
    Chain socket CHAIN (J2) — Continues the bus.
  4. 4
    Qwiic connector (J3) — The same bus on a four-way cable.
  5. 5
    Bus pull-ups (R1, R2) — 3.3 kΩ.
  6. 6
    Pull-up links (JP1, JP2) — Closed as delivered.
  7. 7
    Chain links (JP8, JP9) — Closed as delivered.
  8. 8
    Supply link (FB1) — A 0 Ω part in the controller supply, useful for measuring current.
  9. 9
    Supply capacitors (C1, C2) — Next to the controller feed.
  10. 10
    Mounting hole — One of four M3 holes.
Point at a number, or tap it, to read what the part is; the same text is in the list. On a small screen, scroll the drawing sideways.

Pinout

Check contact numbering with the power removed before wiring by hand.

J1: input socket (I IN)

ContactSignalUsePrime header GG
13.3 VBoard and controller supply3.3 V
25 VPassed to the chain only5 V
3 to 7Passed throughNot usedPH2, PH4, PC0, PF15, PH3
8SDAI2C dataPF0 (I2C2_SDA)
9SCLI2C clockPF1 (I2C2_SCL)
10GNDGroundGND

J4: controller tongue

ContactSignal
1Ground
2Controller detect, not used
3SCL
43.3 V
5SDA

What you need

A NunchukOriginal or compatible.
An I2C portPrime header GG or a 3.3 V Qwiic host.
A cableGadgeteer ten-way or Qwiic.
Your own driverNone is supplied.

Get started

Minimum wiring: contact 1 to contact 1, 3.3 V; PF0, contact 8 to contact 8, SDA; PF1, contact 9 to contact 9, SCL; contact 10 to contact 10, ground. Prime header GG (J38) Adapter J1 contact 1contact 13.3 V PF0, contact 8contact 8SDA PF1, contact 9contact 9SCL contact 10contact 10ground
Four connections.
  1. Mount the adapter

    Leave the tongue accessible and relieve the controller cable.

  2. Connect with the power off

    Use J1 or Qwiic.

  3. Plug in the controller

    Push it on squarely, in the same orientation as on the Adafruit adapter. Do not force it.

  4. Read it

    Your driver initialises the controller and reads six bytes at address 0x52.

    Moving the stick should change the first two bytes.

Configuration

You wantModuleExample
Read the controllerNoneNo SmoothieV2 driver for it

There is nothing to add to config.ini.

How it works

The adapter simply connects the controller to the I2C bus and 3.3 V. Nunchukstick, buttons J4 tonguefour contacts I2C buswith pull-ups Your driverread data
One digital path.

The controller already contains the converter and accelerometer and answers as an I2C device. The adapter provides power, ground, the two bus lines and pull-up resistors. Because the controller address is fixed, only one controller can sit on a bus.

Solder links

Open JP1 and JP2 when another board on the bus already provides pull-ups.

Solder links as delivered: JP1 closed; JP2 closed; JP8 closed; JP9 closed. JP1 · closedSDA pull-up JP2 · closedSCL pull-up JP8 · closedchain SDA JP9 · closedchain SCL
The links as delivered. Close one with a small blob of solder across both pads; open it by removing the solder or cutting the copper between the pads.
LinkWhat it doesAs delivered
JP1Connects the SDA pull-upClosed
JP2Connects the SCL pull-upClosed
JP8Continues SDAClosed
JP9Continues SCLClosed

Chaining

Other I2C devices with different addresses can follow.

The controller's ribbon cable goes to the connector I IN of the Nunchuck adapter. Inside the board each of the ten pins runs through a solder link to the connector CHAIN, where a second ribbon cable continues to the next board. A closed link passes its pin on, an open link stops it. Controller one ten-pin port Nunchuck adapter I IN CHAIN pin 7, free passed on pin 8, SDA passed on pin 9, SCL passed on one solder link per pin Next board sees what is passed on
Chaining: one port of the controller serves two boards. Pin 1 of I IN leads to pin 1 of CHAIN, pin 2 to pin 2, and so on, each through its own solder link. The three lines stand for the ten pins and show the links as delivered. Two boards must never drive the same pin, and a pin that one board uses for a signal is not free for the next. All three continue; pin 7 is wired straight through.
ContactSignalOn CHAIN
1, 2, 10Power and groundPassed on
3 to 7FreePassed on
8, 9I2CPassed on through closed links

Troubleshooting

SymptomLikely causeWhat to check
No answer on the busController not seated or reversedReseat it; test points
Reads all 0xFFController not initialisedSend its initialisation first
Intermittent dataPlug loose or long cableSeat the plug; lower the bus clock
Second controller conflictsSame fixed addressUse a separate bus

The board has no indicator lights; use the test points.

Still stuck? Read how to ask for help or see the general troubleshooting guide.

Downloads

FileWhat it is
Schematic (PDF)The circuit diagram
Parts list (CSV)Every component with its value, footprint and part number where one is chosen
Board drawing (PNG)The top view used on this page
3D view, top (PNG)Rendered from the design files; the controller is not shown
3D view, angled (PNG)Rendered from the design files; the controller is not shown

Appendix: mounting dimensions

For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side. Keep the tongue end clear of the enclosure so the plug can seat.

Mounting drawing of the Nunchuck adapter, component side: outline 40 by 50 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 40 50 0, 0 X Y 1 5.00, 5.00 2 35.00, 5.00 3 5.00, 45.00 4 35.00, 45.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 40 × 50 mm, square corners, board thickness 1.6 mm. Drawn from the design files, component side up, in the same orientation as the board tour.
HoleX (mm)Y (mm)DiameterUse
15.005.003.2 mm, not platedMounting, M3 screw
235.005.003.2 mm, not platedMounting, M3 screw
35.0045.003.2 mm, not platedMounting, M3 screw
435.0045.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Every figure is a design value, a calculated or simulated value, or a manufacturer’s data sheet value, as the last column says. A dash means no figure is given.

ParameterApplies toLowerNominalUpperBasis
SupplyJ1 contact 1—3.3 V—Design
Controller current allowance3.3 V——10 mADesign assumption
Pull-up current, both lines low3.3 V—2.0 mA—Calculated
Bus rise time at 250 pFSDA, SCL—0.70 µs1 µsSimulated

Component stress limits

PartLimitUse on this board
Any signal3.3 VNo ESD protection on the contacts
ContactsBoard edgeWear with repeated plugging

Appendix: simulation

The I2C bus rise time with a long controller cable was simulated with ngspice.

Each simulated value (yellow mark) against its allowed range (green band). I2C rise time 30 to 70 % at an assumed 250 pF699 ns
Simulated value (yellow) against the limit used for it (green). Each bar has its own scale.
ResultSimulated valueLimitOutcome
I2C rise time 30 to 70 % at an assumed 250 pF699 nsat most 1 µsWithin

Not simulated: the controller, plug fit and electrostatic discharge.

Appendix: datasheet

No data sheet is linked: the controller has no published one, and the adapter uses only resistors and capacitors.

See all boards on the extension boards page.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.