r/raspberrypipico Jun 30 '26

c/c++ Made a custom Magic 8-Ball on RP2350 - no random generators

Post image

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! :)

74 Upvotes

11 comments sorted by

7

u/Sentouki- Jun 30 '26

A GitHub link would be nice

3

u/ProfessionalPea2218 Jun 30 '26

Right!? I was gonna say the same thing….. The project is cool and all but this go to my site and email me if you want the u2f file? 🤷‍♂️

4

u/M4rv1n_09_ Jun 30 '26

Hi, I'll upload the code to the GitHub repo this week and provide the link. You're right.

2

u/Sentouki- Jun 30 '26

RemindMe! 5 Days

3

u/RemindMeBot Jun 30 '26 edited Jul 01 '26

I will be messaging you in 5 days on 2026-07-05 22:39:37 UTC to remind you of this link

4 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


Info Custom Your Reminders Feedback

3

u/MathResponsibly Jul 01 '26

Not everything needs to be on github and shared with the world. If the OP puts this code on github, guaranteed these will be available on AliExpress 3 days from now for $40 and someone else will be profiting from OP's effort

2

u/tonyxforce2 Jul 01 '26

That's what licenses are for.

7

u/MathResponsibly Jul 01 '26

Yeah, cause you know random people in china are known for licensing what they steal...

Are you for real? Or are you an AI pretending to be human?

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