1. Home
  2. Docs
  3. Cameras for Raspberry Pi
  4. Motorized Focus Camera

Motorized Focus Camera

Introduction

  • The standard pi camera is fixed focus lens, some of them are glued which can not be adjust by users, and some of them are not glued which can be adjust the lens focus manually. But in certian circumstance, you want to programmably control the focus distance remotely where the device can not be reached. The ArduCAM team now designed motorized control focus 5MP and 8MP camera module for Raspberry Pi series boards to address this problem.

Features

  • High-Definition video camera for Raspberry Pi Model A/B/B+ and Raspberry Pi 2 Pi 3B, Pi 3B+ and Pi Zero
  • 5MP OV5647 or 8MP IMX219 sensor with motorized focus lens
    Integral IR filter
  • Angle of View: 54 x 41 degrees
  • Field of View: 2.0 x 1.33 m at 2 m
  • Full-frame SLR lens equivalent: 35 mm
  • Focus distance: 4 cm to infinity
  • Size: 25 x 24 mm
  • 15 cm flat ribbon cable to 15-pin MIPI Camera Serial Interface (CSI) connector

Hardware Setup

Focus MotorRaspberryPi
SDASDA.1 (BCM:2)
SCLSCL.1 (BCM:3)
Motor Focus Camera Hardware Setup

Software User Guide

Arducam has release three demos Motorized_Focus_Camera_Preview.py, Motorized_Focus_Camera_Snapshot.py and Autofocus.py

  • Preparation
  • sudo raspi-config
  • Choose Interfacing Options
  • Enable the Camera and i2c
  • Demo Function
  • Motorized_Focus_Camera_Preview.py
  • This demo support focusing in preview mode, You can see the focus visually
    Single focus by keyboard up and down
    Run this demo is very easy , just input the “sudo python Motorized_Focus_Camera_Preview.py” in the terminal.
  • Motorized_Focus_Camera_snapshot.py
  • This demo support focusing and save the image to the local filesystem. You can save the image after each focus.
    Single focus by keyboard up and down
    Run this demo is very easy , just input the “sudo python Motorized_Focus_Camera_snapshot.py” in the terminal.
  • Autofocus.py
  • Before running this demo, you have to install Python Dependency libraries.
    sudo apt-get install python-opencv
    Then run the demo by inputing the “sudo python Autofocus.py” in the terminal.

Demo Video

Was this article helpful to you? Yes No