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.
This is the real box, 720 by 96 pixels, as the Link draws it over the picture.
- 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.
RetroAchievements on real hardware
- The menu installs a tiny agent with the game.
- Once per frame, the agent copies a few bytes.Only the bytes of memory the achievement set reads, copied into cartridge memory.
- The Link runs rcheevos on those bytes.rcheevos is the RetroAchievements runtime.
- 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.
File management works while the console is in its menu.
What else it does
- Wi-Fi bridge[TCP 9064]
Speaks the
sc64deployer serverprotocol, 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.
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
- 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.
- Pass the code on.Your friend downloads
sc64-link-joinfrom the releases and runs it with the code:sc64-link-join ABC123 - 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. - 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
- Open a room.The same way, on the TV or in the web interface. No code is needed.
- Join from the emulator.RMG's netplay window shows the server
SC64 Linkby itself. Your friend picks it, creates a room with the same game and starts it.
Console against console
- Open a room.On the first console's TV: the game's options, Play online, then A. Pass on the code that appears.
- Enter the code.On the second console's TV: the same game's options, Play online, then R. Type the code and press Start.
- 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
- Close the USB-OTG jumper.One solder jumper on the board. Closed, it feeds 5 V to the cartridge.
- Flash the firmware.From Chrome or Edge on a computer, with the board's
COMsocket on a USB cable: the button below writes version the latest. Nothing to install.Or with PlatformIO, from the repository: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. cd firmware pio run -t upload - Plug it in.The board's
USBsocket goes to the cartridge, itsCOMsocket to a 5 V charger. - Pick your Wi-Fi.Join the
SC64-Linkaccess point and choose your network athttp://192.168.4.1/. - 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]