DOOM Comes To The NRF5340

If you’re looking for a reminder of how powerful the tiny microcontrollers that run our everyday gadgets have become, check out the work impressive work [Audun Wilhelmsen] has done to get DOOM running on the Nordic Semiconductor nRF5340. This is the sort of Bluetooth SoC you’d expect to find in a headset or wireless keyboard, and yet it’s packing a 128 MHz processor that can go head to head with the Intel 486 that the iconic first person shooter recommended you have in your old beige box PC.

That said, porting the open source shooter over to the nRF5340 wasn’t exactly easy. The challenge was getting the game, which recommended your PC have 8 MB back in 1993, to run on a microcontroller with a paltry 512 KB of memory. Luckily, a lot of the data the game loads into RAM is static. While that might have been necessary when the game was running from a pokey IDE hard drive, the nearly instantaneous access times of solid state storage and the nRF5340’s execute in place (XIP) capability meant [Audun] could move all of that over to an SPI-connected 8 MB flash chip with some tweaks to the code.

nRF53 Development board with I2S DAC

In general, [Audun] explains that many of the design decisions made for the original DOOM engine were made with the assumption that the limiting factor would be CPU power rather than RAM. So that lead to things often getting pre-calculated and stored in memory for instant access. But with the extra horsepower of the nRF5340, it was often helpful to flip this dynamic over and reverse the optimizations made by the original developers.

On the hardware side, things are relatively straightforward. The 4.3″ 800×480 LCD display is connected over SPI, and an I2S DAC handles the sound. Bluetooth would have been the logical choice for the controls, but to keep things simple, [Audun] ended up using a BBC micro:bit that could communicate with the nRF5340 via Nordic’s own proprietary protocol. Though he does note that Bluetooth mouse and keyboard support is something he’d like to implement eventually.

If some of the software tricks employed by this hack sounded familiar, it’s because a very similar technique was used to get DOOM running on an IKEA TRÅDFRI light bulb a week or so back. Unfortunately it must have ruffled some feathers, as it was pulled from the Internet in short order. It sounds like [Audun] got the OK from his bosses at Nordic Semiconductor to go public with this project, so hopefully this one will stick around for awhile.

Continue reading “DOOM Comes To The NRF5340”

Pi Pico-Powered ATX Motherboard

For a couple of years, embedded developer and Rust addict [Jonathan Pallant] aka [theJPster] has been working on a simple computer which he calls the Neotron. The idea is to make a computer that is not only easy to use but easy to understand as well. He describes it as a CP/M- or DOS-like operating system for small ARM microcontrollers. His most recent project is powered by a Raspberry Pi RP2040 Pico and built in the format of a microATX motherboard. This board packs a lot of features for a Pico-based design, including 12-bit color VGA and seven expansion slots. See his GitHub repository for a full list of specifications, and all the files needed to build your own — it is an Open Source project after all.

Besides the Neotron Pico itself, a couple of gems caught our eye in this well-documented project. [theJPster] was running out of I/O pins on the Pico, and didn’t have enough left over for all the peripherals’ chip selects. Check out how he uses an MCP23S17 SPI-bus I/O expander and a tri-state buffer to solve the problem.

On a more meta level, we are intrigued by his use of GitHub Actions. Per the standard concept of repositories, they shouldn’t contain the results of a build, be that an executable binary or Gerber files. Distribution of the build products is typically handled outside of GitHub, using something like GitHub’s Large File Storage service, or just ignoring convention altogether and putting them in the repo anyway. [theJPster] uses another method, employing GitHub Actions to generate the files needed for PCB fabrication, for example.

The Neotron Pico is the latest in a series of boards made to run Neotron OS. Previous boards include:

  • Neotron 9x — Microchip SAM9X
  • Neotron 1000 — STM32H7 + Lattice Semi iCE40 FPGA
  • Neotron 600 — Teensy 4.1
  • Neotron 340ST — ST 32F746G-DISCOVERY

Human Google: Ruth Freitag, Isaac Asimov, And Bibliographies

You don’t often turn on a light and think, “That power company is sure on the ball!” You generally only think of them when the lights go out without warning. I think the same is true of search. You don’t use Google or DuckDuckGo or any of the other search engines and think “Wow! How awesome it is to have this much information at your fingertips.” Well. Maybe a little, but it is hard to remember just how hard it was to get at information in the pre-search-engine age.

I were thinking about this the other day when I read that Ruth Freitag had died last year. Ruth had the unglamorous but very important title of reference librarian. But she wasn’t just an ordinary librarian. She worked for the Library of Congress and was famous in certain circles, counting among her admirers Isaac Asimov and Carl Sagan.

