Introduction: Day and Night View Live Stream Cam

Rear view cameras, spy cameras, etc., there are enough, however, I wanted a camera that allows a live broadcast easily on any mobile phone or tablet. Incidentally, the construction of technical equipment is funny to me.
My cameras will be placed in a horse trailer and in a bird incubator.

Step 1: Material List

1x Raspberry PI Zero W Kit (Bundle 2) Link

1x Raspberry Pi Zero W Night Vision Camera Wide Angle Fisheye 5 MP 1080P Camera + 2 Infrared IR LED Link

1x Raspberry Pi Zero Camera Cable 16 cm FFC Cable for RPI Zero Pi0 Raspberry Pi Zero W Link

1x MicroSD card

1x DC BEC 5V Link

1x DC Power Black Jack Plug Link

1x 10cm 2x1mm cable (red and black)

8x M3x6mm Cap Point Hex Socket Screws

4x M2.5x3mm Cap Point Hex Socket Screws

1x 3d printed front plate

1x 3d printed enclosure

1x 3d printed back plate

1x 12x12x3mm alu spacer plate and 1x 40x20x3mm alu backplate. Alternatively you can use the aluminium heatsink from the Bundle 2. In this case print the alternative backplate.

Alternatively material whitch is not absolutely necessery:

2x 2pin female dupont connector

1x 4cm 1mm heat shrink tube

Step 2: Print Your Parts

I did a lot of tests so engeneering is alreday done, just print the parts!

PLA is required for the front panel and enclosure. The back plate is printed with PETG because the aluminum plate can become very hot.

You can download the 3D STL files from thingiverse. Link

First print the file "font_txt.stl" in black, change your filament to white and remove the skirt from your head bed. Second print front.stl

Printer Settings:

Frontplate: 100% infill

Enclosure: 50% infill

Backplate: 100% infill

Printing speed and tempartures depend on your 3d printer and your current filament.

Step 3: Install the Raspberry Pi Zero W

Step 1: Download the Raspbian image
Open the Raspverrypi web page and download the Raspbian Stretch Lite image (ZIP).


Step 2: Unzip the image and copy it to your microSD card.

$ unzip

$ sudo dd bs=1m if=2018-06-27-raspbian-stretch-lite.img of=/dev/diskX conv=sync


Step 3: Prepare your microSD card for connecting via ssh and usb.

1.) Open config.txt from your mircoSD boot volume

2.) add the following line at the very bottom dtoverlay=dwc2

3.) Save the file

4.) Open cmdline.txt from your mircoSD boot volume

5.) add the following after rootwait modules-load=dwc2,g_ether

6.) Save the file


Step 4: Connecting to the Pi Zero with USB and SSH

1.) unmount your microSD card

2.) put it into your Rasperry Pi Zero W

3.) connect your USB cable to your Mac and power your Pi with the USB data cable. Use the USB port and not the PWR port.

Step 5: Connect to your Rasperry PI via Secure Shell

1.) ssh pi@raspberrypi.local

Password: raspberry

Step 6: update your Rasperry

$ sudo apt-get update

$ sudo apt-get upgrade

Step 7: Enable Camera interface

1.) $ sudo raspi-config

2.) 5 Interface

3.) P1 Camera

3.) Enable > YES

Step 8: Install uv4l core and server

1.) $ curl | sudo apt-key add -

2.) add the following line to /etc/apt/sources.list

$ sudo nano /etc/apt/sources.list deb stretch main

strg O

strg X

$ sudo apt-get update

$ sudo apt-get install uv4l-server uv4l-raspicam uv4l-raspicam-extras

$ sudo service uv4l_raspicam restart

3.) update firmware

$ sudo rpi-update


Step 9: Setup your custom site

1.) $ sudo nano /etc/uv4l/uv4l-raspicam.conf

2.) uncomment the following lines

server-option = --enable-www-server=yes

server-option = --www-root-path=/usr/share/uv4l/www/

server-option = --www-port=80

3.) $ sudo mkdir /usr/share/uv4l/www

4.) $ cd /usr/share/uv4l/www

5.) $ sudo nano index.html

Copy and paste content from index.html (download from Thingiverse)

strg O

strg X

Step 10: Setting up a Raspberry Pi as an access point and DHCP Server

1.) $ sudo apt-get install dnsmasq hostapd

2.) $ sudo systemctl stop dnsmasq

3.) $ sudo systemctl stop hostapd

4.) $ sudo reboot

5.) $ ssh pi@raspberrypi.local

6.) $ sudo nano /etc/dhcpcd.conf

interface wlan0

static ip_address=

nohook wpa_supplicant

7.) $ sudo service dhcpcd restart

8.) $ sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig

9.) $ sudo nano /etc/dnsmasq.conf

interface=wlan0 # Use the require wireless interface - usually wlan0



10.) $ sudo nano /etc/hostapd/hostapd.conf










11.) sudo nano /etc/default/hostapd DAEMON_CONF="/etc/hostapd/hostapd.conf"

12.) $ sudo systemctl start hostapd

13.) $ sudo systemctl start dnsmasq

14.) $ sudo reboot


Step 4: Assemble Your Pi Camera and Mount It on the Frontplate

1.) Assemble your Pi camera as shown in the picture. To facilitate mounting in the front panel, I glued the 4 screws on the Pi camera board from the front.
2.) Connect the ribbon cable to the camera

3.) Attach your camera to the front panel. Carefully align the rubber parts with the holes in the front panel. Also note that the small feet that hold the camera can break very quickly.

4.) Tighten the 4 nuts of the Pi camera

5.) Insert the IR lenses from the front through the large holes on the board

6.) Screw the optical lens into the socket from the front.

Step 5: Power Connection and Voltage Regulator

1.) If you have dupont connector you can use it. If not solder a cable of 1cm lenght betwin the voltage regulator and the DC Power Jack. Pay attention to solder it on the right side (Input).
2.) Next solder a cable of mi. 5 cm length to the output side of the voltage regulator. Also use dupont connector if available.

Step 6: Prepare Your Raspberry

1.) Solder 2 pin header to the 5V and Ground to your Raspberry Pi zero W.


2.) Apply a piece of double-sided tape to the small aluminum plate and cut away the supernatant.

3.) Apply the small aluminium plate on the Raspberry Pi Zero W CPU.

4.) Connect the ribbon cable from the camera to the Raspberry Pi.

5.) Place the large aluminum plate in the 3D printed back plate and place the Raspberry Pi Zero W on top. The board is screwed on the back plate with 4x 2.5mm screws.

Step 7:

1.) Now it´s time to finish our cam. Attach the front plate with the camera to the housing and screw it with 4x 3mm.

2.) Connect the cable from the voltage regulator to the Raspberry Pi Zero W.

3.) Fold the ribbon cable and the power cable carefully inside the housing and close the camera. Pay attention not to clamp any cable.

4.) Screw it with 4x 3mm to the housing.

5.) Congratulation!

First Time Author

Participated in the
First Time Author