• 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: Raspberry Pi Game ESP32-S3 3.49-inch Development Board DeepSeek AI Chat Box 3.49inch LCD Capacitive TouchScreen Display 172×640 N16R8 HDMI to LVDS Raspberry Pi 12.3 inch HDMI LCD Captive TouchScreen Display 1920x720 For Jetson Series/Computer PC MPUUART Raspberry Pi 5 PCIe to ISO 2-CH RS485 /2-CH RS232 / USB /UART / TTL Raspberry Pi DSI Raspberry Pi 1.54inch LCD Bookworm-Desktop Display and Touch Milk-V Duo Camera AV to RGB Raspberry Pi 5 PCIe to 4 Port 2.5G Gigabit Ethernet Adapter RJ45 Ports Raspberry Pi 5 PCIe to 2.5G Ethernet Adapter Board Plug and Play MPS2280 POE Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280/2242/2230 UNO Minima RA4M1 ZERO Tiny SuperMini R7FA4M1 Board Compatible With R4 For Arduino Raspberry Pi 5 Official Red-White Case Industrial USB TO 4CH RS232/485/422/TTL Serial UART Converter FT4232HL RDK X5 PoE Module For Power Over Ethernet/ IEEE 802.3af/at PoE For D-Robotics RDK X5 Rasberry Pi 5 PCIe TO MiniPCIe 4G Gigabit Ethernet RJ45 USB HUB HAT+ SIM7600G-H/EG25-G Raspberry Pi CM4 Raspberry Pi 4/4.3 inch DSI MIPI LCD TouchScreen Display 4/4.3inch 480x800 For Luckfox Lyra RK3506/ESP32-P4/Luckfox Omni3576 DPI Interface