PROJECTS Magic GIF-Ball Fortune Teller
jumper to the PPS OUT pin. Cut and solder a
black jumper to the G pin of the PPS (Figure
H
).
9. ELECTRICAL CONNECTIONS
You already connected the LCD in step 4. Now,
connect a jumper from the Pi’s 5V pin to the +5V
pin of the PowerBoost, and another jumper from
a Pi ground pin to a GND pin of the PowerBoost.
Connect the jumper from the PPS OUT pin to
the Bat pin of the PowerBoost. Connect the PPS
G pin to a GND pin on the PowerBoost.
Lastly, attach one of the sensor pins to pin 2 on
the Pi and the remaining pin to a GND pin on the
Pi (Figures
I
and
J
).
10. PHYSICAL ASSEMBLY
Mount the switch in the square hole within the
logo, using two M3 screws (Figure
K
). Glue the
logo insert into the lower shell (Figure
L
).
Test-fit the clips in their matching holes,
making sure they all seat at the same level when
fully inserted. Put a couple drops of super glue on
their tips and press them firmly down (Figure
M
).
Screw in the LCD retainer with two M3 screws,
then the bezel with two more (Figure
N
).
Place the Raspberry Pi over the four mounting
holes and align the mounting block above it,
fastening it in place with four M2.5 screws (Figure
O
). Insert the battery (Figure
P
).
Insert the vibration sensor into one of the holes
on the side of the mounting block (Figure
Q
).
Secure the PowerBoost to the mounting block
with two M2.5 screws (Figure
R
).
Wait a few hours for the glue to fully cure, then
connect the two halves together, making sure not
to pinch any stray wires (Figure
S
).
NOW ASK THE REAL QUESTIONS
Your Magic GIF-Ball is toggled on and off via the
pushbutton period in the .gif logo, which by Pi
standards is considered a hard shutdown, so you
may want to set it to read-only mode if you’re
worried about corruption (medium.com/swlh/
make-your-raspberry-pi-file-system-read-only-
raspbian-buster-c558694de79).
Once the Pi boots up, using the Magic GIF-Ball
is very similar to the original toy: Shake it up and
receive the answers you so desperately seek!
Should I buy Bitcoin? Should I eat fried chicken
66 makezine.com
J
M
K
L
H
I
M78_062-67_MagicGifBall_F1.indd 66M78_062-67_MagicGifBall_F1.indd 66 7/11/21 10:52 AM7/11/21 10:52 AM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.150.59