How The Game Genie Works

Those of us old enough to remember blowing into cartridges will probably remember the Game Genie – a device that plugs in to an NES, SNES, Sega Genesis, or Game Boy that gives the player extra lives, items, changes the difficulty, or otherwise modifies the gameplay. To someone who doesn’t yet know where the 1-up is in the first level of Super Mario Bros., the Game Genie seems magical. There is, of course, a rhyme and reason behind the Genie and [The Mighty Mike Master] put together a great walkthrough of how the Game Genie works.

There are two varieties of Game Genie codes – 6-character codes and 8-character codes. Both these types of codes translate into a 15-bit address in the game ROM (from 0x8000 to 0xFFFF for the 6502-based NES) and a data byte. For the 6-character codes, whenever the address referenced by the Game Genie code is accessed, a specific data byte is returned. Thus, infinite lives become a reality with just a 6-character code.

Some games, especially ones made in the late years of their respective systems, use memory mapping to increase the code and data provided on the cartridges. Since areas of data are constantly being taken in and out of the CPU’s address space, merely returning a set value whenever a specific address is accessed would be disastrous. For this bank-switching setup, the Game Genie uses an 8-bit code; it’s just like the 6-bit code, only with the addition of a ‘compare’ byte. Using an 8-bit code, the Game Genie returns a specific byte if the compare bytes are equal. Otherwise, the Genie lets hands off the original data to the CPU.

Of course, all this information could be gleaned from the original patent for the Game Genie. As for the circuitry inside the Game Genie, there’s really not much aside from an un-Googleable GAL (general array logic) and a tiny epoxied microcontroller. It’s an amazingly simple device for all the amazement it imbued in our young impressionable minds.

Continue reading “How The Game Genie Works”

Hackaday Hackerspace Henchmen == Free Stuff For You

2013-10-01_Hackaday_Hackerspace_Henchmen_banner-580x200

Are you a member of your local Hackerspace? Do you want some free stuff? Then you need to become one of the Hackaday Hackerspace Henchmen.

Hackerspaces are amazing places full of smart people pulling off delightful hacks. But often the outside world doesn’t hear about them. When a member completes a project they show it to the other members, quenching the need to share the awesomeness and ridding them of the drive which normally prompts someone to publish a post about it. We want to see what you’ve been up to at your Hackerspace, and making it public will help in sharing ideas between Hackerspaces. Send us the details and we’ll thank you with some swag in return, and with a few special rewards for the most exception hacks. Keep reading for prize details and how this is all going to work.

Continue reading “Hackaday Hackerspace Henchmen == Free Stuff For You”

Custom Arcade Control Panel

Anybody can fire up an emulator and play arcade games of yesteryear, but if you want to capture more of the nostalgia, you should build a custom arcade control panel. [Quinn] started her build by narrowing down which games she was most interested in playing, and decided on a straightforward 2-player setup. The biggest challenge was finding joysticks that would allow for switchable 4-way or 8-way control: some games such as Ms. Pac Man were made for 4-way joystick input, and the added positions on a 8-way can lead to confused inputs and frustrated players.

[Quinn] found the solution with a pair of Ultimarc Servo Stik joysticks, which use a servo motor to swap between 4 and 8-way mode. The output from both the joysticks and the buttons feed into an iPac encoder, which converts the signal to emulate a USB keyboard. The panel was first mocked up on butcher paper, with dimensions borrowed from various games: the panel itself resembles Mortal Kombat 2, while the buttons are spaced to match X-Men vs Street Fighter 2. [Quinn] chose some spare melamine—plywood with a plastic coating—to construct the panel, drilled some holes and used a router to carve out space for the joysticks. A USB hub was added to power the servos and to make room for future additions, which [Quinn] will have no difficulty implementing considering that her electrical layout is enviably clean. To cap it all off, she fit two “coin slot” buttons: a quarter placed into a slot serves as a start button when pressed.

Be sure to see the videos after the break that demonstrate the coin buttons and the servos, then check out a different retro joystick hack for a tripod controller, or look to the future with the Steam Controller.

Continue reading “Custom Arcade Control Panel”

Handheld Console Build-off

gc

The above pic isn’t a new Wii U controller from Nintendo – it’s the product of the 2013 Portable Build-Off Challenge over at the Made By Bacteria forums. Every year the Bacman forums hold a contest to build the best portabalized console, and like every year this year’s entries are top-notch.

