Raspberry pi case screw hole mount for security camera with pi-camera

Raspberry pi case screw hole mount for security camera with pi-camera

thingiverse

I created this project using various Raspberry PI commercial casings as camera mounts with the included pi-camera (no-IR filter) for a security camera setup. The casing fits perfectly on a camera screw and secures in place with an M10 bolt. It's great to pair this setup with the RPI v3, which comes equipped with built-in WiFi. This means only power is required, and you're ready to go! Here's the setup I used: - Raspbian Jessie lite (terminal-only mode) - RPI 3 board - Camera (IR filter or no-IR filter version) - Enable the camera connector by running "sudo raspi-config" and selecting the first option under the "Interfaces" menu. - To ensure the /dev/video0 device is present, load the correct driver by adding 'snd-bcm2835' to the file /etc/modules and rebooting. - Install 'motion' using "sudo apt-get install motion" - Edit the '/etc/motion/motion.conf' file to set various options: "sudo nano /etc/motion/motion.conf" width 1024 height 768 framerate 25 webcam_maxrate 10 webcam_localhost off ffmpeg_output_movies off stream_localhost off target_dir <set it to a more convenient folder; for example, /captures; make sure to create it and use "chmod 755 /captures"> locate_motion_mode preview locate_motion_style redbox event_gap 2 output_pictures center quality 80 text_changes on There are many other settings to experiment with, but this basic setup should give you a working motion camera detection system that stores images with each event. To test it, run "sudo motion -n -c /etc/motion/motion.conf" directly. Then, open a browser on your network and access <ip of RPI>:8081 to view the stream. To make 'motion' start permanently on boot, edit "/etc/default/motion" and add "start_demon on". Reboot to see it in action. If you want automatic emails with every motion detection based on this configuration, follow these additional steps: Install mail tools: "sudo apt-get install ssmtp", "sudo apt-get install mailutils", and "sudo apt-get install mpack" Edit the ssmtp config file to define your SMTP settings from your ISP/email provider: "sudo nano /etc/ssmtp/ssmtp.conf" Set the following options: root=postmaster mailhub=[smtp address]:[port nr] hostname=[your RPI host name] AuthUser=[your user id or email] AuthPass=[your SMTP password] FromLineOverride=YES UseSTARTTLS=YES Assuming you'll use TLS or SSL, check Google for details on using Gmail settings or non-secure SMTP. To test sending an email with an attachment from your motion capture folder (as set by 'target_dir' in the motion config), run: "mpack -s "My test email" /captures/<pick a jpg file name here>.jpg <your email id to receive it at>" Now, add the 'automatic email feature' to motion by editing the motion config file: "sudo nano /etc/motion/motion.conf" Set the option 'on_picture_save' to execute the mpack command from above. It should look like this: on_picture_save mpack -s "Dude!! I've detected motion on your camera!" %f <your email to receive it at> One final hint: regularly clean your captures folder (e.g., with a cronjob script) to remove older files, or else your SD-card might fill up over time. To do this, edit the file /etc/cron.daily with "sudo nano /etc/cron.daily" Add the following line to delete older jpg files from the folder: find /captures -name '*.jpg' -mtime +7 -exec rm -f {} \; Reboot, and that should be the basics to get it running!

Download Model from thingiverse

With this file you will be able to print Raspberry pi case screw hole mount for security camera with pi-camera with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Raspberry pi case screw hole mount for security camera with pi-camera.