An old phone beats a Raspberry Pi for everything except the one thing that matters

Server or microcontroller — pick before you build.