One of the more interesting projects this year is a handheld PlayStation 2 put together by [Gman]. It uses a PS2 Slim motherboard and a dualshock 2 controller along with a 4-inch screen to stuff an entire PS2 into a convenient handheld gaming device. [Gman] ditched the CD drive and opted to play games off the USB drive, a clever substitution that really reduces the size and power consumption.

In our humble opinion, the best looking console mod is the one shown above by [Bungle]. It’s a portable GameCube stuffed inside a handmade case with a WiiKey Fusion that allows games to be played off an SD card. It’s an amazing build, and we can only hope [Bungle] will make a few molds of his case.

The entire contest has an incredible display of console modding expertise, and is well worth a look.

Computer Controlled Water Show

watershow

After seeing our recent post on Laminar Flow Nozzles, [Richard] decided to share with us his family’s summer project — a computer controlled water show (translated)!

The setup uses a Raspberry Pi at its core and a set of USB relay boards to turn the valves and lights on and off to the music. They wrote the program in Python and have posted it on their website to share.

They used common household solenoid valves because they are easy to control by relay, but unfortunately they are on/off only, so variable flow is not possible. A challenge they encountered was equalizing the water pressure — one to make sure the pump didn’t over heat when the fountains were off, and two, to equalize the height of each fountain stream. To solve this they used a pressure regulator for the pump, and organized the plumbing in such a way with additional control valves that the pressure differences were minimal.

The setup doesn’t sound like it cost that much, and now the family has their own music activated water fountain in their garden — how awesome is that! Stick around after the break to see it in action.

Continue reading “Computer Controlled Water Show”

Remote Servo-controlled Lightswitch

remoteServoLightSwitch

We frequently get home automation tips, many of which have simple circuit-based on/off control for lights. [Paulo Borges] has created something quite different, however, with his in-the-wall servo-controlled light switch. This build forgoes the need of any relay to switch mains power, and because it’s physically flipping your switch, provides a distinct advantage over other builds that require a phone or tablet interface: you can use your switches as you normally would.

[Paulo] picked up a rocker-type switch at the local hardware store and carefully pried off the large, flat switch plate to notch out a small hole at its fulcrum. He then carefully shaped a piece of 12 gauge wire to provide a pivot point for the servo. His choice to use wire here seems to be entirely to provide a sturdy yet bendable component that functions mechanically rather than electrically. A small 9G servo fits to the back of the switch’s housing, and the servo’s arm connects up to the previously attached 12 gauge wire. He pieced together the remote control feature with an RF link kit with an inexpensive 433mhz Code duplicator from eBay.

[Paulo] explains that his Instructable is simply an overview rather than a step-by-step guide, so if you’re eager to reproduce this hack you’ll have to work out the code and the remote control portion yourself. He also acknowledges the biggest remaining hurdle: finding space in the wall to shove all the microcontroller guts. Check out a couple of videos of the switch after the break, and remember, there’s always the option of doing away with all light switches.

Continue reading “Remote Servo-controlled Lightswitch”

Hackaday Links: October 6, 2013

hackaday-links-chain

The iBeacon has been all over the interwebs lately. Here’s a riff on the Arduino Pro MIni that adds a BLE module. It can be used to make an iBeacon clone. You can also hack a VTag keyfinder to operate in much the same way.

Remember that post about pulling a QR Code generator into Google Docs? One could argue that the best use of this functionality is to add labels to your parts storage that lead back to the product page for the component. [Thanks Nicholas]

[Michael] wrote in to share his crowd funding campaign. He is a school teacher and wants to publish a detective story that gets kids excited about STEM.

Our own [James Hobson] made the first cut to be [Adam Savage’s] new assistant. He’s the [TheHacksmith] (read our staff page if you don’t believe us) and is the third entry featured in this vignette. Apparently they’ve got something against Canadians because they say he’s ineligible due to his nationality!?

If you’ve ever been confused about the features of different Xbee modules this comparison chart may be of assistance.

A couple of weeks ago we learned about a contest put on by TheControllerProject. [TouchStone936] gets credit for quick, easy, and functional. His solution to making shoulder buttons more accessible includes hot-glue, a golf tee, and a binder clip. Pretty clever!

Wanting a better color of backlight for his eReader, [Vivek Gani] cracked it open and applied Kapton Tape as a gel to soften the hue.

And finally something very silly. If you put a strong enough prop on the front, you can get just about anything to fly. This instance involves a flying pizza box which to us looks particularly un-flight-worthy. [via Gizmodo]