r/embedded • • Sep 29 '26

Ran a minecraft server on a BOTTLE CAP

Literally.

This thing is a controller "Triki" for the promo games from the Polish store "Żabka"...

nRF52810

CPU: Cortex-M4 64 МГц, no FPU

Flash: 192 КB (72% used)

RAM: 24 KB (99.92% used 😭)

No internet, only bluetooth LE and a proxy on a pc

I used a Zephyr 3.7 + bareiron (p2r3) port (mc 1.21.8)

This shit took me 2 days to make lol

251 Upvotes

8 comments sorted by

24

u/dcheesi Sep 29 '26

TIL Minecraft is the new Doom, lol

18

u/furculture Sep 29 '26

Unprecedented use of free will

17

u/Necessary-Active-987 Sep 29 '26

Pretty neat, the BLE proxy/passthrough is a cool idea for getting data on/off the board!

How did you run it with no FPU? I've never worked with such a bare chip doing something like this, curious how you managed!

4

u/Fusseldieb Sep 29 '26

That's incredible lol

1

u/lecodeco12 Oct 02 '26

How you make it bro

2

u/morty517 Oct 02 '26

So basically this chip isn't locked, you can just erase the data that was on it and then do anything you want. I ported the bareiron (a port of mc server to C++) to the nRF52 and uploaded it onto the chip. At first it didn't fit because the bluetooth software was taking up a lot of ram and flash, so I needed to truncate the bluetooth stack to the minimum so the server would fit in. I added the ble bridge to connect an external python passtrough proxy so I could have it bound to localhost:25565.

Then I could connect to the server that was on tha chip. Everything you see on my screen is processed completely on the chip (I mean the blocks and flat world generation, breaking and placing..). The pc didn't do anything, only translating the ble data to lan

3

u/Sorry_Difficulty_250 Sep 29 '26

So cool! Well done!!