双目摄像头使用测试
一、实验目的
Double_OV5640 双目摄像头模组采集视频,通过 HDMI 输出到外部显示器。
二、实验设计
-
OV5640 寄存器配置
FPGA 通过 I2C 接口配置 OV5640,在实验例程中已将 OV5640 配置成 720P@30 RGB565 格式 输出,大家可直接例化使用,关于寄存器配置,如想了解更多配置寄存器信息,可参考 OV5640 数据手册。
· 选择 RGB

· 选择 RGB565

2. OV5640 的 RGB565 格式
摄像头输出的像素格式是 8bit RAW,所以 2 个 RAW 像素合成 1 个 16bit RGB565 像素。

3. 设计框图

cmos_8_16b:将 cmos 的 8bit 数据拼成 16bit 数据;
fram_buf:DDR 读写控制;
sync_vg:产生 visa 时序;
ms72xx_ctl:配置 HDMI PHY;
三、实验现象
步骤 1:按图所示,连接 Double_OV5640 双目摄像头模组,HDMI 显示器。

注 1:实验例程请配合“小眼睛半导体”出品的 Double_OV5640 双目摄像头模组使用;
注 2:注意摄像头方向,插反或错位可能会损坏摄像头或开发板;
注 3:输出视频格式为 720P@30,部分屏幕不支持。
步骤 2:

打开工程顶层文件:hdmi_ddr_ov5647_top,二选一作为视频源输入,重新编译生成 sbit。demo 已生成两种视频源的 sbit,大家可直接下载,观察实验现象。

步骤 3:
连接HDMI 显示器、Double_OV5640 双目摄像头,将sbit 下载到开发板中,实验现象如下:

LED 指示:


更多实验教程敬请关注!

|