Lattes

Latte recipes, espresso drinks and coffee how-to

In this article
  1. Background: How Doom Became the “Can It Run Doom?” Challenge
  2. How It Works: The Technical Side of Porting Doom
  3. Why Doom Specifically? The Appeal of the Challenge
  4. Common Problems and How They’re Solved
  5. How to Choose a Device for Your Own Port
  6. Safety and Practical Considerations
  7. Alternatives to Doom: Other Games for Odd Hardware
  8. Frequently Asked Questions

Why Doom Runs on Refrigerators and Other Odd Hardware

· 7 min read · Latte Recipes

Doom runs on refrigerators, espresso machines, and other unlikely hardware because its 1993 engine was designed to be extremely lightweight and portable, and the community has made porting it to almost anything a challenge and a hobby. The original game requires only a 386 CPU, 4 MB of RAM, and a VGA graphics card, and its source code was released in 1997 under a license that allows free redistribution and modification. This combination of low system requirements and open source code means that any device with a processor—even a smart fridge or a digital espresso machine—can potentially run the game if someone is willing to write the necessary code to adapt it.

Background: How Doom Became the “Can It Run Doom?” Challenge

Doom was released in 1993 by id Software, and it revolutionized first-person shooters with its fast-paced gameplay and 3D graphics. Unlike many games of its time, Doom was not built on a proprietary engine that required expensive hardware; instead, John Carmack and the team wrote the engine in C and designed it to run on modest PCs. When the source code was released in 1997 (and later under the GPL in 1999), it opened the door for programmers to port the game to other platforms. The first ports were to Unix-like systems, but soon enthusiasts began porting it to calculators, cameras, and even a lawnmower. The challenge gained mainstream attention around 2013 when a developer got Doom running on a printer, and since then it has become a rite of passage for hardware hackers.

How It Works: The Technical Side of Porting Doom

Porting Doom to a new device involves several steps, each requiring a different level of technical skill:

  • Compile the source code: The Doom source code (in C) must be compiled for the target device’s processor and operating system. This often requires a cross-compiler and a development environment.
  • Handle input: The device needs some way to accept player commands—buttons, touchscreens, or even a keyboard. The port must map these to Doom’s movement and action keys.
  • Render graphics: Doom uses a software renderer that draws the 3D world pixel by pixel. The port must adapt this renderer to the device’s display, whether it’s an LCD, OLED, or even a small monochrome screen.
  • Manage memory: Doom uses about 4 MB of RAM, but many embedded devices have less. Ports often need to optimize memory usage or reduce the game’s resolution.
  • Provide storage: The game data (WAD files) must be stored somewhere—on a microSD card, internal flash, or even in the device’s firmware.

For a refrigerator, the “brain” is often a low-power ARM processor running a custom operating system. A developer might write a minimal Doom port that runs directly on the hardware, bypassing the fridge’s normal interface. For an espresso machine, the challenge is similar: the machine’s controller may have enough processing power to run Doom, but the lack of a screen or buttons requires creative solutions, like using the machine’s LED display and a modified control panel.

Why Doom Specifically? The Appeal of the Challenge

Doom is not the only game that could be ported, but it has several advantages that make it the go-to choice:

  • Open source: The source code is freely available, so no legal issues.
  • Low requirements: It runs on very basic hardware, unlike modern games that need GPUs and gigabytes of RAM.
  • Cultural icon: Doom is instantly recognizable, so running it on a toaster is a fun conversation starter.
  • Simple architecture: The engine is relatively simple compared to modern engines, making it easier to port.
  • Community support: There are many resources and forums dedicated to Doom ports, so developers can share tips and code.

In contrast, a game like Quake (1996) is also open source and popular for ports, but it requires more processing power and a 3D accelerator, which limits the devices it can run on. Doom’s software renderer is more flexible.

Common Problems and How They’re Solved

