Setting up an Adaptor for a Wii Controller

Supplies

  • A microcontroller

    • The Pi Pico is recommended, but click below to see information about other microcontrollers.

      Microcontroller information
      • Pi Pico
        • This micro controller was created by the Raspberry Pi foundation, so it means that buying one supports them instead of random companies cloning Arduinos. They are considerably more powerful than any of the other supported Arduinos. The Pi Pico supports a few extra features, such as USB Input (which allows for XB1 / Series compatability), Peripheral microcontrollers and the GHWT tap bar. Note that the Pi Pico runs at 3.3v, so it can just be used as is for PS2 and Wii adapters. Pi Picos also tend to be quite cheap and often have the advantage that they can often be brought at local stores. With the currrent firmware, picos work much much better than arduinos if your goal is to create adaptors, but they also work better for direct wiring too. There are many boards based on the Pi Pico as well, and all of these work just fine with the firmware.
      • Sparkfun Pro Micro (5v)
        • The 5V Pro Micro will work okay for direct wiring, but being that it runs at 5V, it will require voltage conversion to build Wii adapters and PS2 adapters and turntables.
      • Sparkfun Pro Micro (3.3v)
        • If you want to build an adapter for a Wii or PS2 guitar, then this will be easier to use than any of the 5v microcontrollers. Due to the lower voltage, these do run at half the speed of the 5v variants, a. Clones of the Pro Micro are quite cheap but will need to be purchased from ebay or aliexpress, real Pro Micros are quite expensive but there isn't really much of a difference. 3.3V arduinos will poll a wii guitar slightly slower than a 5V arduino but in practise this does not end up mattering as there are a lot of other delays necessary for communicating with a wii guitar.
      • Arduino Micro
        • This is essentially the same thing as a 5v Pro Micro, however these are officially made by Arduino. These are often a bit more expensive as they aren't really cloned.
      • Arduino Leonardo
        • This is essentially a 5v Pro Micro with the layout of a Arduino Uno, so you get more pins but it is also much larger. You can get clones of these, but they are still more expensive than Pro Micros or picos.
      • Arduino Uno (r1/r2/r3)
        • These micro controllers are actually two micro controllers in one, and they work in tandem to provide a working controller. This has its disadvantages, as code needs to keep these controllers in sync, and this can result in issues if a bad configuration is programmed, and generally results in requiring more complicated and optimised code to work. Unos do still get 1000hz, but I would recommend against them if you are buying a new Arduino. Note that some clone Arduino Unos are actually missing the second micro controller, and these ones will NOT work at all. If you see an Arduino Uno listing that mentions "ch340g" or something along those lines do not purchase it. Due to this, they are harder to purchase and since they require more parts, they are more expensive than a Pro Micro or Pi Pico.
      • Arduino Mega 2560
        • These are in the same situation as the Uno, however the main micro controller has a lot more pins. These do also end up being rather expensive due to the sheer amount of parts that are needed to make one.
      • Arduino Uno r4
        • This is the newest entrant to the Arduino Uno line, and it is a totally different microcontroller and hence it is not supported.
      • Arduino Mini or Nano or Pro Mini or Pro Nano
        • These do NOT work, as they are essentially Unos that lack the second micro controller that allow for custom USB device emulation.
      • ESP32
        • Currently this is not supported due to the base ESP32 not fully supporting USB. There are some ESP32 models that have USB support, but these end up being more expensive than the Pi Pico, and thus it does not make sense to support these.
  • A Wii extension breakout board or an extension cable, such as this. You can also choose to cut the end of the extension and solder your own cables on as well if you perfer.

  • If your wii extension breakout does not support 3.3v input, and you are using a 5v Pro Micro, you will need a 3.3v voltage regulator. The breakout listed above does however support either voltage so this is not required for that breakout.

  • Some Wire

  • A Soldering Iron

  • Supplies for specific features

    • Tilt
      • A Tilt Switch
        • The tool supports using basic digital tilt switches (somtimes called a mercury or ball tilt switch)
          • I recommend using two tilt sensors in series, as this can help with accidental activations
        • The tool also supports using analog tilt switches
        • The tool also supports using the ADXL345
