• 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 Pico 2 RP2350 With 0.96 inch LCD Display 0.96inch Screen 160×80 Onboard RP2350A Supports Night Vision Raspberry Pi 5 PCIe to USB Gen1 HUB and M.2 NVMe SSD PI5 Expansion board HAT+ Jetson Nano Developer Kit JSON Command Meaning Jetson Nano 3G module Industrial CAN FD RS232/RS485 bidirectional converter CAN2.0A/B TTL To CAN Allwinner H618 Raspberry Pi RP2040 LoRa Modbus RTU 8-ch Relay Module (D) Luckfox Pico ST7789 Arduino board manager tutorial User Guide Milk-V Duo Wiki JETSON-NANO-MINI ESP32 S3 R8 MP3 Board 2.8inch LCD TouchScreen Display Speaker/SD-Card/Battery/QMI8658-6-Axis-Sensor DC-DC Step-Down Mini voltage Moudle Input 5~36V voltage Output 5V/3.3V 4A Raspberry Pi 5inch Display 1024x600 HDMI Capacitive TouchScreen 5 inch LCD B Wide-Cover For Mini PC Raspberry Pi 5 PCIe to M.2 5G/4G/3G HAT With RM520N-GL