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
Logitech G PowerPlay charging station mouse pad
Logitech G PowerPlay 2 mouse pad review
Nvidia headquarters
Nvidia CEO sets sights on making 'several hundred billion' dollars worth of electronics in the USA over the next four years, increasing the chance of your next GPU being made in America
The Asus ROG Astral GeForce RTX 5090 Dhahab Edition, a gold-plated graphics card on a sand dune background
A Jensen Huang-signed version of this golden Asus RTX 5090 will be auctioned off to support relief efforts for the California wildfires
Corsair TC100 Relaxed gaming chair
Are you sitting down? My favourite budget gaming chair is the cheapest it’s ever been at only $170
An MSI Vanguard RTX 5080 launch edition next to a Dragon Lucky figurine
You can win an MSI RTX 5080 in Taiwan if you collect nine dragon figurines given away with *checks notes* MSI RTX 50-series GPUs
Screenshots from Half-Life 2 RTX, showing the various new effects delivered by full ray tracing and enhanced assets.
Microsoft announces DirectX Raytracing 1.2 claiming 'game changing' performance benefits but it looks like the important stuff is already in Nvidia's RTX GPUs, even the old ones
Latest in News
A shirtless man rides a big fish underwater
Ark devs distance themselves from AI-generated trailer: 'we did not know that they were doing it'
Team Fortress Spy being shocked
An FPS studio pulled its game from Steam after it got caught linking to malware disguised as a demo, but the dev insists it was actually the victim of a labyrinthine conspiracy
Neighbors Suburban Warfare screenshot a child aims a slingshot at a man from across a cul-de-sac.
A beta of backyard FPS Neighbors: Suburban Warfare is out now, and the balance discussion is hysterical: nerf trash can lids and children
Grand Theft Auto 6 trailer still - woman in the front seat of a car, looking out the back window while holding a wad of cash
The specter of a GTA 6 delay haunts the games industry: 'Some companies are going to tank' if they guess wrong, says analyst
Screenshot from Wreckfest 2
Wreckfest 2 has hit early access for your car-obliterating combat racing enjoyment
Alma, the handler from Monster Hunter Wilds, closes her eyes and looks a little disappointed.
Monster Hunter director joined an online hunt, carted first: 'I feel bad about that'