Tutorial
raspberrypi.org/magpi The Official Raspberry Pi Projects Book 99
MAKE A
NIGHT-VISION
CAMERA TRAP
NIGHT-VISION CAMERA TRAP
on the UBEC, where the wires are already attached.
Connecting the UBEC to the Raspberry Pi in order to
supply power will be covered in the next step.
>STEP-03
Powering the Raspberry Pi
In order to supply power to the Raspberry Pi Zero,
the UBEC can be connected to your Pi in two different
ways: either by soldering the connections directly
to the GPIO, or by attaching the three-pin socket on
the UBEC to the Pi via a pre-soldered header. The
photos show the output wires from the UBEC soldered
directly onto the Pi’s 5V and GND pins (pins number 2
and 6). Alternatively, you could solder a GPIO header
onto the Pi and simply plug the UBEC’s three-pin
socket into the GPIO header – pins 2, 4, and 6 –
making sure the black wire is connected to pin 6.
>STEP-04
Connect the power circuit
The two input leads of the UBEC should be screwed
into the corresponding terminals on the female barrel
jack adapter, as well as two jumper wires connected to
the correct terminals on the male barrel jack adapter.
Using a hot glue gun, the female barrel jack socket can
be attached to the hole that was drilled in the rear of
the casing. Secondly, the UBEC can be attached to the
inside of the casing in the same way. Finally, the male
barrel jack adapter can be attached to the opposite
side of the casing as the UBEC (see photos) to later be
attached to the infrared illuminator.
>STEP-05
Mount the IR illuminator
Using a few small dots of hot glue, the infrared
illuminator can be fixed to top of the case’s lid, as
MOTION IN
BACKGROUND
Ensuring that
there are
no moving
objects in the
background of
the shot (e.g.
trees swaying)
will prevent
hours of
blank footage
from being
recorded.
MOTION
ALERTS
For a security
setup, there
is an option
under the
Motion
Notifications
menu for an
email to be
sent when
motion is
detected.
Left Connecting
the UBEC to
the Pi via a pre-
soldered header
Image courtesy of ModMyPi
Left Connection
from the output
of the UBEC to the
Pi’s 5V and GND
GPIO pins