Working with Raspberry Pi
Hardware Connection
The images above are for demonstration purposes only. This product does not include the above mainboards or kits.
Software Environment Configuration and Testing
Update the System
To ensure the camera works properly, please use the latest version of the Raspberry Pi OS and run the following commands to update.
sudo apt-get update -y
sudo apt-get upgrade -y
If using only one camera, connect it to the CAM1 port.
Configure the config.txt File
-
Use the
nanotool to open and edit the/boot/firmware/config.txtfile.sudo nano /boot/firmware/config.txt -
Locate the line
camera-auto-detect=1and change it tocamera_auto_detect=0. -
At the end of the file, add the line
dtoverlay=imx477. If multiple cameras are connected, you can specify the cam0 or cam1 parameters, for example:dtoverlay=imx477,cam0dtoverlay=imx477,cam1 -
After configuration, save the file and reboot the system with
sudo reboot.
Test the Camera
- After rebooting, run
sudo rpicam-hello --list-camerasto check if the camera is detected. - With a display connected, you can preview the camera feed with
sudo rpicam-hello -t 0.
For more information about rpicam commands, please refer to Raspberry Pi Camera Tool Guide.
IR-CUT Filter Switching Control
This module supports both manual switch control and external GPIO control:

- Manual switch control (① in the figure): Manually switch the filter state using the onboard switch. IR-D is day mode. IR-N is night vision mode.
- External GPIO control (② in the figure): Connect the GPIO output of the host device to the
IR-GPIOinterface on the module. The host device switches to day mode by outputting a high level and to night mode by outputting a low level. DuPont wires can be used for the connection.
The module uses onboard switch control by default. When external GPIO control is connected, GPIO control takes priority over the onboard switch, and the filter state is determined by the GPIO input level.