Page 87 - Raspberry Pi as a Foundation for Boosting Computer and Technology Literacy
P. 87
Google Assistan7t with Google AIY 7.3
Figure 7.3
Xmas tree
By now, you already know that you need a Raspberry Pi Zero (or
Zero W or Zero 2 W) and the 3D Xmas Tree HAT. Below are the instruc-
tions for the software needed. First, install the necessary software:
sudo apt install python-gpiozero python3
-gpiozero
This example of a Python code sets all the LEDs flickering randomly:
from gpiozero import LEDBoard
from gpiozero.tools import random_values
from signal import pause
tree = LEDBoard(*range(2,28),pwm=True)
for led in tree:
led.source_delay = 0.1
led.source = random_values()
pause()
If you decided to purchase the soldering kit, look at the instructions
here: t3D Xmas Tree for Raspberry Pi Assembly Instructions. A fully
assembled soldering kit on a wooden plate looks like this:
7.3 Google Assistan7t with Google AIY 7.3
In 2017 (following guidelines in issue 57 of The MagPi), we built a Goog-
le Assistant bot (Raspberry Pi 2017b). Google had launched the Artifi-
cial Intelligence You (AIY) Project in collaboration with the Raspberry
Pi Foundation to promote DIY AI projects to the maker community.
One product within the Google AIY project is the AIY Voice Kit, which
87