Happy Birthday, Tetris!

Porting DOOM to everything that’s even vaguely Turing complete is a sport for the advanced hacker. But if you are just getting started, or want to focus more on the physical build of your project, a simpler game is probably the way to go. Maybe this explains the eternal popularity of games like PONG, Tetris, Snake, or even Pac-Man. The amount of fun you can have playing the game, relative to the size of the code necessary to implement them, make these games evergreen.

Yesterday was Tetris’ 40th birthday, and in honor of the occasion, I thought I’d bring you a collection of sweet Tetris hacks.

On the big-builds side of things, it’s hard to beat these MIT students who used colored lights in the windows of the Green Building back in 2012. They apparently couldn’t get into some rooms, because they had some dead pixels, but at that scale, who’s complaining? Coming in just smaller, at the size of a whole wall, [Oat Foundry]’s giant split-flap display Tetris is certainly noisy enough.

Smaller still, although only a little bit less noisy, this flip-dot Tetris is at home on the coffee table, while this one by [Electronoobs] gives you an excuse to play around with RGB LEDs. And if you need a Tetris for your workbench, but you don’t have the space for an extra screen, this oscilloscope version is just the ticket. Or just play it (sideways) on your business card.

All of the above projects have focused on the builds, but if you want to tackle your own, you’ll need to spend some time with the code as well. We’ve got you covered. Way back, former Editor in Chief [Mike Szczys] ported Tetris to the AVR platform. If you need color, this deep dive into the way the NES version of Tetris worked also comes with demo code in Java and Lua. TetrOS is the most minimal version of the game we’ve seen, coming in at a mere 446 bytes, but it’s without any of the frills.

No Tetris birthday roundup would be complete without mentioning the phenomenal “From NAND to Tetris” course, which really does what it says on the package: builds a Tetris game, and your understanding of computing in general, from the ground up.

Can you think of other projects to celebrate Tetris’ 40th? We’d love to see your favorites!

Is That A Triboelectric Generator In Your Shoe?

The triboelectric effect is familiar to anyone who has rubbed wool on a PVC pipe, or a balloon on a childs’ hair and then stuck it on the wall. Rubbing transfers some electrons from one material to the other, and they become oppositely charged. We usually think of this as “static” electricity because we don’t connect the two sides up with electrodes and wires. But what if you did? You’d have a triboelectric generator.

In this video, [Cayrex] demonstrates just how easy making a triboelectric generator can be. He takes pieces of aluminum tape, sticks them to paper, and covers them in either Kapton or what looks like normal polypropylene packing tape. And that’s it. You just have to push the two sheets together and apart, transferring a few electrons with each cycle, and you’ve got a tiny generator.

As [Cayrex] demonstrates, you can get spikes in the 4 V – 6 V range with two credit-card sized electrodes and fairly vigorous poking. But bear in mind that current is in the microamps. Given that, we were suprised to see that he was actually able to blink an LED, even if super faintly. We’re not sure if this is a testament to the generator or the incredible efficiency of the LED, but we’re nonetheless impressed.

Since around 2012, research into triboelectric nanogenerators has heated up, as our devices use less and less power and the structures to harvest these tiny amounts of power get more and more sophisticated. One of the coolest such electron harvesters is 3D printable, but in terms of simplicity, it’s absolutely hard to beat some pieces of metal and plastic tape shoved into your shoe.

Continue reading “Is That A Triboelectric Generator In Your Shoe?”

The Dyke Delta: A DIY Flying Wing Fits Four

The world of experimental self-built aircraft is full of oddities, but perhaps the most eye-catching of all is the JD-2 “Dyke Delta” designed and built by [John Dyke] in the 1960s. Built to copy some of the 1950’s era innovations in delta-style jet aircraft, the plane is essentially a flying wing that seats four.

And it’s not just all good looks: people who have flown them say they’re very gentle, they get exceptional gas mileage, and the light wing-loading means that they can land at a mellow 55 miles per hour (88 kph). And did we mention the wings fold up so you can store it in your garage?

Want to build your own? [John] still sells the plans. But don’t jump into this without testing the water first — the frame is entirely hand-welded and he estimates it takes between 4,000 and 5,000 hours to build. It’s a labor of love. Still, the design is time-tested, and over 50 of the planes have been built from the blueprints. Just be sure to adhere to the specs carefully!

It’s really fun to see how far people can push aerodynamics, and how innovative the experimental airplane scene really is. The JD-2 was (and probably still is!) certainly ahead of its time, and if we all end up in flying wings in the future, maybe this plane won’t look so oddball after all.

Continue reading “The Dyke Delta: A DIY Flying Wing Fits Four”

