Cameras for Raspberry Pi

  1. Home
  2. Docs
  3. Cameras for Raspberry Pi
  4. ToF Camera for Raspberry Pi
  5. Getting Started with Arducam ToF Camera

Getting Started with Arducam ToF Camera

A quick step-by-step tutorial to help you jump-start your Machine Vision adventure with the Arducam ToF camera.

Note

Make sure you are running a newer version of Raspberry Pi OS, (04/04/2022 or later releases) a fresh install is highly recommended. 

Connecting the camera to Raspberry Pi

connecting raspberry tof camera to Raspberry Pi

Step 1. Install the camera driver

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p kernel_driver

When you see the reboot prompt, press y and then press enter to reboot.

Step 2. Pull the repository


git clone https://github.com/ArduCAM/Arducam_tof_camera.git

Step 3. Change the directory to Arducam_tof_camera

cd Downloads/Arducam_tof_camera

Step 4. Install dependencies

chmod +x Install_dependencies.sh
./Install_dependencies.sh

Raspberry Pi will automatically reboot.

Step 5. Change the directory to Arducam_tof_camera

cd Downloads/Arducam_tof_camera

Step 6. Compile & run

chmod +x compile.sh
./compile.sh

Once it’s successfully complied, live previews of the camera will automatically pop up.

Was this article helpful to you? Yes No