Skip to content

lds133/pico_8ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic 8 Ball toy

Customizable prophecy hardware platform based on the Magic 8 Ball toy with shake detection, screen animation, and prophecy rendering, is recommended here.

magic8ball

Hardware

  1. RP2350 board
  2. 1.28 inch LCD module
  3. MPU-9250 accel and gyro module
  4. Li-ion battery charger board TP4056
  5. Li-ion battery

wiring

Wiring

Follow the diagram below to correctly connect all hardware components.

wiring

Case

Repurposed shell from a broken Magic 8 Ball toy, used as the enclosure for the device.

broken 8 ball toy

broken 8 ball toy

broken 8 ball toy

Firmware

The firmware handles all core device functionality, including:

  1. Reading motion data from the MPU-9250 sensor
  2. Detecting shake gestures using configurable acceleration thresholds
  3. Generating pseudo-random prophecies
  4. Rendering text and basic graphics on the LCD display
  5. Monitoring battery voltage levels and status indicators

Development

Build and flash the firmware using Visual Studio Code with the Pico extension installed.

Flashing

The firmware was flashed using a Raspberry Pi Debug Probe.

UF2 binary file

Using instructions

  1. Invert and activate Hold the device with the viewing window facing downward. Gently shake to initialize the response mechanism.
  2. Submit your query Clearly speak your question aloud while holding the device steady.
  3. Reveal the outcome Rotate the device so the viewing window faces upward. Observe the displayed prophecy.

Notes

  • Shake thoroughly for accurate results The prophecy is generated using accelerometer input-insufficient movement may affect outcome quality.
  • Hardware compatibility The codebase was originally developed for the RP2040 platform and may require adjustments for optimal performance on RP2350.
  • Optional guidance Prophecies are provided for entertainment purposes only; adherence is not required.
  • Low battery indicator A red triangle signifies that the battery level is low.

About

Customizable prophecy hardware platform based on the Magic 8 Ball toy

Topics

Resources

License

Stars

Watchers

Forks