Tetris On An Oscilloscope, The Software Way

When we talk about video games on an oscilloscope, you’d be pardoned for assuming the project involved an analog CRT scope in X-Y mode, with vector graphics for something like Asteroids or BattleZone. Alas, this oscilloscope Tetris (Russian language, English translation) isn’t that at all — but that doesn’t make it any less cool.

If you’re interested in recreating [iliasam]’s build, it’ll probably help to be a retro-oscilloscope collector. The target instrument here is a Tektronix TDS5400, a scope from that awkward time when everything was going digital, but CRTs were still cheaper and better than LCDs. It’s based on a Motorola 68EC040 processor, sports a boatload of discrete ICs on its main PCB, and runs VxWorks for its OS. Tek also provided a 3.5″ floppy drive on this model, to save traces and the like, as well as a debug port, which required [iliasam] to build a custom UART adapter.

All these tools ended up being the keys to the kingdom, but getting the scope to run arbitrary code was still a long and arduous process, with a lot of trial and error. It’s a good story, but the gist is that after dumping the firmware onto the floppy and disassembling it in Ghidra, [iliasam] was able to identify the functions used to draw graphics primitives on the CRT, as well as the functions to read inputs from the control panel. The result is the simple version of Tetris seen in the video below. If you’ve got a similar oscilloscope, the code is up on GitHub.

Care for a more hardware-based game-o-scope? How about a nice game of Pong? Or perhaps a polar breakout-style game is what you’re looking for. Continue reading Tetris On An Oscilloscope, The Software Way”

Hackaday Prize 2023: Hydrocleaner Nips Pollution In The Bud

It’s unfortunate, but a lot of trash ends up in our rivers and, eventually, our oceans. Cleaning efforts can be costly and require a lot of human power. One of the ways to keep trash out from reaching the ocean is to attack it at the river level. That’s the idea behind [Xieshi Zhang]’s Hydrocleaner, a semi-autonomous river cleaning robot.

One current method for removing trash is by remote-controlled boats with nets attached. These typically travel in one direction, sort of sweeping left and right and probably missing trash in the process.

Hydrocleaner is capable of turning back and forth, ensuring a much more complete clean-up. The camera spots trash, and the twin-pontoon design allows it to flow easily between them and into the net behind. Currently, the brain behind this boat is a Jetson Nano, although this is a work in progress. The eventual idea is that the boat would navigate itself using GNSS guidance and would navigate toward the trash.

Of course, you could always fight trash with trash.

ISS Mimic Brings Space Station Down To Earth

Built at a cost of more than $150 billion over the last twenty-five years, the International Space Station is arguably one of humanity’s greatest engineering triumphs. Unfortunately, unlike Earthly construction feats such as the Hoover Dam, Burj Khalifa, or the Millau Viaduct, you can’t visit it in person to really appreciate its scale and complexity. Well, not unless you’ve got the $50 million or so to spare to buy a seat on a Dragon capsule.

Which is why the team behind the ISS Mimic project are trying to make the ISS a bit more relatable. The open source project consists of a 3D printable 1:100 model of the Station, which is linked to the telemetry coming down from the real thing. A dozen motors in the model rotate the solar arrays and radiators to match the positions of their full-scale counterparts, while LEDs light up to indicate the status of various onboard systems.

To learn more about the ISS Mimic, team members Bryan Murphy, Sam Treadgold, and Tristan Moody stopped by this week’s Hack Chat to bring us up to speed on the past, present, and future of this fascinating project.

Continue reading “ISS Mimic Brings Space Station Down To Earth”

Hackaday Podcast 239: Overclocking, Oscilloscopes, And Oh No! SMD Out Of Stock!

Elliot Williams and Al Williams got together again to discuss the best of Hackaday for a week, and you’re invited. This week, the guys were into the Raspberry Pi 5, CNC soldering, signal processing, and plasma cutting. There are dangerous power supplies and a custom 11-bit CPU.

Of course, there are a few Halloween projects that would fit in perfectly with the upcoming Halloween contest (the deadline is the end of this month; you still have time). OpenSCAD is about to get a lot faster, and a $20 oscilloscope might not be a toy after all. They wrap up by talking about Tom Nardi’s latest hardware conversion of DIP parts to SMD and how TVs were made behind the Iron Curtain.

Did you miss a story? Check out the links below. As always, tell us what you think about this episode in the comments!

Go ahead and download it!

Continue reading “Hackaday Podcast 239: Overclocking, Oscilloscopes, And Oh No! SMD Out Of Stock!”

Just When You Think Everything In Robotic Combat Has Been Tried Before…

