Skip to content

Commit 9752efb

Browse files
committed
Reduce OV5640 drive strength
Similar to the HM01B0, too high drive strength seems to result in degraded signal integrity, which is not visible with an oscilloscope due to the additional capacitance on the line. The default drive strength was set to the max (4x), which was causing bytes to sometimes be missed with the OV5640. Reducing to 2x seems to be much more stable now, and still sufficiently strong to get a clean eye pattern on the D0 pin while an HDMI cable is connected with the RP2350 RedBoard.
1 parent a6a06b9 commit 9752efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

red_vision/cameras/ov5640.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class OV5640(DVP_Camera):
417417
# io direction
418418
0x3017, 0xFF,
419419
0x3018, 0xFF,
420-
_DRIVE_CAPABILITY, 0xC3,
420+
_DRIVE_CAPABILITY, 0x43, # 2x drive strength
421421
_CLOCK_POL_CONTROL, 0x21,
422422
0x4713, 0x02, # jpg mode select
423423
_ISP_CONTROL_01, 0x83, # turn color matrix, awb and SDE

0 commit comments

Comments
 (0)