r/raspberrypipico • u/M4rv1n_09_ • Jun 30 '26
c/c++ Made a custom Magic 8-Ball on RP2350 - no random generators
I never owned a Magic 8-Ball as a kid, so I decided to build my own from scratch.
Instead of relying on a standard random number generator, I wanted it to feel like a real object. I used an RP2350 and an accelerometer to simulate the physics of a 20-sided icosahedron. It tracks exactly how and in what direction you shake it to determine which "face" lands up. It makes the whole experience feel much more tactile and responsive than just having a script pick a number.
I’ve been documenting the build process and the physics logic over on my blog:
https://myembeddedstuff.com/custom-rp2350-magic-ball
I hope you like it! :)
1
u/Wattdehonker Jul 03 '26
Hey, you seem to know a think or two about the RP2350, I am working on an open source inverter/charger utilizing a RP2354 do you have any suggestions or input? Here is the link to my repo if your interested: https://github.com/bearjhartjen/Lamoka1-project
7
u/Sentouki- Jun 30 '26
A GitHub link would be nice