An Emulator That Only Plays One Game

[Ben Smith] had previously implemented a GameBoy Color emulator but decided to make a new emulator that to play just one game called pokegb. The game is, of course, the popular blue edition of Pokemon. While this emulator could play other GameBoy games, the way it was implemented was to support only the opcodes and features that Pokemon Blue used. What’s perhaps even more amazing is that this full emulator is just 582 lines of C++ (using SDL for graphics and input). There is also an obfuscated version that comes in at just 68 lines and in the shape of three Pokeballs. All the code for pokegb can be found on GitHub.

[Ben] goes through a detailed listing of each opcode of the processor, memory, the graphics unit (PPU), and how it interacts with a modern operating system. We love the idea of implementing each opcode one by one and gradually seeing the emulator make it farther and farther through the ROM. The only feature that’s noticeably absent is sound, which would require a significant amount of code to emulate properly.

If you’re interested in a deep dive into the audio chips inside a Gameboy Color, [Ken Shirriff] has already done the research for you.

At MIT, Clothing Fiber Watches You

[Yoel Fink] and his team at MIT have announced their creation of a fiber that can sense and store data. In addition, they can use data from a shirt made of the material to infer the wearer’s activity with high accuracy. The fiber contains hundreds of microscale silicon chips into a preform used to create a polymer fiber that connects the chips using four 25 micron tungsten wires. You can read the paper directly in Nature Communications.

The fiber contains temperature sensors and enough memory (24CW1280X chips) to store a short movie for two months without power. It also contains 1,650 neural network elements, which means the fiber can train to infer activity itself without additional help.

Continue reading “At MIT, Clothing Fiber Watches You”

Teach Your Air Compressor To Blow Eggs

As fun as it is to decorate Easter eggs, the road to a hollow hen’s egg is a gross and gooey avenue. Trust us, it sucks to blow out eggs, and it’s hard to get it right. Plus, you know, there’s that whole salmonella thing. [Phil] decided to speed things up this year by using an air compressor to do the dirty work.

Of course, one must approach this problem delicately because eggs are fragile. It would be nice to drill the egg instead of poking the end with a needle, but how are you gonna pull that off without breaking it? As it turns out, all you need is a bench vise, the right piece of PVC, a bit of rubber to keep the egg safe, and some hose clamps to keep the business part together.

[Phil] built a two-stage contraption that serves both purposes — the bottom cup safely cradles the egg for drilling, and the identical top cup connects to the air compressor, which blows the goo out of the bottom hole. [Phil] might have used negative pressure instead, but doesn’t have a vacuum pump or hose. Be sure to check out the brief demo video below.

Don’t want to mess around with real eggs? There are tons of ways to beautify fake eggs, but few of them are as cool as lasers.

Continue reading “Teach Your Air Compressor To Blow Eggs”

Hi-Fi Combines Best Of 60s And 90s Technology

The 90s were a dark time for audio equipment, literally and figuratively. Essentially the only redeeming quality from the decade of nondescript black plastic boxes was the low cost. Compared to the audio equipment of the 60s, largely produced in high-end enclosures with highly desirable tube amplifiers, the 90s did not offer much when it came to hi-fi stereo sound. However, those cheap black boxes from the 90s turn out to be surprisingly perfect for project enclosures for other amplifier builds, such as this 60s-era tube amp recreation.

This mesh of the best of two distinct decades comes from [Alvenh] and begins by preparing the old enclosure for its new purpose. This means a lot of work fabricating a custom metal face plate for the new amplifier and significantly modifying the remaining case. After the box is complete, the amplifier build began. It uses a tube-based preamp and a solid-state power amplifier since [Alvenh]’s experience suggested that the warm tube sound was generated mostly in the preamp. This means that his design is a hybrid but still preserves the essential qualities of a full tube build.

The build also includes a radio module that has the ability to cover the 2m and 70cm bands popular in ham radio. This module also has been found to have much better audio quality than the standard AM/FM receiver typically used in projects like this. With the radio module added to the custom enclosure, as well as a phono amp and a power supply, [Alvenh] has an excellent audio amplifier in an inexpensive case which preserves the tube sound from the true hi-fi eras of decades past.

