Tutorial STEP BY STEP
(^98) The Official Raspberry Pi Projects Book raspberrypi.org/magpi
MAKE A
NIGHT-VISION
CAMERA TRAP
Build a motion-detecting camera that streams to the internet
and can see in the dark!
Raspberry Pi Zero
v1.3 / W / WH,
Raspberry Pi 1 B
or B+
Pi NoIR
Camera Module
magpi.cc/
2hND1tW
Pi Zero
camera cable
magpi.cc/
1V5N9dh
USB to micro
USB adapter
Infrared
illuminator
magpi.cc/
2jxw3sT
12 V power supply
Power supply
adapters
magpi.cc/
2hNFuEy
5 V UBEC
magpi.cc/
2hNMv8z
WiFi dongle
with antenna
magpi.cc/
VPMjZm
Waterproof case
Two short
lengths of
jumper wire
You’ll
Need
HENRY BUDDEN
Following the release of the Raspberry
Pi when he was twelve, Henry taught
himself to code and to use/break
electronics, and has shared this
process with the world on his website.
magpi.cc/2eCbaMf
ith night-vision and the MotionEyeOS
installed, the camera trap can be installed
outside as a home security camera, a nature-
trap, or a neighbour-watcher (careful!). The operating
system MotionEyeOS allows the camera to be viewed
online as well as alerting you when motion is detected.
Built inside a waterproof case, and powered by mains
electricity, the setup is also equipped with a high-
power infrared illuminator to light up the darkness.
STEP-01
Prepare case
The first step is to drill all of the holes in the
waterproof container of your choice (it must be
transparent) in order to mount all of the necessary
components. For our choice of case, we needed to drill
two holes: one for the power socket and two for the
WiFi antennae. Whilst the diameter and the distance
needed between the holes for different WiFi antennae
and power sockets may differ, we used a 7 mm bit for
the power socket and drilled two 10 mm holes for the
WiFi antennae. If the holes appear slightly too large
once drilled, don’t worry: the gaps will be filled with
hot glue when mounting the components.
STEP-02
Wire the power circuit
After preparing the case for the mounting of the
components, the next step is to wire up the power
circuit. The female barrel jack socket will be mounted
inside the hole drilled earlier, with two connections
from each screw terminal. One pair of wires connected
to the negative and positive terminals will be
connected to the male barrel jack connector screw
terminals, with the other pair of wires connecting
to the corresponding negative and positive inputs
W
Long-range
antennae for
WiFi connectivity
anywhere in
the garden
See in the dark with
infrared light only
visible to the Pi NoIR
Camera Module
Full HD night-vision
camera to record
any secret antics!