The Legend Of Zelda: Decompiled

Keeping source code to programs closed is something that is generally frowned upon here for plenty of reasons. Closed source code is less secure and less customizable, but unfortunately we won’t be able to convince everyone of the merits of open source code any time soon. On the other hand, it is possible to decompile some of those programs whose source remains behind locked doors in an attempt to better understand that code, and one of the more impressive examples of that of late is this project which has fully decompiled The Ocarina of Time.

To get started with the code for this project, one simply needs to clone the Git repository and then use a certain set of software tools (depending on the user’s operating system) to compile the ROM from the source code. From there, though, the world is your rupee-filled jar. Like we’ve seen from other decompiled games, any number of enhancements to the original game can be made including increasing the frame rate, improving the graphics, or otherwise adding flourishes that wouldn’t otherwise be there.

The creators of this project do point out that this is still a work-in-progress as only one of the 18 versions have been completed, but the fact that the source code they have been able to decompile builds a fully-working game when recompiled speaks to how far along it’s come. We’ve seen similar processes used for other games before that also help to illustrate how much improvement is possible when re-writing old games from their source code.

Thanks to [Lazarus] for the tip!

Continue reading “The Legend Of Zelda: Decompiled”

Self-frosting snowman

Peltier Snow Globe Features Snowman Who Dresses Himself In Real Frost

We doubt that few of us ever thought that snow globes contain real snow, but now that we’ve seen a snow globe that makes its own snow, we have to admit the water-filled holiday decorating mainstay looks a little disappointing.

Like a lot of the Christmas decorations [Sean Hodgins] has come up with over the years, this self-frosting snowman is both clever in design and cute in execution. The working end is a piece of aluminum turned down into the classic snowman configuration; the lathe-less could probably do the same thing by sticking some ball bearings together with CA glue. Adorned with 3D-printed accessories, the sculpture sits on a pedestal of Peltier coolers, stacked on top of a big CPU cooler. Flanking the as-yet underdressed snowman is a pair of big power resistors, which serve as heating elements to fill the globe with vapor. [Sean]’s liquid of choice is isopropyl alcohol, and it seems to work very well as the figurine is quickly enrobed with frost.

But wait, there’s more — as [Sean] points out, the apparatus is 90% of the way to being a cloud chamber. Maybe we’ll see a less festive version after the holidays. Until then, enjoy his ornament that prints other ornaments, his blinkenlight PCB tree-hangers, or his tiny TV that plays holiday commercials.

Continue reading “Peltier Snow Globe Features Snowman Who Dresses Himself In Real Frost”

FlyBrainLab: Google Earth But For A Drosophila Fly’s Brain

In biology there are a couple of truly crucial model animals and insects. Not that they’re particularly good students, or pick up their own trash, but in the sense that they have become standard model organisms for research. Aside from genetic research, the FlyEM project seeks to fully map a little fly’s brain’s neural connections. This common fly, called drosophila melanogaster (or ‘lesser fruit fly’) has been the subject of a lot of genetic studies, but this study of its brain structure may provide insights in how our brain works as well.

Based on electron microscope images of thin slices of a drosophila brain, the three-dimensional structure of this tiny brain is reconstructed to not only determine the location of each neuron, but also their connections with other neurons. We know that about two-thirds of their brain is dedicated to processing the visual information from their relatively advanced compound eyes, but a lot is still unknown about how this is done, or how the brain’s structure develops.

If it’s always been your dream to tinker with a little fruit fly’s brain, you can do so yourself using the open source FlyBrainLab tool provided, along with the freely available data sources. This tool does not just allow one to visualize the drosophila brain in great detail, but also to create executable circuits and study their functionality. With neurobiology still a largely unexplored territory, this makes for an amazing tool to make this research accessible to anyone.

(Thanks for the tip, [Hernandi Krammes])

DIY bagpipe made from a latex glove and some straws.

Ring In The New Year With DIY Bagpipes

Remember early on in the pandemic when people would don protection just short of a full hazmat suit to go out, and wore rubber gloves to the grocery store? Was that just us? The point is, we are surely not alone in having an excess of latex gloves left over, and pitifully few uses for them aside from the usual — gross jobs around the house, and making hand-shaped ice cubes.