Continue reading “Hi-Fi Combines Best Of 60s And 90s Technology”

Portable, Digital Scoreboard Goes Anywhere

It’s that time of year in both hemispheres — time to get outside and play before it gets unbearably hot (or cold). No matter what your game, don’t keep score in your head or with piles of rocks — make yourself a portable, fold-able scoreboard like [LordGuilly] did and be on the bleeding edge of display technology. It’s really more roll-able than fold-able, which is awesome because you get to unfurl it like a boss.

All you need is a place to hang it up and you’re good to go. This thing runs on a beefy 10,000 mAH USB power bank, and [LordGuilly] says that it’s easy to read even on really sunny days. As you may have guessed, those are WS2812 strips and they are set into rectangular PVC bars. The bars are set equidistant from each other in a frame made from modified version of cable tracks — plastic chain links for cable management.

Good looks aside, we especially like that there are two controller options here. If you want to assign a dedicated scorekeeper, there’s a handled version that uses an STM32 blue pill and is wired to the display. But if you’re short on people, use the ESP8266 version and update the score with the accompanying app. Check out the demo after the break so you can see it in action.

We’ve seen a few scoreboards over the years, including this beauty that’s meant for indoor games.

Continue reading “Portable, Digital Scoreboard Goes Anywhere”

Intel’s ATX12VO Standard: A Study In Increasing Computer Power Supply Efficiency

The venerable ATX standard was developed in 1995 by Intel, as an attempt to standardize what had until then been a PC ecosystem formed around the IBM AT PC’s legacy. The preceding AT form factor was not so much a standard as it was the copying of the IBM AT’s approximate mainboard and with it all of its flaws.

With the ATX standard also came the ATX power supply (PSU), the standard for which defines the standard voltage rails and the function of each additional feature, such as soft power on (PS_ON).  As with all electrical appliances and gadgets during the 1990s and beyond, the ATX PSUs became the subject of power efficiency regulations, which would also lead to the 80+ certification program in 2004.

Starting in 2019, Intel has been promoting the ATX12VO (12 V only) standard for new systems, but what is this new standard about, and will switching everything to 12 V really be worth any power savings? Continue reading “Intel’s ATX12VO Standard: A Study In Increasing Computer Power Supply Efficiency”

LED Matrix Hack Chat

Join us on Wednesday, June 9 at noon Pacific for the LED Matrix Hack Chat with Garrett Mace!

It’s pretty amazing how quickly light-emitting diodes went from physics lab curiosity to a mainstream commodity product made in the millions, if not billions. Everything about LEDs has gotten better, smaller, and cheaper over the years, going from an “any color you want as long as it’s red” phase to all the colors of the rainbow and beyond in a relatively short time. LEDs have worked their way into applications that just didn’t seem likely not that long ago, like architectural lighting, automotive applications, and even immense displays covering billboards, buildings, and sporting venues with multicolor, high-resolution displays.

It’s that latter application that seems to have provided a boon to electronics hobbyists, in the form of cheap and plentiful LED matrix modules. These are easily sourced at the usual places, and with their tightly packed pinpoints that can show any color at any intensity, they have a ton of fun and useful applications for the hacker. But how exactly do you put them to use? Usually the electronics end is pretty straightforward, but some of the math involved in figuring out how to address all these LEDs can be a little mind-bending.

To help us sort all this out, Garrett Mace will drop by the Hack Chat. You’ve probably seen Garrett’s cool LED matrix shades, which have gone through a ton of revisions and are a much-copied fashion accessory among the cool hackers. They look simple, but there are tricks to making them work right, and Garrett will share his secrets. Come with your questions on putting LED matrix modules to work, especially those odd-size modules and strange arrangements that defy simple Cartesian coordinates.

join-hack-chatOur Hack Chats are live community events in the Hack Chat group messaging. This week we’ll be sitting down on Wednesday, June 9 at 12:00 PM Pacific time. If time zones have you tied up, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.