Raspberry Pi wildlife camera
PIR sensor
- "- pin" is connected to ground
- "+ pin" is connected to 3.3V power
- middle pin "0" is connected to Raspberry Pi pin 11
To automate the script to run at startup, use:
sudo crontab -e
The sudo here is required so that the script is run as root user during startup, since root rights are required to capture the image directly to the SD card.
To the bottom add the line:
@reboot python /home/pi/pildlife/run.py &
Especially important is the & at the end of the call, since our script runs an infinite loop. Without the &
, the boot would get stuck at running the python script and not continue.
- https://www.waveshare.com/wiki/RPi_IR-CUT_Camera
- https://thepihut.com/blogs/raspberry-pi-tutorials/installing-the-raspberry-pi-camera-board
- https://electronics.stackexchange.com/questions/433246/controling-mosfet-by-3-3v-raspberry-pi-gpio-pin
- https://learn.pimoroni.com/tutorial/sandyj/running-scripts-at-boot