Template: Ir-cut camera
The IMx290-83 IR-CUT Camera is a starlight camera for the Raspberry Pi board and module series. Using a Sony IMX290 starlight sensor with 2 million pixels, onboard IR-CUT, it can freely switch the modes between daytime (RGB) and nighttime (monochrome) through the onboard button.
To test the Raspberry Pi camera, you need to connect an HDMI screen or a DSI screen to the Raspberry Pi
The interfaces of the CSI (camera) and DSI (display) on the Raspberry Pi board are similar, so be careful not to connect them wrongly when wiring. The CSI interface is between the audio interface and the HDMI interface, and the camera interface of the Raspberry Pi Zero series is next to the Power interface. If you are using a computing module, you must refer to the specific layout of the backplane.
- Connect to Raspberry Pi Zero series
- Other Raspberry Pi motherboards
About the model
|Camera Sensor||Supported Board||Supported driver type|
|OV5647||All Raspberry Pi boards||libcamera / Raspicam|
|OV9281||All Raspberry Pi boards||libcamera|
|IMX219 (Raspberry Pi official)||All Raspberry Pi boards||libcamera / Raspicam|
|IMX219 (the third party)||Compute Module series only||libcamera|
|IMX290/ IMX327||All Raspberry Pi boards||libcamera|
|IMX378||All Raspberry Pi boards||libcamera|
|IMX477 (Raspberry Pi official)||All Raspberry Pi boards||libcamera / Raspicam|
|IMX477 (the third party)||Compute Module series only||libcamera|
|IMX519||All Raspberry Pi boards||libcamera (Install another driver)|
Enable Camera Interface
If you are using the latest bullseye image, the camera interface has been enabled by default, so you can skip the modification steps.
- Open the Raspberry Pi terminal and use the command to enter the setting interface
- Set up the camera
Select Interface Options -> Camera -> Yes -> Finish -> Yes
- Reboot the Raspberry Pi
Test Camera (Bullseyes)
If you use OV9281, IMX290, IMX378, or non-Raspberry Pi official IMX219 and IMX477 cameras, you need to configure the config.txt file separately.
sudo nano /boot/config.txt
Find "camera-auto-detect=1" and modify it to "camera_auto_detect=0".
At the end of the file, add the following setting statements according to the camera model.
- Open the Raspberry Pi terminal and enable the camera preview
sudo libcamera-hello -t 0
If you want to close the preview window, you can directly combine the keys Alt-F4, or click x to close. You can also go back to the terminal interface and terminate the program with ctrl-c.
Test Camera (Buster)
Open the Raspberry Pi terminal and enable the camera preview:
sudo raspistill -t 0
If you want to close the preview window, you can terminate the program with ctrl-c.