Retro Pico Switch

From GameBrew
Retro Pico Switch
Retropiconx.png
General
AuthorDavidPagels
TypeRemote Play and Streaming
Version4.0.0
LicenseMIT License
Last Updated2023/04/25
Links
Download
Website
Source

Retro Pico is a homebrew project that uses Raspberry Pi Pico ($4 microcontroller) to allow you to play Nintendo Switch game using button and joystick inputs from an original N64 or Gamecube controller. This is a spiritual successor to the N64-Arduino-Switch project.

Features

  • Connects to a Nintendo Switch via USB or Bluetooth.
  • Also works with any platform that supports Nintendo Switch Pro controllers.
  • Auto-detects whether the controller is N64 or Gamecube.
  • Dynamically scales each axis of each analog joystick to account for reduced joystick range on old controllers.
  • L+R+Start are mapped to the Switch home button.
  • Supports rumble on Gamecube controllers and N64 controllers with Rumble Paks.

User guide

If you want to program the Raspberry Pi Pico, follow these steps:

  • Press and hold the boot sel button on the Pico.
  • While holding the button, connect the Pico to your PC using a Micro USB cable.
  • Open the Pico in your File Explorer.
  • Go to the most recent release of this repository and download the .uf2 file.
  • Drag and drop the .uf2 file into the Pico folder you opened in step 3.
  • You're done.

After completing these steps, connect your N64 or Gamecube controller. Note that the pre-built .uf2 file assumes the data pin is on GP18 pin of the Pico. To ensure proper functionality, wire a 1k pullup resistor between the 3.3v and the data pin.

Bluetooth

The current version requires you to connect to a Switch in the "Change Grip/Order" menu. If the Pico becomes disconnected, it may also have to be power cycled to get it to pair with the Switch again. Also, while the Pico wirelessly connects to the Switch, it will still need to be powered via USB (any USB port - a battery bank should work).

Screenshots

retropiconx2.png

Changelog

v4.0.0 2023/04/25

  • This release adds rumble support for N64 controllers with Rumble Paks and Gamecube controllers.
  • It also now auto-detects whether the plugged in controller is an N64 controller or Gamecube controller.
  • Important note: This release/.uf2 assumes the data pin for the N64 or Gamecube controller is being wired to GP18 on the Raspberry Pi Pico.

v3.0.0 2023/04/05

  • This release adds support for connecting to a Nintendo Switch over Bluetooth.
  • It also fixes an occasional issue with the PIO program readings being off by 1 bit (#5), which also ended up messing up the logic for scaling analog joystick inputs.

v2.0.0 2023/02/10

  • This release adds support for Gamecube controllers with 2 different mapping options.
    • gc.uf2 maps the Gamecube controller buttons to the Switch's 1-to-1.
    • gc_sms.uf2 maps the Gamecube controller buttons so that the Super Mario 3D All-Stars: Super Mario Sunshine port will control as close as possible on the Switch as it does on the Gamecube.
  • The n64.uf2 should control the same as it did in v1.0.0.

v1.0.0 2023/01/31

  • This initial release includes a PIO interface to the N64 controller data pin, tinyusb descriptors and callbacks to handle communicating with a Nintendo Switch via USB cable, and the glue code needed to translate and interface the two.

Credits

This project would have taken a lot longer without the work done by everyone credited in the original N64-Arduino-Switch project along with the creators and contributors of TinyUsb, the GP2040-CE project, and the MPG project. Figuring out how to interface via Bluetooth also took me 1.5 months of work in my off time and would have taken even longer without the work done by Brikwerk on the nxbt project. If you're into developing this sort of stuff, definitely check their stuff out.

External links

Advertising: