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”

Review: Inkplate 6PLUS

While the price of electronic paper has dropped considerably over the last few years, it’s still relatively expensive when compared to more traditional display technology. Accordingly, we’ve seen a lot of interest in recovering the e-paper displays used in electronic shelf labels and consumer e-readers from the likes of Amazon, Barnes & Noble, and Kobo. Unfortunately, while these devices can usually be purchased cheaply on the second hand market, liberating their displays is often too complex a task for the average tinkerer.

Enter the Inkplate. With their open hardware ESP32 development board that plugs into the e-paper displays salvaged from old e-readers, the team at e-radionica is able to turn what was essentially electronic waste into a WiFi-enabled multipurpose display that can be easily programmed using either the Arduino IDE or MicroPython. The $99 Inkplate 6 clearly struck a chord with the maker community, rocketing to 926% of its funding goal on Crowd Supply back in 2020. A year later e-radionica released the larger and more refined Inkplate 10, which managed to break 1,000% of its goal.

For 2021, the team is back with the Inkplate 6PLUS. This updated version of the original Inkplate incorporates the design additions from the Inkplate 10, such as the Real-Time-Clock, expanded GPIO, and USB-C port, and uses a display recycled from newer readers such as the Kindle Paperwhite. These e-paper panels are not only sharper and faster than their predecessors, but also feature touch support and LED front lighting; capabilities which e-radionica has taken full advantage of in the latest version of their software library.

With its Crowd Supply campaign recently crossing over the 100% mark, we got a chance to go hands-on with a prototype of the Inkplate 6PLUS to see how e-radionica’s latest hacker friendly e-paper development platform holds up.

Continue reading “Review: Inkplate 6PLUS”

A Mini USB Display For Your PC Desktop

By now it’s likely that most Hackaday readers will be used to USB display adapters, in their most common form channeling DisplayPort over the ubiquitous serial interface. Connecting to projectors and other screens with a laptop becomes a breeze, and gone are the days of “Will my laptop work in the venue” stress for people delivering presentations. [Avra Mitra]’s STM32 tiny monitor may not ascend to these giddy heights, but it does at least live up to the promise of reproducing a desktop onto a small colour LCD hooked up through a USB port.

Not through any DisplayPort wizardry though, instead it relies on a Python script that takes successive screen grabs and streams them through USB to the microcontroller, which in tun puts them on the display. It’s claimed to achieve 6 to 7 frames per second as you can see in the video below, with an admission that there remains a huge scope for improvement.

Notwithstanding its limited utility at the moment, we can see that maybe this idea could have its uses in a very basic display after a few improvements. Meanwhile, more conventional monitors take the established route of pairing a dedicated controller board with an LCD panel.

Continue reading “A Mini USB Display For Your PC Desktop”

Developing A Power Over Ethernet Stack Light

A common sight on factory floors, stack lights are used to indicate the status of machinery to anyone within visual range. But hackers have found out you can pick them up fairly cheap online, so we’ve started to see them used as indicators in slightly more mundane situations than they were originally intended for. [Tyler Ward] recently decided he wanted his build own network controlled stack light, and thought it would double as a great opportunity to dive into the world of Power Over Ethernet (PoE).

Now the easy way to do this would be to take the Raspberry Pi, attach the official PoE Hat to it, and toss it into a nice enclosure. Write some code that toggles the GPIO pins attached to the LEDs in the stack light, and call it a day. Would be done in an afternoon and you could be showing it off on Reddit by dinner time. But that’s not exactly what [Tyler] had in mind.

An early Arduino-based prototype.

He decided to take the scenic route and designed his own custom PCB that combines an Ethernet interface, PoE hardware, and the ESP32 into one compact unit. It’s no great secret that it only takes a few extra components to plug the ESP32 into the network rather than relying on WiFi, but it’s still not something we see done very often by hobbyists. Rarer still is seeing somebody roll their own PoE solution, but thanks to the in-depth documentation [Tyler] has provided for his circuit, that may change in the future.

On the software side [Tyler] has developed a firmware for the ESP32 that supports both Art-Net and RDM protocols, which are subsets of the larger DMX protocol. That means the controller should be compatible with existing software designed for controlling theatrical lighting systems. If you’d rather take a more direct approach, the firmware also sports a web interface and simple HTTP API to provide some additional flexibility.

