Difference between revisions of "Camera Scheduler"

From Waveshare Wiki
Jump to: navigation, search
(Created page with "{{infobox item| |img=400px|alt=Camera Scheduler|link=https://www.waveshare.com/camera-scheduler.htm |caption=Camera Scheduler, allows the Raspb...")
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
}}
 
}}
 
==Instruction==
 
==Instruction==
This scheduler is designed for Raspberry Pi, the specific FFC used allows the Rspberry Pi to connect two cameras. You can switch the cameras by controlling the GPIO.
+
This scheduler is designed for Raspberry Pi, the specific FPC used allows the Rspberry Pi to connect two cameras. You can switch the cameras by controlling the GPIO.
  
 
==How to use==
 
==How to use==
 
=== Configuration===
 
=== Configuration===
 
;1. Hardware connection
 
;1. Hardware connection
Connect FFC cable of Raspberry Pi to CSI interface of Raspberry PI. The CSI interface of Pi 2B, 3B, 3B+ located between LAN port and HDMI port. The CSI interface of Pi 4 is placed between HDMI1 interface and the audio jack. If you use Pi zero, the CSI interface is besided the Power port. Here is the diagram of Pi 4.<br />
+
Connect FPC cable of Raspberry Pi to CSI interface of Raspberry PI. The CSI interface of Pi 2B, 3B, 3B+ located between LAN port and HDMI port. The CSI interface of Pi 4 is placed between HDMI1 interface and the audio jack. If you use Pi zero, the CSI interface is besided the Power port. Here is the diagram of Pi 4.<br />
 
[[File:Camera-Scheduler-manual-1.jpg|400px]]<br />
 
[[File:Camera-Scheduler-manual-1.jpg|400px]]<br />
Note that the silver side (metal side) should toward to the HDMI interface. Release the black buckle, align the FFC cable and insert it tightly, then close the black buckle.
+
Note that the silver side (metal side) should toward to the HDMI interface. Release the black buckle, align the FPC cable and insert it tightly, then close the black buckle.
 
;2. Enable camera
 
;2. Enable camera
 
The camera interface of Raspberry Pi is default disabled. Before you use camera, you should enable it.<br />
 
The camera interface of Raspberry Pi is default disabled. Before you use camera, you should enable it.<br />
Line 34: Line 34:
 
:[[File:Camera-Scheduler-manual-7.jpg|500px]]
 
:[[File:Camera-Scheduler-manual-7.jpg|500px]]
 
;4. Swtich camera
 
;4. Swtich camera
:Solder a wire to pad of FFC cable
+
:Solder a wire to pad of FPC cable
 
:[[File:Camera-Scheduler-manual-8.jpg|400px]]
 
:[[File:Camera-Scheduler-manual-8.jpg|400px]]
  
Line 51: Line 51:
 
  sudo python switch-video.py
 
  sudo python switch-video.py
 
:[[File:Camera-Scheduler-manual-12.jpg|400px]]
 
:[[File:Camera-Scheduler-manual-12.jpg|400px]]
</div>
 
  
 
==Resources==
 
==Resources==

Revision as of 10:38, 31 July 2020

Camera Scheduler
Camera Scheduler

Camera Scheduler, allows the Raspberry Pi to Connect Two Cameras
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Instruction

This scheduler is designed for Raspberry Pi, the specific FPC used allows the Rspberry Pi to connect two cameras. You can switch the cameras by controlling the GPIO.

How to use

Configuration

1. Hardware connection

Connect FPC cable of Raspberry Pi to CSI interface of Raspberry PI. The CSI interface of Pi 2B, 3B, 3B+ located between LAN port and HDMI port. The CSI interface of Pi 4 is placed between HDMI1 interface and the audio jack. If you use Pi zero, the CSI interface is besided the Power port. Here is the diagram of Pi 4.
Camera-Scheduler-manual-1.jpg
Note that the silver side (metal side) should toward to the HDMI interface. Release the black buckle, align the FPC cable and insert it tightly, then close the black buckle.

2. Enable camera

The camera interface of Raspberry Pi is default disabled. Before you use camera, you should enable it.
Open Raspberry Pi terminal and excute command sudo raspi-config, then choose Interfacing Options -> Camera -> Yes
Camera-Scheduler-manual-2.jpg   Camera-Scheduler-manual-3.jpg

Camera-Scheduler-manual-4.jpg   Camera-Scheduler-manual-5.jpg

Reboot Raspberry Pi
sudo reboot
3. Test camera
Open terminal and test camera
Capture picture:sudo raspistill -o image-01.jpg
Camera-Scheduler-manual-6.jpg
Snapshot:sudo raspivid -o video-01.h264 -t 10000
Camera-Scheduler-manual-7.jpg
4. Swtich camera
Solder a wire to pad of FPC cable
Camera-Scheduler-manual-8.jpg
Manually switch: Pull-down the pad, that is connect the wire to GND
Camera-Scheduler-manual-9.jpg
Switch the camera, run camera command to test if cameras are switched. If it failed to switch, please check the soldering.
Python switch camera: Connect the wire to one GPIO, here we connect it to PIN 37. Download demo codes from wiki.
Camera-Scheduler-manual-10.jpg
Download demo codes from Resources and copy it to your Raspberry Pi.
Enter the directory of demo codes, run the codes to auto snapshot. This script will switch camera and take picture every 5s, and save pictures to /home/pi/Pictures.
cd /boot/Camera-Scheduler/
sudo python switch-photo.py
Camera-Scheduler-manual-11.jpg
Enter the directory of demo codes, run the codes to auto recoding. This scrip will switch camera and take a 10s long video every 15s. Videos will be saved in /hoem/pi/Videos.
cd /boot/Camera-Scheduler/
sudo python switch-video.py
Camera-Scheduler-manual-12.jpg

Resources

Demo codes

Supports

Template:Services00