Danger

Be careful that you don’t ever provide 5v power to the power pin of a Wii Extension, as they are not designed for this. The data pins however are tolerant of 5v, so you can hook these up directly to pins on your microcontroller.

The finished product

Finished adaptor

Steps

  1. Connect wires between the SDA and SCL pins on your breakout board / wii extension cable. Refer to the following image for the pinout of a Wii Extension connector.

    The Pi Pico lets you pick from various pins for the SDA and SCL pins. We provide recommended pins below, and this pinout is the same as the old Ardwiino firmware. If you need to use other pins, the options are provided below but the SDA and SCL pins must be from the same channel.

    pinout Finished adaptor

    Danger

    If you are using a wii extension cable do NOT rely on the colours, the manufacturers are all over the place with this and the only way to validate them is to test each wire according to the above image. I’ve come across connectors wired with green as ground and black as 3.3V before, you just can’t rely on the colours at all unfortunately.

    Microcontroller SDA SCL
    Pi Pico (Recommended) GP18 GP19
    Pro Micro, Leonardo, Micro 2 3
    Uno A4 A5
    Mega 20 21
    Pi Pico (Advanced, Channel 0) GP0, GP4, GP8, GP12, GP16, GP20 GP1, GP5, GP9, GP13, GP17, GP21
    Pi Pico (Advanced, Channel 1) GP2, GP6, GP10, GP14, GP18, GP26 GP3, GP7, GP11, GP15, GP19, GP27
  2. Connect the VCC on the microcontroller to the VCC on the breakout

    • If you are using a 5v Pro Micro, and your breakout does not support 5v input, then you will need to hook up VCC from the microcontroller to a 3.3v regulator, and then hook up the output of the regulator to the breakout
    • If you are using the microcontroller uno, use the 3.3v pin on your microcontroller as VCC
    • If you are using the breakout linked above, the vin pin is used for both 3.3v input and 5v input. The 3v pin is actually an output and is not needed for this project.
  3. Connect the gnd pin on the wii breakout / extension cable to the gnd on your microcontroller.

  4. If you would like to use tilt:

    Digital Tilt
    1. Connect one pin of the first tilt sensor to ground
    2. Connect the other pin of the first tilt sensor to a pin on the second tilt sensor
    3. Connect the other pin of the second tilt sensor to a digital pin on your microcontroller.
    4. Affix the sensors to your guitar. You will need to play around with their position to get them to activate at the exact point you want tilt activating.
    Analog Tilt
    1. Connect GND to GND
    2. Connect VCC to VCC
    3. Connect the signal pin to an analog pin on your microcontroller
ADXL345
  1. Connect GND to GND

  2. Connect VCC to VCC (note that this is a 3.3v device, so for 5V microcontrollers make sure your ADXL345 breakout has a voltage regulator onboard)

  3. Hook up SDA and SCL to the microcontroller

    Microcontroller SDA SCL
    Pi Pico (Recommended) GP18 GP19
    Pro Micro, Leonardo, Micro 2 3
    Uno A4 A5
    Mega 20 21
    Pi Pico (Advanced, Channel 0) GP0, GP4, GP8, GP12, GP16, GP20 GP1, GP5, GP9, GP13, GP17, GP21
    Pi Pico (Advanced, Channel 1) GP2, GP6, GP10, GP14, GP18, GP26 GP3, GP7, GP11, GP15, GP19, GP27

