Computer Shopper - UK (2019-08)

(Antfer) #1

ADVANCEDPROJECTS


134 AUGUST 2019AUGUST 2019||COMPUTER SHOPPERCOM |ISSUE 378


box, and use the large nut to secure it.
It will help if you can identify the
crown-like marking of the button
and ensure this is upwards when
you tighten the nut, as shown in the
pictures on page 136. Then attach the
wires by pushing them on to the flat
connectors in this order: top-leftblue,
top-right green, middle-leftgrey, middle-
right black, bottom-leftred, bottom-right
orange.Finally,push the connector on to the
header of the HAT, ensuring that the blue
wire is furthest from the greyterminal block.
Then shut the lid, using the tab to secure it.

GETTINGASSISTANTS
By now,the AIY operating system should
have downloaded. Unzip the Disc Image File
(.img) file and save it somewhere memorable.
Next, take the microSD card from its case
and insert it intoyour computer via your
adaptor.Cancel all the various warnings
about unformatted disks. Use atool such as
Rufus (seerufus.ie)to‘burn’the .img file to
microSD card, agreeing to
reformat the two partitions.
Once Rufus has done its
magic, you’ll need to open
the Boot partition and createa
text file called wpa_supplicant.
Enter the following, replacing
<SSID> and <PASSWORD>
with your own Wi-Fi name
and password.

ctrl_interface=DIR=/
var/run/wpa_supplicant
GROUP=netdev
update_config=1
country=GB

network={
ssid="<SSID>"
psk="<PASSWORD>"
key_mgmt=WPA-PSK
}

Save the file and then open the View
menu of Explorer; tick the box to show file
name extensions. Change the file extension
from wpa_supplicant.txt towpa_supplicant.
conf(ignore the warning) and then untick
the box to hide the filename extensions again.

Then remove the microSD card, insert it into
the Pi and power it up.
The wpa_supplicant trick should mean
that the Pi automatically connects to your
Wi-Fi network, so the next job is to find its IP
address. We find the easiest waytodothis is
to log intoyour Wi-Fi router and look up the
device (called raspberrypi). The IP
address will look something like
192.168.1.100, so notethis down.
Then use an SSH tool such as
PuTTY (seeputty.org)toconnect
remotely to the AIY Pi. Login
with the standard username
and password of pi and
raspberry.Ifyou plan on using
the Pi forany length of time,
change this default password
using the commandpasswd.
Updatethe system by entering
sudo apt-get update&&apt-get
-y upgradeand hitting Enter.

EAR,ROBOT
While there is another AIY kit based
around vision (leading to the
unavoidable ‘Eye,Robot’
crosshead if we ever cover it),
this kit is all about voice
interactions and machine

⬅⬇Google includes two plastic
standoffs to make the build robust

⬅There are two elements to the casing: this is the
inner ‘cage’, which holds the Pi and the speaker
Free download pdf