• 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: WiFi Wireless ESP32 DDSM Motor Driver HAT For Direct Drive Servo Hub Motors For Raspberry Pi Product Tutorial Catalog How to use host device DeepsSeek XiaoZhi AI Voice Chat ESP32-S3 1.54 inch LCD Kit N16R8 WROOM-1-N16R8 DevKitC-1 Development Board Raspberry Pi IR Array Thermal Imaging Camera Far infrared 80×62 Pixels 45/90 Degree FOV Raspberry Pi 7 inch QLED Quantum Dot Display 1024x600 Capacitive Touchscreen For Computer PC/Jetson/Game Raspberry-Pi-Pico-W-webserver Raspberry Pi 5 LuckFox Pico ESP32 C3 1.44inch LCD Raspberry Pi 5 Case RP2040 Camera 1.3inch LCD RP2040-PiZero Game ST7789 Raspberry Pi Pico LCD Display Screen 0.99inch Sensor Development Board ADXL354CZ EVAL BOARD NVIDIA Jetson Orin Nano/NX PoE Mini Expansion Board Power over Ethernet RJ45 802.3af compliant Raspberry Pi Touch Display 2 Official Original Capacitive TouchScreen 7 inch LCD TFT 720x1280 NVIDIA Jetson Orin Nano Developer Kit Official Original 8GB AI 40Tops For Embedded and Edge Systems RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel Milk-V Duo