SC64 LinkWi-Fi for the SummerCart64

An achievement box rises over the game, on a real Nintendo 64.

SC64 Link is a small ESP32-S3 board on the USB port of a SummerCart64, the open-source Nintendo 64 flash cartridge. It puts the cartridge on your Wi-Fi, checks RetroAchievements while you play on the console, and lets you manage games, saves and settings from a phone. It also plays online: your console against friends on another console or on an emulator, by a room code.

The unlock box as drawn on the TV: a badge, the headline ACHIEVEMENT UNLOCKED, the achievement's name and its description.

This is the real box, 720 by 96 pixels, as the Link draws it over the picture.

The web interface on a phone. Tabs: Home, Games, Trophies, Saves, Setup. The Home tab shows the game being played, 5 of 72 achievements unlocked, and the status of the cartridge, Wi-Fi, clock and network bridge.
The cartridge, from a phone
  • Nintendo 64
  • SummerCart64
  • SC64 LinkESP32-S3
  • Phone, computer, home automationbrowser, MQTT, sc64deployer

The Link is the cartridge's USB host, so no computer stays attached. It was inspired by the sd2snes+ Link for the SNES.

On the TV

With the patched menu, a fork of N64FlashcartMenu, the menu on the console gains an SC64 Link screen: the Link's status, Wi-Fi setup with an on-screen keyboard, and a RetroAchievements screen with your account, the on/off switch, login and the list of achievements.

The SC64 Link screen on the TV: status connected with the firmware version, Wi-Fi network, address and signal, clock set from the network. Bottom bar: A Wi-Fi setup, B Back.
StatusCaptured from the menu on the console.
The RetroAchievements screen on the TV: the account, achievements in games on, the last game and its unlocked count. Bottom bar: A Turn off, B Back, Start Log out.
RetroAchievementsAccount, on or off, the last game.

RetroAchievements on real hardware

  1. The menu installs a tiny agent with the game.
  2. Once per frame, the agent copies a few bytes.Only the bytes of memory the achievement set reads, copied into cartridge memory.
  3. The Link runs rcheevos on those bytes.rcheevos is the RetroAchievements runtime.
  4. Something unlocks, and the box slides up.The achievement's badge, name and description, drawn over the running game on the TV.
Mode
Softcore only
Default
Off until you turn it on
Verified
Mario Kart 64 on a real console, two unlocks
Other games
Untested

Have a SummerCart64? Try another game and report what happens.

From a phone or a computer

Open http://sc64link.local/ on the same network. The interface looks like the menu on the console, in light and dark, eight languages.

Browse the SD card and manage games: upload, rename, delete, or start a game on the console. It also handles box covers, save files, cheat codes, the menu's settings and background picture, achievements with their badges, Wi-Fi, save copies and logs.

The Games tab in the light theme: a folder of the SD card with five files and their sizes. Actions: A Upload, C New folder, B Up.
GamesThe SD card, here in the light theme.
A game's sheet: a cover placeholder, the file size and game code, and the actions Play on the console, Change cover, Cheats, Save file, Download, Rename, Delete, Close.
A game's sheetStart it on the console, change its cover, cheats and save file.
The Trophies tab: a list of achievements with badges, descriptions and points. Unlocked ones are in colour, locked ones are greyed.
TrophiesAchievements with their badges.
The Setup tab: the menu's settings as on/off switches, such as the achievements agent in games, menu sound effects, PAL60 output and progressive scan.
SetupThe settings of the menu on the console.
The Trophies tab in a desktop browser, light theme: the same list of achievements across a wider screen.
The same interface in a desktop browser

File management works while the console is in its menu.

What else it does

  • Wi-Fi bridge[TCP 9064] Speaks the sc64deployer server protocol, so upload, dump and debug work over the network.
    sc64deployer -r sc64link.local:9064 info
  • Clock[from the network] Sets the cartridge's real-time clock from the network.
  • Save copies[current + previous] When a game's save changes, the Link keeps a copy in its own flash: the current one and the one before. Download them from the web interface.
  • Saves in Google Drive[optional] Connect your Google account, in the web interface or by scanning a code on the TV, and the save copies also go to a folder in your own Drive, with its earlier versions kept. The Link only sees the files it puts there.
  • Your account[RetroAchievements] Your RetroAchievements account is your account here: the games you played, your history and your achievements are on your profile there. A QR code on the TV opens it on a phone.
  • Back to the menu[no reset button needed] A button in the web interface takes the console out of the running game and back to the cartridge's menu, as its reset button would. Tried with Mario Kart 64 and Vigilante 8. How.
  • Menu updates[SD card stays in] The firmware carries the patched menu and installs it on the cartridge when the console's menu is older.
  • MQTT[any broker] The current game, activity, achievements and each unlock are published to a broker of yours, plain or over TLS, and the Link takes commands from it: Node-RED, openHAB, a script. Topics.
  • Home Assistant[nothing to install] With MQTT on, Home Assistant finds the Link by itself: 26 entities, among them the game, its achievements, an event for each unlock and a button to go back to the menu.
  • Password[optional] Off by default. Once set, the web interface, its API and updates over Wi-Fi ask for it.
  • Status light[can be turned off] The board's LED: white in the menu, green during a game, gold for an achievement, red with no cartridge.
  • Firmware updates[over Wi-Fi] A button in the web interface looks for a newer firmware and installs it over Wi-Fi. Only when you ask.

