Difference between revisions of "Template:RPI Camera Quick Start"

From Waveshare Wiki
Jump to: navigation, search
(Created page with "==Hardware Connection== <font color=red>'''To test the Camera, you need to connect a HDMI display or a DIS display for previewing.'''</font> <br /> The connectors of the DSI...")
 
Line 1: Line 1:
 +
==Camera configuration==
 +
If you use the official V1 camera (ov5647), V2 camera (IMX219), and the HQ camera (IMX477),
 +
you can just plug in the camera and play. <br />
 +
If you use third-party cameras, the support camera size is as below:
 +
{|class="list"
 +
! Camera Sensor !! Supported Board !! Configuration
 +
|-
 +
| OV5647 || A full range of Raspberry Pi boards || Default setting or <br /><font color=gray> dtoverlay=ov5647 </font>
 +
|-
 +
| IMX219 || Compute Module series only || default setting or <br />  <font color=gray>dtoverlay=imx219</font>
 +
|-
 +
| IMX290 and IMX327 || A full range of Raspberry Pi Boards
 +
| <font color=gray>dtoverlay=imx290,clock-frequency=74250000 </font> or  <br /> <font color=gray>dtoverlay=imx290,clock-frequency=37125000 </font>
 +
|-
 +
| IMX378 || A full range of Raspberry Pi boards || <font color=gray>dtoverlay=imx378</font>
 +
|-
 +
| IMX477 ||Compute Module series only|| default setting or <br /> <font color=gray>dtoverlay=imx477</font>
 +
|-
 +
| OV9281 || A full range of Raspberry Pi boards || <font color=gray>dtoverlay=ov9281</font>
 +
|}
 +
To override the automatic camera detection, Bullseye users will also need to delete the entry or change it to value 0.
 +
<pre>
 +
camera_auto_detect=1
 +
</pre>
 
==Hardware Connection==
 
==Hardware Connection==
 
<font color=red>'''To test the Camera, you need to connect a HDMI display or a DIS display for previewing.'''</font> <br />
 
<font color=red>'''To test the Camera, you need to connect a HDMI display or a DIS display for previewing.'''</font> <br />
Line 4: Line 28:
 
The connectors of the DSI interface (display) and the CSI interface (camera) look the same, please take care of it when you connect the camera. The CSI interface is placed between the Audio jack and the HDMI port. the CSI connector of Pi zero is beside the Power interface. If you use Compute Module, please check the actual place of the carrier board.  
 
The connectors of the DSI interface (display) and the CSI interface (camera) look the same, please take care of it when you connect the camera. The CSI interface is placed between the Audio jack and the HDMI port. the CSI connector of Pi zero is beside the Power interface. If you use Compute Module, please check the actual place of the carrier board.  
 
*Connect ot Pi Zero Series
 
*Connect ot Pi Zero Series
: The metal surface of the flexible cable is downward, then connect it to the CSI interface.
+
: The metal surface of the flexible cable is downward, then connect to the CSI interface.
 
:[[File:RPi_Camera_Connect_Zero.png|500px]]
 
:[[File:RPi_Camera_Connect_Zero.png|500px]]
 
*Other Raspberry Pi boards
 
*Other Raspberry Pi boards
: The metal surface of the flexible cable is toward the HDMI interface, then connect it to the CSI interface.
+
: The metal surface of the flexible cable is toward the HDMI interface, then connect to the CSI interface.
 
:[[File:RPi_Camera_Connect_Pi4.png|500px]]
 
:[[File:RPi_Camera_Connect_Pi4.png|500px]]
 
==Enable the Camera==
 
==Enable the Camera==

Revision as of 06:48, 2 March 2022

Camera configuration

If you use the official V1 camera (ov5647), V2 camera (IMX219), and the HQ camera (IMX477), you can just plug in the camera and play.
If you use third-party cameras, the support camera size is as below:

Camera Sensor Supported Board Configuration
OV5647 A full range of Raspberry Pi boards Default setting or
dtoverlay=ov5647
IMX219 Compute Module series only default setting or
dtoverlay=imx219
IMX290 and IMX327 A full range of Raspberry Pi Boards dtoverlay=imx290,clock-frequency=74250000 or
dtoverlay=imx290,clock-frequency=37125000
IMX378 A full range of Raspberry Pi boards dtoverlay=imx378
IMX477 Compute Module series only default setting or
dtoverlay=imx477
OV9281 A full range of Raspberry Pi boards dtoverlay=ov9281

To override the automatic camera detection, Bullseye users will also need to delete the entry or change it to value 0.

camera_auto_detect=1

Hardware Connection

To test the Camera, you need to connect a HDMI display or a DIS display for previewing.

The connectors of the DSI interface (display) and the CSI interface (camera) look the same, please take care of it when you connect the camera. The CSI interface is placed between the Audio jack and the HDMI port. the CSI connector of Pi zero is beside the Power interface. If you use Compute Module, please check the actual place of the carrier board.

  • Connect ot Pi Zero Series
The metal surface of the flexible cable is downward, then connect to the CSI interface.
RPi Camera Connect Zero.png
  • Other Raspberry Pi boards
The metal surface of the flexible cable is toward the HDMI interface, then connect to the CSI interface.
RPi Camera Connect Pi4.png

Enable the Camera

If you use the newest Bullseye version Raspberry Pi OS, the camera interface is enabled by default, and you can just skip this part.

  • Open a terminal and enter the configuration page by the following command
sudo raspi-config
  • Enable Camera Interface
Choose Interface Options -> Camera -> Yes -> Finish -> Yes
  • Reboot raspberry Pi

Test Camera(Bullseyes OS)

Open a terminal and test the camera with the following command:

sudo libcamera-hello -t 0

If you need to close the preview windows, you can use Alt-F4 or click the exit icon, or you can go back to the terminal and use ctrl-c to stop the application.

Test Camera(Buster OS)

Open a terminal and test the camera with the following command:

sudo raspistill -t 0

If you want to close the preview windows, you can use ctrl-C to stop the appliation.