Speak friend and this RPi box will reveal its precious treasures

Durin's box, designed and built by John Pender on Hackaday, is a prime example of the supreme nostalgia a Raspberry Pi project can invoke. Built around a Pi Zero, it uses solenoids, capacitive switches, RGB LEDs, a microphone  and a voice recognition solution to remind us of the moonlit magic of Dwarves, and just how forgetful Wizards can be.

Designed and put together form scratch, the box was a gift for Pender's son. If you can't read Elvish, it says "Speak friend and enter." But there's a little more to opening it than just speaking the Elvish word for friend. Move over Frodo.

First you have to turn it on by touching the two points marked by stars, beneath which sit two capacitive switches. That sends power to the Raspberry Pi, which in turn lights up the inscription with RGB as if it's been touched by moonlight, and the microphone awaits the answer to the riddle.

On speaking the word "Mellon," the treasures within will reveal themselves. Well, you have to lift the box lid yourself, but the two solenoids on the lids underside retract to let you do so. They return to their original position pretty quickly, which means you'd have to wait a fair while for the thing to boot up again just to lock it if you don't put the lid back in time, but I like to imagine Dwarves tend to have similar issues with their doors, too.

The trick with getting it to recognise the password was to use PocketSphinx, a non-cloud based voice recognition tool which doesn't need pre-training. Seeing as it was a gift, I think the son might've suspected something if his father came up with a recording device like, "Hey son, can you just tell me the Elvish for friend again, please? Bit louder."

It doesn't look like you could fit a dragon's hoard under the lid, but perhaps something a little more... precious. Though, in the words of Thorin Oakenshield: "If more of us valued food and cheer and song above hoarded gold, it would be a merrier world." So maybe it could be a secret box of snacks?

Cut the cord...

(Image credit: Steelseries)

Best wireless gaming mouse: ideal cable-free rodents
Best wireless gaming keyboard: no wires, no worries
Best wireless gaming headset: top untethered audio

The danger, of course, would be forgetting the password and having your stack of Lembas bread go stale. Lets face it, even if you once knew every spell in all the tongues of Elves, Men, and Orcs, it could still happen.

If that occurs, the thing glitches out, or the battery dies, there is a failsafe for getting those solenoids moving. Simply jolting the capacitive switches with a little voltage will get them to shift.

Hats off to Pender for his supreme craftsmanship, and for making one of my childhood dreams a reality. Keep on hacking.

Katie Wickens
Hardware Writer

Screw sports, Katie would rather watch Intel, AMD and Nvidia go at it. Having been obsessed with computers and graphics for three long decades, she took Game Art and Design up to Masters level at uni, and has been rambling about games, tech and science—rather sarcastically—for four years since. She can be found admiring technological advancements, scrambling for scintillating Raspberry Pi projects, preaching cybersecurity awareness, sighing over semiconductors, and gawping at the latest GPU upgrades. Right now she's waiting patiently for her chance to upload her consciousness into the cloud.

Read more
A close up image of the Drop + The Lord of the Rings Gondor CSTM80 gaming keyboard
Forget Gondor, Drop's latest LOTR-themed keyboard has my approval because it's got a tiny little sword on the Enter key
An image of a prototype of the Ink Console e-ink handheld reader/console device
Remember those 'choose your own adventure' fantasy books? Well, now they're coming back in this delightfully chonky e-ink console
DirkMcGirk's mechanical cheeseboard on a platter of fruits and crackers
I've never wanted a keyboard with cheese keycaps and a little mouse on it until I saw this one
Various creations in Minecraft, including computers and calculators.
This Minecraft creation blots out the sun for the villagers below, they surely praise it as God, but we know it really to be a functioning 32-bit computer with 2 kB of RAM
Razer's Minecraft themed peripherals, including keyboard and mouse.
It only took Razer some 15 years to finally do the right thing and make a gloriously ugly Minecraft creeper keyboard
The Monsgeek Bun Wonderland gaming keyboard on show at CES 2025.
This keyboard combines two of my favorite things: mechanical switches and bread
Latest in Hardware
The snazzy red and black HyperX Cloud Alpha wireless headphones float in a teal void. The microphone is attached to the headset.
The best wireless gaming headset is now even better in the Amazon Big Spring Sale, boasting a more than $50 discount
A chip being held up in an Intel fab
Intel is reportedly 'working to finalize commitments from Nvidia' as a foundry partner, suggesting gaming potential for the 18A node
Amazon box
Don't panic! The 'Do Not Send Voice Recordings' option Amazon just removed was only used by 0.03% of customers and they can still have it
Digital generated image of people surrounded by interactive transparent and glowing panels with data. Visualising smart technology, blockchain and artificial intelligence
Now I shall demand the cookies! Proposed new browsing agreement turns the tables and lets users dictate terms to websites
Intel CEO, Pat Gelsinger, with a 18A SRAM test wafer
Former Intel CEO, Pat Gelsinger becomes executive chairman of a 'Technology Platform Connecting the Faith Ecosystem' to work on Christian AI using DeepSeek
Nvidia App
Hmmm, upgrades: Nvidia App gets an optional AI assistant and custom DLSS resolution scaling
Latest in News
Assassin's Creed Shadows promo image
Ubisoft scores a legendary ratio against Elon Musk on his own platform—which hopefully marks a final end to all the Assassin's Creed Shadows' culture war nonsense
Tzarina Katarin Bokha, the Ice Queen of Kislev
Total War: Warhammer 3 rolls out a cool Kislev overhaul, changes befitting Tzeench’s magic, new projectile units and creakier skeletal horses
An image of a golden first place award from Geoguessr
'We're actually getting GeoGuessr on Steam before GTA 6': the Google Street View puzzler arrives on Valve's platform this April
Napster client circa 1999
Former music-pirating platform Napster to be reborn rather ironically as a metaverse for musicians to connect with their fans after $207 million deal
The snazzy red and black HyperX Cloud Alpha wireless headphones float in a teal void. The microphone is attached to the headset.
The best wireless gaming headset is now even better in the Amazon Big Spring Sale, boasting a more than $50 discount
A chip being held up in an Intel fab
Intel is reportedly 'working to finalize commitments from Nvidia' as a foundry partner, suggesting gaming potential for the 18A node