While it’s exceptionally impressive, not everyone will need such a robust solution. If you just want a quick and easy way to fire up your stack light, a USB controlled relay and some Python can get you where you need to go.

Z80 Family Reunion Discovered In Old PoS Card Swiper

[Ben Heck] found an old card-swipe point-of-sale box at the Goodwill store, took it home, and tore it down to see what was inside. He found a completely serviceable single board computer based on the Z80. In fact, there’s a whole family of four Z80 chips: the CPU itself, the DART chip (dual UART), the PIO chip (parallel input/output interface), and the CTC chip (counter/timer circuit). That’s not all — there’s a landline telephone modem, a real time clock, 32K of RAM and UV-EPROM. The second PCB of this assembly holds a hefty sixteen-key keypad and a sixteen-character vacuum fluorescent alphanumeric display. All this for the bargain price of $2.99.

Surely [Ben] will dig into the Z80 system in the future, but in this video he tries to make the display work. An OKI Semiconductor controller drives the VFD. After tracking down the data sheet, [Ben] wires it up to an Arduino and writes a quick program. Only a few YouTube minutes later, he conquers the display, drawing sample text anywhere he wants on the screen with any brightness he desires.

You never know what you may find lurking inside old equipment like this. You might find a proprietary ASIC with no documentation, or like [Ben] did here, you could find a fully functioning embedded computer. If [Ben] can whip up a RAM-based emulator to replace the 32K UV-EPROM, he’ll have a perfect evaluation board for Z80 projects.

Let us know in the comments if you have found any treasures like this. Also, how would you use this board if you had found it? Thanks to reader [Nikša Barlović] for sending in the tip.

Continue reading “Z80 Family Reunion Discovered In Old PoS Card Swiper”

Mickey’s Big Timer Makes Glider Competitions Better

There’s plenty of obscure sports in the world. Many of them could benefit from bespoke equipment like scoring displays, but are too obscure to support commercial efforts in this regard. Radio controlled glider competitions fit into just this category. This led a man named [Mickey] to develop what he calls Mickey’s Big Timer, to aid in the running of such events.

Glider events run outdoors in full sunlight, so the system uses big bright LED matrix displays to show its timing information. The system, built around the STM32 Discovery platform, uses several of the microcontroller boards to drive several displays as well as the main controller which handles timing. It also packs in an audio system for issuing instructions to competitors. It can also display pilot names as well as instructions such as when competitors should land at the end of a heat.

Some code is available on Github for those interested in how it all works. Word around the RC forums has it that [Mickey] built several systems, some of which ended up as far afield as New Zealand where they helped run many successful glider contests over the years.

We’ve seen plenty of scoreboard projects over the years; a little portable one could be useful for adding some spice to your pickup neighbourhood games. Video after the break.

Continue reading “Mickey’s Big Timer Makes Glider Competitions Better”

Hacking The Lidl Home Gateway

For years, Europeans have been browsing the central aisles of the German Aldi and Lidl supermarket chains, attracted by the surprising variety of transitory non-grocery bargains to be found there. There are plenty of temptations for hackers, and alongside the barbecues and Parkside tools at Lidl last year was a range of Zigbee home automation products. Every ZigBee network requires some form of hub, and for Lidl this comes in the form of a £20 (about $28) Silvercrest Home Gateway appliance. It’s a small embedded Linux computer at heart, and [Paul Banks] has published details of how it can be hacked and bent to the user’s will.

Under the hood is a Realtek RTL8196E MIPS SoC with 16Mb of Flash and 32 Mb of memory. Gaining control of it follows the well trodden path of finding the bootloader, dumping the firmware, and re-uploading it with a known password file. If you’ve done much hacking of routers and the like you’ll recognise that this quantity of memory and Flash isn’t the most powerful combination so perhaps you won’t be turning it into a supercomputer, but it’s still capable enough to be integrated with Home Assistant rather than the cloud-based services with which it shipped.

There was a time when repurposing routers as embedded Linux machines was extremely popular, but it’s something that has fallen from favour as boards such as the Raspberry Pi have provided an easier path. So it’s good to see a bit of old-fashioned fun can still be had with an inexpensive device.

If you fancy a bit more German budget supermarket goodness, feast your eyes on an Aldi stick welder!