Pi Cameras

Purchasing

The High Quality camera module is really nice!

But be sure to choose the right sensor for the job.

If you're setting up a security camera, you want the NOIR filter version... The version with No Infra-red Filter. That way it reacts to any IR lights you set up.

If you're working inside with reliable lighting, choose a HQ Camera module for the best quality photos.

12MP goodness. 馃槂

Components:

  • Raspberry Pi Zero + Wireless

Be sure to get the converter cable! (usually sold separately)

So far I really like the kit that comes with everything you need (and nothing you don't need) from Vilros.

Seems like all of the pi cases block access to the sim card maybe that makes them more weather proof?

also need some 1/4" nut attachments (epoxy plus wood?)

OS native features

https://www.raspberrypi.com/documentation/computers/os.html#using-a-usb-webcam

Web cam setup

Try Jeff Geerling's webcam setup

https://github.com/geerlingguy/pi-webcam
GitHub - geerlingguy/pi-webcam: Automation to configure a Raspberry Pi as a USB OTG webcam
https://gist.github.com/justinschuldt/36469e2a89d95ef158a8c4df091e9cb4
Directions for setting up a RaspberryPi to act as a generic USB webcam 路 GitHub
https://newatlas.com/telecommunications/jeff-geerling-raspberry-pi-hq-camera-webcam/
Pi Zero W and HQ camera module used as cheap webcam
https://github.com/geerlingguy
geerlingguy (Jeff Geerling) 路 GitHub

https://duckduckgo.com/?t=ffab&q=geerlingguy+github&ia=web
geerlingguy github at DuckDuckGo

https://duckduckgo.com/?t=ffab&q=raspberry+pi+hq+camera+maximum+video+rate&ia=web
raspberry pi hq camera maximum video rate at DuckDuckGo
https://www.raspberrypi.org/documentation/raspbian/applications/camera.md
Raspberry Pi Camera Module - Raspberry Pi Documentation
https://duckduckgo.com/?t=canonical&q=use+raspberry+pi+hq+camera+as+web+camera&ia=web
use raspberry pi hq camera as web camera at DuckDuckGo

Motion Eye OS

Setting up a raspberry pi as a home security camera.

Motion Eye OS did a good job of getting up and running quickly.

https://github.com/ccrisan/motioneyeos
GitHub - ccrisan/motioneyeos: A Video Surveillance OS For Single-board Computers

Motion Eye is the web interface for interacting with the motion client.

https://github.com/ccrisan/motioneye/
GitHub - ccrisan/motioneye: A web frontend for the motion daemon.
https://github.com/ccrisan/motioneye/wiki
Home 路 ccrisan/motioneye Wiki 路 GitHub
https://github.com/ccrisan/motioneye/
GitHub - ccrisan/motioneye: A web frontend for the motion daemon.

Installation

Find an image for your board. Download. Flash. Boot up.

https://github.com/ccrisan/motioneyeos/wiki/Supported-Devices
Supported Devices 路 ccrisan/motioneyeos Wiki 路 GitHub

github.com/ccrisan/motioneyeos/releases/download/20200606/motioneyeos-raspberrypi-20200606.img.xz

Extract and burn to a micro SD with balenaEtcher

To configure network

Create a new file on the 31 MB Volume nammed wpa_supplicant.conf (NOTE: supplicant.conf did not work for me!)

country=US
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
    scan_ssid=1
    ssid="your network's SSID"
    psk="your network's password"
}

Connect your Pi camera via the CSI connector or plug in a USB webcam using a Micro USB OTG adapter, then apply power. If your setup is correct, the Pi will boot up into MotionEyeOS, and you can use a network scanner like this one to find its IP address.

The device will have a default name, such as MEYE-12345678. Once you find the device name, navigate to the IP address on a web browser connected to the same network. A local website will appear, giving you a nice graphic interface on which to access your camera and settings.

To log in as a user, input user as the username with a blank password, or admin with a blank password as well. If you're setting up the system for the first time, use the admin username.

https://www.arrow.com/en/research-and-events/articles/motioneyeos-camera-setup-on-raspberry-pi-zero-w
MotionEyeOS Raspberry Pi Zero W Tutorial: Setup & Uses | Arrow.com | Arrow.com

SSH access

Last time I tried this, I locked myself out of ssh.

User account

admin and

vi /data/etc/motion.conf

https://github.com/ccrisan/motioneyeos/issues/501

vi /data/etc/camera-1.conf 

