{"id":51315,"date":"2022-08-20T19:55:17","date_gmt":"2022-08-20T19:55:17","guid":{"rendered":"https:\/\/harchi90.com\/please-lego-let-this-engineer-bring-your-computer-brick-to-life\/"},"modified":"2022-08-20T19:55:17","modified_gmt":"2022-08-20T19:55:17","slug":"please-lego-let-this-engineer-bring-your-computer-brick-to-life","status":"publish","type":"post","link":"https:\/\/harchi90.com\/please-lego-let-this-engineer-bring-your-computer-brick-to-life\/","title":{"rendered":"Please, Lego, let this engineer bring your computer brick to life"},"content":{"rendered":"
\n

James Brown loves building weird displays. Like animatronic skulls, or mechanical bit-flipping cellular automatons. Or, in this case, an entire computer inside a mock Lego brick. <\/p>\n

Not just any brick, either. I’m talking about the classic sloped Lego computers from our childhood spaceships, now brilliantly brought to life. They display fake radar scans, scrolling text, even an interactive homage to the Death Star trench run targeting computer that moves when you touch the exposed Lego studs. <\/p>\n

\n
\n
@verge <\/p>\n

James Brown bought the tiniest, cheapest OLED screens he could find. He wanted to build a keyboard, but his mind’s eye soon saw an even more perfect combination. He tells The Verge he probably won’t sell them \u2014 at least not without legal consultation and a small enough battery! #LEGO<\/p>\n

\u266c original sound – The Verge <\/section>\n<\/blockquote>\n<\/div>\n

Incredibly, the whole thing is powered by actual Lego bricks, too \u2014 the vintage 9V battery box and bricks with electrical contacts that Lego discontinued back in the ’90s. It’s enough to power a 72 x 40-pixel OLED screen and an STM32 microcontroller with a 48MHz Arm Cortex-M0 processor and 16K of flash. And those graphics you see? Apart from doom<\/em>which was a live video stream to the brick, they’re all procedurally generated. <\/em>He wrote the programs for this tiny computer himself. <\/p>\n

None of this was Brown’s original plan, but in an interview with The Verge<\/em>, he makes it sound like it came together so well that it’s almost begging to be manufactured. Yes, I’m telling you there’s a chance you might actually touch one of these someday.<\/p>\n

\n
\n <\/p>\n

<\/p>\n<\/p>\n

<\/source><\/picture>\n

<\/span><\/p>\n

<\/span><\/p>\n

James Brown, in his office, with his tiny computers.<\/em><\/figcaption>Screenshot by Sean Hollister \/ The Verge<\/cite><\/p>\n

<\/span><\/p>\n<\/figure>\n<\/div>\n

Last year, the Weta Workshop graphics engineer (yes, that<\/em> Weta Workshop) was just browsing AliExpress when he spotted some incredibly small and cheap 0.42-inch OLED screens. \u201cThat’s about the size of a keycap,\u201d he thought. He’d build a mechanical keyboard with a screen under each key, he told himself, but the project was going slow. \u201cI sort of ordered a batch of screens just to have them sitting there making me feel guilty,\u201d he says.<\/p>\n

But when a Game Boy for ants<\/a> arrived on his doorstep this May, he began to ponder: what if each key had a processor inside, too? Later that same day, he suddenly realized he’d already<\/em> seen a computer that size. Not a working one \u2014 a piece of Lego. <\/p>\n

So he sketched it out, and was surprised to see his idea might actually work. \u201cI spent a little bit of time in Fusion, just kind of looking at where things would fit inside a brick, just making sure it was actually feasible and it only just… <\/em>you know that screen is really crammed in there, right?\u201d There’s only 0.1mm between the screen and the front surface of the brick. <\/p>\n

He drafted up a circuit board of the maximum size that would fit and, in a single day, placed all the basic components and sent his design to a board manufacturer on a whim. He paid just $40, including shipping, for five tiny boards.<\/p>\n

\u201cIt was meant to be kind of a throwaway gag; I wasn’t expecting to have to make it particularly manufacturable,\u201d he says. <\/p>\n

But when the boards arrived, he couldn’t believe how well they came out. \u201cIt’s absolutely insane how cheap and easy this stuff is, you know, to custom-design a new computer,\u201d he says. The hardest part was simply soldering on a pair of battery contacts<\/a> to the bottom.<\/p>\n

Stick it inside a translucent Lego brick and you’re done, right? No \u2014 Brown decided to cast his own bricks out of translucent resin, too. <\/p>\n

Originally, they were pretty crude: \u201cIt was literally a Lego brick in a Lego pot that I poured silicone on to make the mold and then I just kind of shoved it in there, poured the resin in, put something on top to hold it down, and hoped for the best.\u201d He also had to fill the brick’s cavity with soft silicone, so resin wouldn’t fill the spot where the electronics needed to go. <\/p>\n

After his first video went viral, though, he didn’t leave it at that. Her ran a pair of wires up to the insides of each stud as a crude touch sensor \u2014 \u201cthe processor counts how long it takes to pull high via a resistor,\u201d he says \u2014 and coded the X-Wing targeting computer and an elite<\/em> ship renderer in C to display their array of mesmerizing low-poly wireframes with a press.<\/p>\n

He painted on a black lacquer to get rid of some of the glow, too, though he’s actually quite happy with Lego’s stippled finish. \u201cThe texturing on the Lego brick does a really good job of antialiasing.\u201d<\/p>\n

And then, he got serious. <\/p>\n

\n <\/p>\n

<\/p>\n\"\"<\/p>\n

<\/source><\/picture>\n

<\/span><\/p>\n

<\/span><\/p>\n

Brown shows off the new 3D board with USB port and battery contacts.<\/em><\/figcaption>Screenshot by Sean Hollister \/ The Verge<\/cite><\/p>\n

<\/span><\/p>\n<\/figure>\n

On Zoom, Brown shows me the second generation \u2014 a new three-dimensional circuit board assembly designed to use all <\/em>the space inside the brick. It’s got built-in battery contacts, a USB port for programming instead of the old serial debugging pins, and capacitive touch hardware baked into the board itself. He says it can reliably detect a finger moving around an entire region above the brick. <\/p>\n

And because he’s not satisfied with merely streaming<\/em> doom<\/em> to the STM32 processor as a video over those debugging wires, he just recently redesigned the entire board to fit a Raspberry Pi RP2040 microcontroller, which could actually play<\/em> doom <\/em>too And he says there may still<\/em> be enough space to fit an IMU for motion controls. Me, I can’t wait to see Lego airplanes flying around a room with a working attitude gyro. <\/p>\n

\n <\/p>\n

<\/p>\n\"\"<\/p>\n

<\/source><\/picture>\n

<\/span><\/p>\n

<\/span><\/p>\n

Hi, Pi! The RP2040, now ensconced in Brown’s board.<\/em><\/figcaption>Photo: James Brown<\/cite><\/p>\n

<\/span><\/p>\n<\/figure>\n

And now, the answer to the question you’ve all been waiting for: will he take your money in exchange for one of these bricks? <\/p>\n

He isn’t ruling it out \u2014 but definitely not enough. <\/p>\n

\u201cThis is really not in any state to suggest that this is going to be a product; I would not want people to get in touch with me suggesting money for a pre-order, because that is not going to happen,\u201d he says. <\/p>\n

\n
\n <\/p>\n

<\/p>\n\"\"<\/p>\n

<\/source><\/picture>\n

<\/span><\/p>\n

<\/span><\/p>\n

Brown now has a 3D-printed jig as part of his mold. It lets him pour resin to form the brick-computer without first filling the brick’s cavity with silicone.<\/em><\/figcaption>Photo: James Brown<\/cite><\/p>\n

<\/span><\/p>\n<\/figure>\n<\/div>\n

He does plan to produce some of them for friends to tinker with, but he’s just not yet sure about manufacturing, certification, licensing, and above all, the blessing or disfavor of The Lego Group itself. Clearing it with Lego, or at least \u201cmaking sure that I’m not going to get the weight of Lego on top of me\u201d is the hardest problem, he says. \u201cThere’s a difference between doing something that is acceptable and being able to actually fight if they decide to throw their weight around.\u201d Obviously, he doesn’t plan to sell any bricks that literally say \u201cLego\u201d on their studs \u2014 his Friday tweets<\/a> shows a brick that ditches the logo.<\/p>\n

He also wants to find and fit a rechargeable battery before he’d consider manufacturing, because not everyone has late ’80s \/ early ’90s Lego electronics boards just sitting in a bin. <\/p>\n

\u201cI’m seeing how far I can go with it,\u201d he says. <\/p>\n

If you’re reading this, Lego, I sincerely hope you’ll let him go all the way. When you work with the community, the results are among the best products you’ve ever made. <\/p>\n<\/div>\n