Ruth Freitag in 1985

You might wonder why a reference librarian would have fans. Turns out, high-powered librarians do more than just find books on the shelves for you. They produced bibliographies. If you wanted to know about, say, Halley’s comet today, you’d just do a Google search. Even if you wanted to find physical books, there are plenty of places to search: Google Books, online bookstores, and so on. But in the 1970s your options were much more limited.

Turns out, Ruth had an interest and expertise in astronomy, but she also had a keen knowledge of science and technology in general. By assembling comprehensive annotated bibliographies she could point people like Asimov and Sagan to the books they needed just like we would use Google, today.

Continue reading “Human Google: Ruth Freitag, Isaac Asimov, And Bibliographies”

Heatsink Makes VR Even Cooler

Our first thought was that having big fins coming out of your VR goggles might not look very cool. But then we realized if you are wearing VR goggles, that’s probably not your biggest concern. (Ba-doom, tss.) Seriously, though, high-intensity graphics can cause your phone or device to get pretty toasty up there pressed against your face, so [arfish] set out to make a heatsink.

The build isn’t very hard. Some 0.8 mm aluminum sheet is easy to shape and cut. Thermal pads from the PC world help with heat transfer.

Continue reading “Heatsink Makes VR Even Cooler”

Teardown: Franz Crystal Metronome

I wish I could tell you that there’s some complex decision tree at play when I select a piece of hardware to take apart for this series, but ultimately it boils down two just two factors: either the gadget was something I was personally interested in, or it was cheap. An ideal candidate would check both boxes, but that’s not always the case. This time around however, I can confidently say our subject doesn’t fall into either category.

Now don’t get me wrong, at first glance I found the Franz Crystal Metronome to be intriguing in its own way. With that vintage look, how could you not? But I’m about as far from a musician as one can get, so you’d hardly find a metronome on my wish list. As for the cost, a check on eBay seems to show there’s something of a following for these old school Franz models, with ones in good condition going for $50 to $80. Admittedly not breaking the bank, but still more than I’d like to pay for something that usually ends up as a pile of parts.

That being the case, why are you currently reading about it on Hackaday? Because it exploits something of a loophole in the selection process: it doesn’t work, and somebody gave it to me to try and figure out why. So without further ado let’s find out what literally makes a Franz Crystal Metronome tick, and see if we can’t get it doing so gain.

Continue reading “Teardown: Franz Crystal Metronome”

Steady Hand Brings GBA Cart Back From The Grave

The flash chips used in Game Boy Advance (GBA) cartridges were intended to be more reliable and less bulky than the battery-backed SRAM used to save player progress on earlier systems. But with some GBA titles now hitting their 20th anniversary, it’s not unheard of for older carts to have trouble loading saves or creating new ones. Perhaps that’s why the previous owner tried to reflow the flash chip on their copy of Golden Sun, but as [Taylor Burley] found after he opened up the case, they only ended up making the situation worse.

A previous repair attempt left the PCB badly damaged.

When presented with so many damaged traces on the PCB, the most reasonable course of action would have been to get a donor cartridge and swap the save chips. But a quick check on eBay shows that copies of Golden Sun don’t exactly come cheap. So [Taylor] decided to flex his soldering muscles and repair each trace with a carefully bent piece of 30 gauge wire. If you need your daily dose of Zen, just watch his methodical process in the video below.

While it certainly doesn’t detract from [Taylor]’s impressive soldering work, it should be said that the design of the cartridge PCB did help out a bit, as many of the damaged traces had nearby vias which gave him convenient spots to attach his new wires. It also appears the PCB was designed to accept flash chips of varying physical dimensions, which provided some extra breathing room for the repairs.

Seeing his handiwork, it probably won’t surprise you to find that this isn’t the first time [Taylor] has performed some life-saving microsurgery. Just last year he was able to repair the PCB of an XBox controller than had literally been snapped in half.

Continue reading “Steady Hand Brings GBA Cart Back From The Grave”

Good Enough For The Spruce Goose, Good Enough For Satellites

Wood products have a long history in aviation even though modern materials have eclipsed them in many areas. But lately we’ve noticed several plywood satellites, including this one the ESA plans to launch. The WISA Woodsat is a test of WISA plywood, a particular brand made in Finland to show how it can withstand the orbital environment.

Why not? Plywood is cheap and easy to form. You probably don’t want to make a pressure vessel with it, but most satellites don’t need that anyway.

Continue reading “Good Enough For The Spruce Goose, Good Enough For Satellites”