Skip to content

illusion-pasture-program/snesRFID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

snesRFID

Enables RFID card launching of games for MiSTer FPGA. Launches games without any menu being display using the MiSTer Game Launcher files (MGL) method. Must use a version of MiSTer from Feb 24, 2022 or after to support this method of launching. I have confirmed this working with the Atari 2600, NES, and SNES cores.

Hardware Needed

  • Arduino Nano V3.0
  • RC522 RFID Card Reader Module Board (3.3V)
  • Mi-fare door access cards
  • MiSTer FPGA with the extra USB ports board.

Arduino Hardware Setup

RC522 Module Pin Arduino Pin
RST D9
SDA D10
MOSI D11
SCK D13
VCC 3.3V
GRD GRD

Arduino Software Setup

  • Download Arduino software
  • Connect Arduino Nano
  • Open snesrfid.ino
  • Go to Tools -> Manage Libraries and search for MFRC522
  • Install MFRC522
  • Verify Installation and Upload

On your computer, attach the serial monitor to your Arduino and you should see it repeating . rfid_process.sh noscan about every second. As soon as your scan a RFID card, it should output . rfid_process.sh 12345678. The number is that card's unique ID. The reader will not scan the same card two times in a row. Make note of the card's unique id.

MiSTer Setup

Copy the files to your MiSTer SD card based on the structure of this repo. ATTENTION: Make sure you don't overwrite user-startup.sh if you have other services running like Favorites, Super Attract Mode or TTY2OLED. Instead, copy the contents into the file if it already exists.

Edit case statement of the "rfid_process.sh" script to associate your RFID card UIDs with the roms files on your MiSTer.

If you use TTY2OLED, make sure you assign the right ttydev to the right device.

Use

After editing the rfid_process.sh script, turn off your MiSTer. Plug your Arduino into an available USB port on your USB board module and turn on your MiSTer. Depending on how many scripts you have running, it will take about 30 seconds from first turning on the power to the RFID reader becoming available. Once the RFID reader is available, it will automatically load an Atari 2600 ROM (included in the repo) that displays "READY" in full screen.

Disclaimer

I'm not a Linux or a hardware guy -- there are probably many better approaches to the ones I have taken.

About

Enables RFID card launching of games for MiSTer FPGA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published