90 of 95
Reference Manual ATOM one SSM500
18 Lens Drive Unit
The following commands control the external lens drive unit (if attached).
18.1 lens_setup <address> <chipID> <lensFeatures> <focusNr>
<zoomNr> <irisNr> <filterNr> <focusFeatures> <zoomFeatures>
<irisFeatures> <filterFeatures>
The
lens_setup
command configures the camera to find the connected motor controller.
The main idea is that there is a lens drive unit connected to the camera, that has a number
of motors.
To determine which motor moves the iris, or the focus, the “Nr” parameters point to the
motor that moves the according function. This approach is used to make the lens drive unit
as flexible as possible.
Parameter
Description
address
I2c address of the motor controller, ranges from 0x20 (32)
to 0x2F (47).
chipID
the built-in chip id of the motor controller. This is used to
determine the correct device on the i2c bus, ranges from 0
to 255 (check motor driver manual).
lensFeatures
This parameter shows which motor in the motor controller
is active.
[bit0] = 1: Motor 1 is active
[bit1] = 1: Motor 2 is active
[bit2] = 1: Motor 3 is active
[bit3] = 1: Motor 4 is active
The parameter is the resulting decimal number.
focusNr
Determines which motor moves the focus. Range: [0…3]. If
the motor controller has no focus movement, use the
number of a unused motor.
zoomNr
Determines which motor moves the zoom. Range: [0…3]. If
the motor controller has no zoom movement, use the
number of a unused motor.
irisNr
Determines which motor moves the iris. Range: [0…3]. If
the motor controller has no iris movement, use the number
of a unused motor.
filterNr
Determines which motor moves the filter. Range: [0…3]. If
the motor controller has no focus movement, use the
number of a unused motor.
focusFeatures
Determines the features of the motor:
[bit0] = 1: position control (mandatory if motor active)
[bit1] = 1: speed control
[bit2] = 1: step mode control