The Official Raspberry Pi Projects Book - Projects_Book_v4

(singke) #1

Tutorial STEP BY STEP


(^100) The Official Raspberry Pi Projects Book raspberrypi.org/magpi
CLOUD
BACKUP
In order for
the recorded
files to be
backed up,
you can select
Google Drive
or Dropbox
from the
File Storage
menu, clicking
Obtain Key
to gain
permissions.
shown in the photographs. The power lead from this
module can then be connected to the male barrel jack
adapter now fixed to the side of the case. More hot
glue may be needed to ensure a good fix, especially
accounting for the stress applied to the cable when
the box is opened or closed.



STEP-06
Mount the WiFi and antennae
With the two holes for the antennae already drilled
the correct distance from each other, the WiFi module
can easily be attached to the casing by pushing the
antennae through the holes from the inside of the
case. Once the WiFi antennae are in position, they
can be fixed (and waterproofed) by using the hot
glue gun to create a circular seal around the outside
of the holes. The WiFi module is connected to the Pi
by connecting the USB to micro USB adapter to the
socket marked ‘USB’ on the Pi, and the USB plug on
the WiFi module.
STEP-07
Mount the Raspberry Pi and Camera Module
In this tutorial, we mounted both the Raspberry Pi Zero
and Pi NoIR Camera module to the casing using eight
hexagonal stand-offs; however, this is not necessary.
With some improvisation, makeshift stand-offs can
be created from common materials like wooden dowel.
Both the Raspberry Pi and Camera Module are attached
to the casing using hot glue. As the pictures show, we
mounted the Camera Module upside-down in order to
remove any kinks in the camera cable. The software
can correct this inversion at a later time.
STEP-08
Install MotionEyeOS
On a computer, visit magpi.cc/1UCw1Jk and download
the image shown as compatible with the Raspberry
Pi Zero. Once downloaded, extract the IMG file from
the .tar.gz archive. We did this using a program called
7zip. Finally, using a disk imaging tool like Etcher or
Win32 Disk Imager, write the IMG file to a microSD
card. As the OS does not create an interface on the Pi,
initial setup will need to be performed on a Raspberry
Pi 1 Model B or B+, as it works with the same version
of the OS as the Zero and has Ethernet connectivity.
This is because WiFi cannot be configured yet, unless
you use one of the two methods for preconfiguring it
before first boot (magpi.cc/PHnHWK), in which case
the older model Pi isn’t needed and you can insert the
card straight into the Pi Zero (skip to Step 11).
STEP-09
Connect to MotionEyeOS
Insert the microSD card into the older Raspberry Pi
model and connect the Camera Module. Power on,
ensuring it is connected to your home network via
Ethernet. After approximately two minutes, use an
Above The
inner layout and
connections of the
camera setup
Above The camera works well when positioned in a spot where
interesting activity is to be expected, like a hole in a fence


Free download pdf