cat /data/etc/ssh/ssh_host_rsa_key.pub 

This isn't working: https://github.com/ccrisan/motioneyeos/wiki/SSH-Client-On-motionEyeOS

But noticed many other keys in /data/etc/ssh

cat /data/etc/ssh/ssh_host_rsa_key.pub 

Gotchas

Keeping a high resolution video feed active in a web browser can consume a lot of bandwidth, even on a home network.

Don't keep the stream active in a browser unless you need to see what is happening.

Focus

I was unable to focus the lens with the provided lens extender / adapter. But without that, it feels pretty loosely connected.

Just need to play with it to see.

https://duckduckgo.com/?q=how+to+focus+raspberry+pi+camera+high+quality&t=canonical&ia=web
how to focus raspberry pi camera high quality at DuckDuckGo
https://www.arducam.com/raspberry-pi-high-quality-camera-lens/
Raspberry Pi High Quality Camera Lens Guide: The Key Topics

Archiving Recordings

Centralized Media Server

If you want to archive video longer than the device can hold, transfer to a different server

Run Commands

export PIIP=192.168.1.2
export SERVERIP=192.168.1.3

ssh root@PIIP
ssh-keygen
ssh-copy-id account@SERVERIP
ssh account@SERVERIP
rsync -av /data/output/Camera1 account@SERVERIP:~/out-data/front-porch
rm -r /data/output/Camera1/*

https://duckduckgo.com/?t=canonical&q=use+pi+cam+as+a+security+camera&ia=web
use pi cam as a security camera at DuckDuckGo
https://makezine.com/projects/beginner-project-a-remote-viewing-camera-with-raspberry-pi/
Beginner Project: A Remote Viewing Camera With Raspberry Pi | Make:

https://duckduckgo.com/?t=canonical&q=raspberry+pi+camera+high+quality&ia=web
raspberry pi camera high quality at DuckDuckGo
https://www.raspberrypi.org/products/raspberry-pi-high-quality-camera/?resellerType=home
Buy a Raspberry Pi High Quality Camera 鈥 Raspberry Pi
https://static.raspberrypi.org/files/product-guides/Raspberry_Pi_High_Quality_Camera_Getting_Started.pdf
Raspberry_Pi_High_Quality_Camera_Getting_Started.pdf
https://hackernoon.com/polising-raspberry-pi-high-quality-camera-3z113u18
How to Configure a Raspberry Pi High Quality Camera | Hacker Noon
https://www.raspberrypi.org/products/camera-guide/?resellerType=home
Buy a The Official Raspberry Pi Camera Guide 鈥 Raspberry Pi
https://duckduckgo.com/?t=canonical&q=raspberry+pi+with+camer+connector&ia=web
raspberry pi with camer connector at DuckDuckGo
https://www.raspberrypi.org/blog/zero-grows-camera-connector/
Zero grows a camera connector - Raspberry Pi

https://learn.sparkfun.com/tutorials/getting-started-with-the-raspberry-pi-zero-wireless/all
Getting Started with the Raspberry Pi Zero Wireless - learn.sparkfun.com

https://www.raspberrypi.org/
Teach, Learn, and Make with Raspberry Pi

https://duckduckgo.com/?t=canonical&q=raspberry+pi+camera+plus+pi+zero+wifi+setup+instructions&ia=web
raspberry pi camera plus pi zero wifi setup instructions at DuckDuckGo

https://www.arrow.com/en/research-and-events/articles/motioneyeos-camera-setup-on-raspberry-pi-zero-w
MotionEyeOS Raspberry Pi Zero W Tutorial: Setup & Uses | Arrow.com | Arrow.com
https://duckduckgo.com/?t=canonical&q=motioneyes+wifi&ia=web
motioneyes wifi at DuckDuckGo
https://github.com/ccrisan/motioneyeos/issues/42
Setting up WiFi with MotionEye 路 Issue #42 路 ccrisan/motioneyeos 路 GitHub
https://github.com/ccrisan/motioneyeos/wiki
Home 路 ccrisan/motioneyeos Wiki 路 GitHub
https://github.com/ccrisan/thingos/wiki/wpa_supplicant.conf
wpa_supplicant.conf 路 ccrisan/thingos Wiki 路 GitHub
https://github.com/ccrisan/motioneyeos/issues/1850
Can't acces MotionEyeOS IP when using WiFi 路 Issue #1850 路 ccrisan/motioneyeos 路 GitHub