Since the first combat robots emerged around three decades ago, it seems as though every conceivable configuration has been tried at some point or other. Whether it’s a two-wheeled wedgebot, a walker, a four-wheeled flip-bot, or whatever, someone’s already been there. But how about a self-righting taco with a novel two-wheel drive system? It’s called Taco Tuesday, its team lead [Carter Hurd] has sent us the video below the break, and it’s worth a second look because the technique might find a place outside the arena.

The robot with [Carter] sitting behind it

So what exactly is novel about this bot? It has a single big fat wheel near the front in a longitudinal direction, and a larger slimmer one at the back in a transverse direction. The former wheel propels it around the arena while the latter wheel acts as a rear-wheel steering system, allowing it to pivot round and face an attacker very quickly indeed.

It’s this maneuverability which we think could find an application in other machines, though the same problem they have of sideways friction on that rear wheel would need to be overcome.

The video follows the bot through a BattleBots competition in Las Vegas, and shows us some of the damage they receive in combat. The drive system needs a bit more refinement, but this outing certainly proves it has plenty of potential.

Some of us here at Hackaday have a bit of a soft spot for fighting robots.

Continue reading “Just When You Think Everything In Robotic Combat Has Been Tried Before…”

This Week In Security: Looney Tunables, Not A 0-day*, And Curl Warning

This week starts out with a nifty vulnerability in the glibc dynamic loader. This is an important step in running a binary executable on Linux, as it pulls the list of required shared libraries, and loads those libraries into memory. Glibc also includes a feature to adjust some runtime settings, via the GLIBC_TUNABLES environment variable. That’s where the vulnerability resides, and researchers from Qualsys obviously had a bit of fun in taking inspiration to pick the vulnerability name, “Looney Tunables”.

The problem is memory handling in the sanitizing parser. This function iterates through the environment variable, looking for strings of tunable1=aa, separated by colons. These strings get copied to the sanitized buffer, but the parsing logic goes awry when handling the malformed tunable1=tunable2=AAA. The first equals sign is taken at face value, copying the rest of the string into the buffer. But then the second equals sign is also processed as another key=value pair, leading to a buffer overflow.

The reason this particular overflow is interesting is that if the binary to be run is a Set-User-ID (SUID) root application, the dynamic loader runs as root, too. If the overflow can achieve code execution, then it’s a straightforward privilege escalation. And since we’re talking about it, you know there’s a way to execute code. It turns out, it’s possible to overwrite the pointer to the library search path, which determines where the dynamic loader will look for libraries. Tell it to look first in an attacker-controlled location, and you can easily load a malicious libc.so for instant code execution.

This vulnerability affects many Linux distros, and there’s already a Proof of Concept (PoC) published. So, it’s time to go check for updates for cve-2023-4911. Continue reading “This Week In Security: Looney Tunables, Not A 0-day*, And Curl Warning”

Wok Your Way To The Center Of The Galaxy

The round bottom of a proper wok is the key to a decent stir fry, but it also makes it hard to use on traditional Western stoves. That’s why many woks end up in a dark kitchen cabinet, unused and unloved. But wait; it turns out that the round bottom of a wok is the perfect shape for gathering something else — radio waves, specifically the 21-cm neutral hydrogen emissions coming from the heart of our galaxy.

Turning a wok into an entry-level radio telescope doesn’t appear to be all that hard, at least judging by what [Leo W.H. Fung] et al detail in their paper (PDF) on “WTH” or “Wok the Hydrogen.” Aside from the wok, which serves as the main reflector, you’ll need a bit of coaxial cable and some stiff copper wire to fashion a small dipole antenna and balun, plus some plastic tubing to support it at the focal point of the reflector. Measuring the wok’s shape and size, which in turn determines its focal point, is probably the hardest part of the build; luckily, the paper includes tips on doing just that. The authors address the controversy of parabolic versus spherical reflectors and arrive at the conclusion that for a radio telescope fashioned from a wok, it just doesn’t matter.

As for the signal processing chain, WTH holds few surprises. A Nooelec Sawbird+ H1 acts as preamp and filter for the 1420-MHz hydrogen line signal, which feeds into an RTL-SDR dongle. Careful attention is paid to proper grounding and shielding to keep the noise floor as low as possible. Mounting the antenna is a decidedly ad hoc affair, and aiming is as simple as eyeballing various stars near the center of the galactic plane — no need to complicate things.

Performance is pretty good: WTH measured the recession velocity of neutral hydrogen to within 20 km/s, which isn’t bad for something cobbled together from scrap. We’ve seen plenty of DIY hydrogen line observatories before, but WTH probably wins the “get on the air tonight” award.

Thanks to [Heinz-Bernd Eggenstein] for the tip.