Circular breathing, explained.Well, here’s something a little more fun: DIY bagpipes. No matter how you feel about the sounds they produce, the way that bagpipes work is pretty interesting. In the video embedded after the break, [Charlie Engelman] shows us how they work and compares them to saxophonist Kenny G’s little jazz mouth.

See, Mr. G can circular breathe, which means he can hold a note for as long as he wants. Basically, he is able to keep a reserve of air in his mouth for playing the thing, while at the same time inhaling new air.

If we bring this back around to bagpipes, the bladder is akin to Kenny G’s mouth. It always contains air, so it perpetually releases air through the sound pipes that stick up. In the case of the glove pipe, the glove is the bladder, and the pipes are made of drinking straws. Check it out after the break — we think the sound is far more tolerable than real bagpipes.

We’ve seen bagpipes made from common household items before (if you consider a couple of plastic recorders to be common household items), and we’ve also seen real bagpipes go electromechanical.

Continue reading “Ring In The New Year With DIY Bagpipes”

Lisp In 436 Bytes

You would assume that any programming language available back in the 1960s would be small enough to easily implement on today’s computers. That’s not always true though, since old languages sometimes used multiple passes. But in some cases, you can implement what would have been a full language decades ago in a tiny footprint. A case in point is a pretty good implementation of Lisp — including garbage collection — in 436 bytes.

SectorLISP claims to be the tiniest real language, beaten only by toy languages that are not really very useful. If you want to, you can try it in your browser, but that version has better error messages and persistent bindings, so it hogs up a whole 509 bytes.

Continue reading “Lisp In 436 Bytes”

Fixing A Freezer Design Flaw With A Little Bit Of Heat

As a shining example of the law of unintended consequences, [Lou] demonstrates how certain types of freezer/refrigerator combinations fail to work in a cold environment, such as a garage during the winter. As [Lou] points out in his video (also linked after the break) – using the freezer unit in his own garage – the problem lies with devices that put the temperature sensor in the refrigerator section, but circulate cold air starting in the freezer section.

This works great in a home environment with a room temperature comfortable for humans, as the refrigerator will constantly warm up slightly due to heat from the outside, triggering the cooling cycle and ensuring the freezer section will stay nice and cold. When placed in, say, a garage when it’s around freezing, the refrigerator section will not warm up, and thus no more cooling cycle gets triggered.

As obviously the freezer section is supposed to stay significantly colder than roughly around 0°C, the freezer section can warm up enough to allow frozen goods to thaw out. The easy fix here as [Lou] demonstrates, is to add a constant source of warmth inside the refrigerator section, such as by keeping the refrigerator light on constantly.

Obvious complaints about the lack of energy efficiency and this combo unit’s optimistically broken sensor design aside, it is a fairly simple and effective fix. Even so, perhaps trading such a combo unit for one with a dedicated temperature sensor in the freezer section would prevent headaches like these.

Continue reading “Fixing A Freezer Design Flaw With A Little Bit Of Heat”

WS2812s On A 6502

We can still remember when the WS2812 LED first came into our consciousness, way back in the mists of time. The timing diagrams in the datasheet-of-questionable-veracity made it sound quite tricky, with tight timing tolerances and essentially a high-speed two-bit PWM data protocol at 500 kHz. It was a challenge to bit-bang with an ATtiny85 back then, but there’s no way something as old and crusty as an Apple II would be up to snuff, right?

[Anders Nielsen] took up the challenge of getting the venerable 6502 processor to drive Neopixels and won! After all, if the chip is good enough for Bender and the Terminator T-800, it should be able to blink some colored LEDs, right? The secret sauce is shift registers!

Specifically, [Anders] abuses the 74LS165 parallel-in, serial-out shift register for his dirty work. Instead of bit-banging the WS2812’s “long high is a 1, short high is a 0” signal directly, the first few bits of the shift register are hard-wired to VCC and the last few to GND.

The bits in the middle determine if the pulse shifted out is long or short, and they’re set by the 6502, through a 6522 VIA chip, just like the Apple II would have. Clocking the data out of the shift register handles the timing-critical stuff. Very clever!

Video below the break.

Continue reading “WS2812s On A 6502”