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 to use various Raspberry PI commercial casings as camera mount with the include pi-camera (no-IR filter) as security camera setup. This one fits nicely on a camera screw and tighten with a M10 bolt. Great to combine with the RPI v3, which has in-build WIFI. So only power needed and you're good to go! The setup that I used: - Raspbian Jessie lite (terminal only) - RPI 3 board - Camera (IR filter or the no-IR filter version) - Enable the camera connector with "sudo raspi-config" (first option under menu 'interfaces') - To make sure the /dev/video0 device is present the right driver needs to be loaded to be able to use it with 'motion', make sure to add 'snd-bcm2835' as line in the file /etc/modules and reboot. - Install 'motion' with "sudo apt-get install motion" - Then edit the file '/etc/motion/motion.conf', to set a lot of things: "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 also 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 more setting to play with but with this basic setup you should have a work motion camera detection system storing images with each event. - test with "sudo motion -n -c /etc/motion/motion.conf" to run it directly. Then open a browser on your network to <ip of RPI>:8081 to check the stream - make motion start permanently on boot: "sudo nano /etc/default/motion" and add make 'start_demon on' Now your need to reboot to see it in action If you want automatic emails with every motion detection based on the configuration above, then use the next steps as well: Install mail tools: "sudo apt-get install ssmtp" "sudo apt-get install mailutils" "sudo apt-get install mpack" Edit ssmtp config to define your smtp settings of your ISP/email provider: "sudo nano /etc/ssmtp/ssmtp.conf" Stuff to set: 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 will use TLS or SSL; check google search for details to use GMAIL settings or none-secure smtp use) Then you can test sending an email with an attachment from your motion capture folder (as set by 'target_dir' in the motion config) mpack -s "My test email" /captures/<pick a jpg file name here>.jpg <your email id to receive it at> Now to add the 'automatic email feature' to motion edit the motion config file: "sudo nano /etc/motion/motion.conf" And 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 detect motion on your camera!" %f <your email to receive it at> One last hint: make sure to clean your captures folder occansionally (e.g. with a cronjob script) to remove older files, else your SD-card might fill up after some time. To do that: edit the file /etc/cron.daily with "sudo nano /etc/cron.daily" Add the following line to kill 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.