Porting Doom to a fridge or espresso machine is rarely smooth. Common issues include:

  • Lack of a display: Many appliances have tiny or monochrome screens. Solution: use the screen at a very low resolution (e.g., 160x120) and render Doom in grayscale or with a limited color palette.
  • Input limitations: A fridge might have only a few buttons (like temperature controls). Solution: map those buttons to movement and firing, and use a combination of presses for other actions.
  • Insufficient RAM: Some devices have less than 1 MB of RAM. Solution: reduce the game’s memory footprint by lowering the resolution, removing sound, or cutting some game data.
  • No operating system: Embedded devices often run bare-metal code. Solution: write a minimal bootloader and run Doom directly on the hardware.

A notable example: a developer got Doom running on a Canon printer by using the printer’s LCD screen and buttons, and by storing the game data on a memory card. The frame rate was low, but it worked.

How to Choose a Device for Your Own Port

If you’re inspired to try porting Doom yourself, consider these criteria:

  • Processor: Look for a device with at least a 32-bit ARM or x86 processor. Some 8-bit microcontrollers are too weak.
  • RAM: Aim for at least 2 MB, though 4 MB is ideal. Some ports have been squeezed into 1 MB.
  • Display: A graphical screen is helpful, but even a character LCD can work if you render Doom in ASCII art (a known trick).
  • Input: Any buttons or touch sensors can be used, but the more the better.
  • Storage: You need a way to store the game data—SD card, USB, or internal flash.

The easiest devices to start with are old smartphones, Raspberry Pi, or even a graphing calculator (like the TI-84 Plus, which has a well-known Doom port). These have established communities and documentation.

Safety and Practical Considerations

Modifying a refrigerator or espresso machine to run Doom can void warranties and create safety hazards. If you attempt such a project, keep these points in mind:

  • Electrical safety: Never open a device that is plugged in. Disconnect power and discharge capacitors before working on the hardware.
  • Food safety: If you install Doom on a refrigerator, ensure that the modification does not interfere with temperature control or food storage. A fridge that crashes could spoil food.
  • Fire risk: Adding custom software to an appliance could cause it to malfunction and overheat. Monitor the device during testing.
  • Warranty: Modifying hardware typically voids the manufacturer’s warranty.

For espresso machines, the heating element and high-pressure boiler are especially dangerous—do not attempt to modify the machine while it is connected to water or power.

Alternatives to Doom: Other Games for Odd Hardware

Doom isn’t the only game that can be ported. If you want a challenge, consider these alternatives:

  • Snake: The classic phone game is extremely simple and runs on almost anything with a screen.
  • Pong: The 1972 arcade game is a common first project for embedded systems.
  • 2048: The sliding tile puzzle has been ported to many devices, including calculators.
  • Minecraft (classic): A very old version of Minecraft (0.0.23a) has been ported to some devices, but it requires more resources than Doom.

However, Doom remains the most popular because of its cultural status and the “wow factor” of seeing a violent shooter on a kitchen appliance.

Frequently Asked Questions

Can any refrigerator run Doom?

No. Most refrigerators have very basic microcontrollers that lack the processing power and memory to run Doom. Only smart refrigerators with a full operating system (like Android or Linux) and a decent CPU can potentially run it, and even then, a port must be written for the specific hardware.

Does running Doom on an espresso machine affect its primary function?

Yes, if you modify the machine’s software, it could interfere with the brewing process. Most espresso machines are not designed to run custom code, so any modification risks breaking the machine. In practice, these projects are usually done on a separate controller that is not connected to the brewing mechanism, or on a machine that is no longer used for making coffee.

Is it legal to port Doom to a device?

Yes, because the Doom source code is released under the GNU General Public License (GPL), which allows you to modify and redistribute it, as long as you also release your modifications under the same license. However, the game data (the WAD files) is copyrighted, so you must own a copy of Doom to use it legally.

How long does it take to port Doom to a new device?

It depends on the device. For a well-documented platform like a Raspberry Pi, a port might take a few hours. For a completely undocumented appliance, it could take weeks or months, depending on the developer’s skill and the complexity of the hardware.

Why do people do this?

It’s a technical challenge that showcases programming skill and creativity. It’s also a form of humor and internet culture—seeing Doom run on a fridge is funny and surprising. For many, it’s a way to learn about embedded systems and low-level programming.