• sales

    +86-0755-88291180

Raspberry Pi Camera Scheduler User Guide

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.

How to use

Configuration

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.



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.

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


Reboot Raspberry Pi
sudo reboot
3. Test camera
Open terminal and test camera
Capture picture:sudo raspistill -o image-01.jpg


Snapshot:sudo raspivid -o video-01.h264 -t 10000


4. Swtich camera
Solder a wire to pad of FFC cable

      


Manually switch: Pull-down the pad, that is connect the wire to GND

      


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.

      


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

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

TAG: PC Monitor LCD Raspberry Pi 13.3 inch FHD AMOLED 1080P Capacitive TouchScreen Display Type-C/HDMI For Computer PC ESP32 S3 Development Board 1.43 inch AMOLED Display 1.43inch TouchScreen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor Jetson Orin Raspberry Pi PICO LoRa-HF Core3566002032 ESP32-S3 ESP32 Mini TV Raspberry Pi 12.3 inch HDMI LCD Captive TouchScreen Display 1920x720 For Jetson Series/Computer PC Template: Pico-get-start Raspberry Pi 11.6 inch LCD HDMI /Type C Display In-Cell Capacitive TouchScreen 1768x828 For Jetson Nano/mini Computer PC Raspberry Pi Pico Milk-V Duo S Usage of USB Type A interface Raspberry Pi Pico 2 RP2350 1.64 inch AMOLED Development Board Display TouchScreen 280x456 QMI8658 IMU QSPI Pi5 Raspberry Pi 5 XIAO RA4M1 Tiny SuperMini Board For Arduino Uno IDE For SeeedStudio R7FA4M1 Raspberry Pi CSI-to-HDMI Raspberry Pi 5 POE + PCIe to M.2 NVMe SSD Board HAT+ Pi5 2242/2230 Power over Ethernet Milk-V Duo S Extend Partition on SD Card or eMMC