Data Sheet

Camera datasheet v1
.
1
G840
-
00180
-
01
2 Autofocus interface
The camera supports one
-
shot autofocus and continuous autofocus modes
.
The sysfs node for autofocus is at
/sys/module/ov5645_camera_mipi_v2/parameters/ov5645_af
.
It reads back the
decimal representation of the status register in the autofocus hardware
,
as shown in table 2
.
To change the autofocus
mode
,
write one of the values shown in table 3
.
Table 2.
Autofocus read values from sysfs node
Read value
Description
0
(
0x00
)
Autofocus is running
.
16
(
0x10
)
Autofocus is complete
(
focused
).
32
(
0x20
)
Analyzing the image
.
This state occurs intermittently when attempting to reach focus
.
It occurs once
during one
-
shot autofocus mode before focus locks
,
and it is the steady state during continuous
autofocus mode
.
112
(
0x70
)
Idle
.
Focus is released and the lens is at its resting
(
furthest
)
position
.
Table 3.
Autofocus write values for sysfs node
Description
Turn o
autofocus
.
Enable one
-
shot autofocus mode
.
The camera will seek focus and then lock focus
.
(
It will analyze the
image once
,
and focus once
.)
Enable continuous autofocus mode
.
The camera will continuously seek focus
.
(
It will analyze the
image and focus
,
then continue to analyze the image and refocus when necessary
.)
For example
,
the following command enables continuous autofocous
:
echo 2 > /sys/module/ov5645_camera_mipi_v2/parameters/ov5645_af
Coral
.
ai
|
Copyright 2020 Google LLC
.
4