Programming

  1. Start Santroller with your microcontroller plugged in.

  2. Set the Input Type to Wii Adapter

  3. Hit Configure

  4. Click on Controller Settings

  5. Set Emulation Type to Controller for controllers, or Fortnite Festival if you want to emulate a keyboard for Fortnite Festival

  6. Set the Controller Type based on the game you want to play.

  7. Windows controller mode can be set based on your preferences. Note that this only affects windows, a controller in XInput mode will use the correct mode on a console, and will automatically use HID mode on Linux and macOS.

    1. XInput - This works more natively on windows, and most games will automatically bind controls.
    2. HID - This uses HID on windows, which means games won't automatically bind controls, but HID is polled a bit more efficiently in games like Clone Hero.
  8. If you would like to adjust settings related to polling, click on Controller Poll Settings

  9. If you would like to use Queue Based Inputs you can turn that on here. This puts any buttons you press into a queue, and sends them out to the PC as fast as USB allows. This means that the controller will process your inputs at a faster poll rate than 1ms (the fastest rate USB allows) and then the PC will be sent your inputs at a 1ms rate.

  10. Set the Poll Rate to your preferred setting. 0 sends data as fast as possible, any other number polls inputs at that speed.

    1. Note that for Dj Hero Turntables this needs to be set to 10, otherwise the platter won't work correctly.
  11. Debounce can be adjusted here. Debounce is necessary as button inputs are noisy. When you hit a button, it will often bounce and send multiple presses, which some games may percieve as you hitting the button multiple times, which can result in dropped sustains. When you set debounce to a value, the signal ignores any release inputs for that time frame, so if you for example set it to 1ms, then the button input will be on for a minimum of 1ms, and only after that will the release be processed. This has the effect of stretching out the button press to at least 1ms, which ignores any bouncing in that timeframe.

  12. Combined strum debounce shares the debounce timeframe between both strums (only available on guitars). This means that if you set the strum debounce to 1ms and strummed down, both strum up and down inputs are ignored over that 1ms timeframe. This helps avoid extra strum inputs when your strum switch rebounds after being released.

  13. Click on Wii Extension Inputs

  14. If you are using a Pi Pico, specify the SDA and SCL pins that you wired your extension port to.

  15. Hit Save.

  16. You can now calibrate your inputs. If your controller is already plugged in it should be detected and show only those inputs, but you can use the Wii Inputs to display below dropdown to specify the controller you want to configure.

    1. Joysticks or crossfader
      1. Hit the Calibrate button and then move the stick all the way left / up
      2. Hit Next and then move the stick all the way right / down
      3. Hit Next and then move stick a little bit away from the center. This sets the deadzone, and any inputs closer to the center from this position will be ignored, which helps with noisy sticks.
    2. Whammy
      1. Click on Calibrate.
      2. Release the whammy bar and hit Next.
      3. Push the whammy all the way in, and hit Next
      4. Release the whammy again, and hit Next. If your whammy is noisy, you can push it in a tiny bit, and the zero position will be set to this location, which will make sure that the whammy is always considered released when it is released.
    3. Turntable Spin
      1. If your turntable isn't responsive enough in games, you can set a multiplier, which will multiply the value coming from the table by a constant amount.
  17. If you would like to use Tilt, make sure you are emulating a guitar, and then hit Add Setting and add a Tilt setting. Then follow one of the below options:

    Digital Tilt
    1. Click on Tilt, and make sure the Input Type is set to Digital Pin Input.
    2. Click on the Find Pin button, and then tilt your guitar. If you have wired everything correctly, the tool should detect the pin and the tilt icon should light up whenever you tilt the guitar.
    3. If you are using a SW520D based tilt sensor, some versions of this sensor will have an inverted output. You can turn on the Invert option to correct this.
    Analog Tilt
    1. Click on Tilt, and make sure the Input Type is set to Analog Pin Input.
    2. Click on the Find Pin button, and tthen tilt your guitar. If you have wired everything correctly, the tool should detect the pin and the tilt Original Value value should change as you tilt your guitar.
    3. Click on Calibrate
    4. Tilt your guitar down, and then hit Next
    5. Tilt the guitar up, and then hit Next
    6. Hold your guitar in its resting position and then hit Next.
    ADXL345 based Tilt
    1. Click on Tilt, and make sure the Input Type is set to ADXL345 Input.
    2. Click on the Find Pin button, and tthen tilt your guitar. If you have wired everything correctly, the tool should detect the pin and the tilt Original Value value should change as you tilt your guitar.
    3. Click on Calibrate
    4. Tilt your guitar down, and then hit Next
    5. Tilt the guitar up, and then hit Next
    6. Hold your guitar in its resting position and then hit Next.