Gears Are Old And Busted, Capstans Are Cool

Zero backlash, high “gear” reduction, high torque transparency, silent operation, and low cost. What is this miracle speed reduction technology, you ask? Well, it’s shoelaces and a bunch of 3D printed plastic, at least in [Aaed Musa]’s latest installment in his series on developing his own robot dog.

OK, the shoelaces were only used in the first proof of concept. [Aaed] shortly upgrades to steel cable, and finds out that steel fatigues and snaps after a few hours. He settles on Dyneema DM-20, a flexible yet non-stretching synthetic rope.

Before it’s all over, he got a five-bar linkage plotting with a pencil on the table and a quadriped leg jumping up and down on the table — to failure. All in all, it points to a great future, and we can’t wait to see the dog-bot that’s going to come out of this.

There’s nothing secret about using capstan drives, but we often wonder why we don’t see cable-powered robotics used more in the hacker world. [Aaed] makes the case that it pairs better with 3D printing than gears, where the surface irregularities really bind. If you want to get a jumpstart, the test fixture that he’s using is available on GitHub.

Continue reading “Gears Are Old And Busted, Capstans Are Cool”

Aiken’s Secret Computing Machines

This neat video from the [Computer History Archives Project] documents the development of the Aiken Mark I through Mark IV computers. Partly shrouded in the secrecy of World War II and the Manhattan Project effort, the Mark I, “Harvard’s Robot Super Brain”, was built and donated by IBM, and marked their entry into what we would now call the computer industry.

Numerous computing luminaries used the Mark I, aside from its designer Howard Aiken. Grace Hopper, Richard Bloch, and even John von Neumann all used the machine. It was an electromechanical computer, using gears, punch tape, relays, and a five horsepower motor to keep it all running in sync. If you want to dig into how it actually worked, the deliciously named patent “Calculator” goes into some detail.

The video goes on to tell the story of Aiken’s various computers, the rift between Harvard and IBM, and the transition of computation from mechanical to electronic. If this is computer history that you don’t know, it’s well worth a watch. (And let us know if you also think that they’re using computer-generated speech to narrate it.)

If “modern” computer history is more your speed, check out this documentary about ENIAC.

Continue reading “Aiken’s Secret Computing Machines”

Sometimes It’s Not The Solution

Watching a video about a scratch-built ultra-precise switch for metrology last week reminded me that it’s not always the projects that are the most elegant solutions that I enjoy reading about the most. Sometimes I like reading about hackers’ projects more for the description of the problem they’re facing.

A good problem invites you to brainstorm along. In the case of [Marco Reps]’s switches, for instance, they need to be extraordinarily temperature stable, which means being made out of a single type of metal to avoid unintentional thermocouple joints. And ideally, they should be as cheap as possible. Once you see one good solution, you can’t help but think of others – just reading the comments on that article shows you how inspiring a good problem can be. I’m not worried about these issues in any of my work, but it would be cool to have to.

Similarly, this week, I really liked [Michael Prasthofer]’s deep dive into converting a normal camera into a spectrometer. His solutions were all very elegant, but what was most interesting were the various problems he faced along the way. Things that you just wouldn’t expect end up mattering, like diffraction gratings being differently sensitive across the spectrum when light comes in from different angles. You can learn a lot from other people’s problems.

So, hackers everywhere, please share your problems with us! You think that your application is “too niche” to be of general interest? Maybe it’s another example of a problem that’s unique enough to be interesting just on its own. Let’s see what your up against. A cool problem is at least as interesting as a clever solution.

Pixel Graphics From An HD44780, By Cutting Wires

[Felipe Tavares] wasn’t satisfied with the boring default fonts on an HD44780-based display. And while you can play some clever tricks with user-defined characters, if you want to treat the display as an array of pixels, you’ve got to get out your scalpel and cut up a data line.

The hack builds on work from [MisterHW] who documented the bits going from the common display driver to the display, and suggested that by cutting the data line and sending your own bits, you could send arbitrary graphics. The trick was to make sure that they’re in sync with the display, though, which means reading the frame sync line in user code.

This done, it looks like [Felipe] has it working! If you can read Rust for the ESP32, he has even provided us with a working demo of the code that makes it work.

We can’t help but wonder if it’s not possible to go even lower-level and omit the HD44780 entirely. Has anyone tried driving one of these little LCD displays directly from a microcontroller, essentially implementing the HD44780 yourself?

Any way you slice it, this is a cool hack, and it opens up the doors to DOOM, or as [MisterHW] suggests, Bad Apple on these little displays . If you do it, we want to see it.

If your needs aren’t so exotic, the classic HD44780 display is a piece of cake to get working, and an invaluable tool in anyone’s toolbox.