A case to print

A two-part case, 33 by 69 by 10.5 mm. The lid slides in from the USB end and snaps shut: two flexible arms on the lid catch the rails, so it clicks home and stays put; push it towards the USB end to open it. The SC64 Link logo stands 1 mm proud in a label recess, air vents run over the antenna and a small hole sits over the status light. Four filaments: the case in black or white, the S in green, the C in blue, the 64 and LINK in red. In one colour it also works. No screws, no supports, about 1 h 20 min to print in four colours (35 min in one). The files are in the case folder of the repository; printed and fitted on a Bambu Lab A1.

Render of the closed case in black: a box with one rounded end, the logo raised in a recessed label (S in green, C in blue, 64 and LINK in red) and air vents in the lid and the sides at the rounded end. Render of the open case: the lid lifted off the base, the board inside, the rails along the walls and the two flexible arms at the front of the lid.

Play online

Your real Nintendo 64 against friends on an emulator, at home or far away.

  • Play at home[same network] A friend on a computer on your network joins your game. No code, nothing to install.
  • Play with someone far away[room code] Open a room and pass on its code, or let your friend scan the QR code on the TV. They join from wherever they are; nothing to set up on the router.
  • The real console[player 1] You play on the console, on the TV, with its own controller, and it answers at once. Your friend's controller comes over the network, so from far away it can answer a little late.
  • Your save[left as it is] Everyone starts from the console's save, and the one on your SD card is not changed. Achievements pause during an online game.
  • Two consoles[new] Each console with its own Link: one opens a room, the other types its code on the TV. New, and still being proven.

What you need

  • The game The same game file on the console's SD card and on your friend's computer. The project does not provide games.
  • An emulator RMG, on Windows or Linux, on your friend's side.
  • The Link Firmware 0.12.0 or newer.

With someone far away

  1. Open a room.On the TV: the game's options, Play online, then A. Or in the Link's web interface: Games, the game, Play online. A room code appears, with a QR code that opens the invitation; the first time with a game it takes about half a minute.
  2. Pass the code on.Your friend downloads sc64-link-join from the releases and runs it with the code:
    sc64-link-join ABC123
  3. Join from the emulator.In RMG's netplay window, your friend picks the server SC64 Link ABC123, creates a room with the same game and starts it.
  4. Play.The console starts the game by itself. To end, close the room: B on the TV's room screen, or in the Link's web interface.

At home

  1. Open a room.The same way, on the TV or in the web interface. No code is needed.
  2. Join from the emulator.RMG's netplay window shows the server SC64 Link by itself. Your friend picks it, creates a room with the same game and starts it.

Console against console

  1. Open a room.On the first console's TV: the game's options, Play online, then A. Pass on the code that appears.
  2. Enter the code.On the second console's TV: the same game's options, Play online, then R. Type the code and press Start.
  3. Start.When both are in the room, the first console presses A. The game starts on both.

Online play is new and experimental: so far it is known to work with Mario Kart 64. More in the documentation.

Build one

Board
ESP32-S3 dev board, N16R8, two USB-C sockets (tested on a YD-ESP32-23)
Cartridge
SummerCart64
Menu
The patched menu, branch feat/ra-link
Power
Any 5 V USB charger

Five steps

  1. Close the USB-OTG jumper.One solder jumper on the board. Closed, it feeds 5 V to the cartridge.
  2. Flash the firmware.From Chrome or Edge on a computer, with the board's COM socket on a USB cable: the button below writes version the latest. Nothing to install.
    This browser cannot talk to the board (it needs Web Serial: Chrome or Edge on a computer). Use PlatformIO instead. The installer needs this page to be opened over https.
    Or with PlatformIO, from the repository:
    cd firmware
    pio run -t upload
  3. Plug it in.The board's USB socket goes to the cartridge, its COM socket to a 5 V charger.
  4. Pick your Wi-Fi.Join the SC64-Link access point and choose your network at http://192.168.4.1/.
  5. Open the interface.It is at http://sc64link.local/.

The details are in the repository's README.

Limits

SC64 Link is experimental. Read this list before you build one.

  • RetroAchievements[softcore, few games tried] Softcore only. Achievements have been unlocked in Mario Kart 64; Vigilante 8 has been followed with none earned yet. Other games are untested.
  • Security[home network] No password until you set one, and HTTP is not encrypted. The sc64deployer bridge cannot ask for a password at all; it has its own off switch.
  • Patched menu[required] The Link needs its fork of N64FlashcartMenu on the cartridge.
  • Wi-Fi[2.4 GHz only]
  • Expansion Pak[hardware one cannot be emulated]