• 新更新的OV7670 OV7725模块效果展示 OV7670 FPC版 30万像素 CMOS模块 兼容官哥方便 FPGA stm32f407 68013等使用


    原创OV7670,30W像素摄像头模块,

    3) 光学尺寸1/6 ,像素面积3.6 μm x 3.6 μm,灵敏度1.3V/Lux-sec

    4) 工作电压:3.3V

    5) 接口定义为10*2的2.54间距排针。

    配合usb采集板卡演示效果

    参考初始化代码:

    void ov7725_init_rgbraw(void)
    {
    sccb_senddata(0x12,0x80); // BIT[7]-Reset all the Reg
    DelayMs(100);

    //Write Data Index
    sccb_senddata(0x3d, 0x03); //DC offset for analog process
    sccb_senddata(0x15, 0x02); //COM10: href/vsync/pclk/data reverse(Vsync H valid)
    sccb_senddata(0x17, 0x22); //VGA: 0x22; QVGA: 0x3f;
    sccb_senddata(0x18, 0xa4); //VGA: 0xa4; QVGA: 0x50;
    sccb_senddata(0x32, 0x00); //Bit[7]:Mirror image edge alignment
    sccb_senddata(0x29, 0xA0); //VGA: 0xA0; QVGA: 0xF0
    sccb_senddata(0x2C, 0xF0); //VGA: 0xF0; QVGA: 0x78
    sccb_senddata(0x0d, 0x41); //PLL 4x
    sccb_senddata(0x11, 0x01); //CLKRC,Finternal clock = Finput clk*PLL multiplier/[(CLKRC[5:0]+1)*2] = 25MHz*4/[(x+1)*2]
    //00: 50fps, 01:25fps, 03:12.5fps (50Hz Fliter)
    sccb_senddata(0x12, 0x03); //BIT[6]: 0:VGA; 1;QVGA
    //VGA: 00:YUV; 01:Processed Bayer RGB; 10:RGB; 11:Bayer RAW; BIT[7]-Reset all the Reg
    sccb_senddata(0x0c, 0x10); //COM3: Bit[6]:Horizontal mirror image ON/OFF, Bit[0]:Color bar; Default:0x10
    //DSP control
    sccb_senddata(0x42, 0x7f); //BLC Blue Channel Target Value, Default: 0x80
    sccb_senddata(0x4d, 0x09); //BLC Red Channel Target Value, Default: 0x80
    sccb_senddata(0x63, 0xf0); //AWB Control
    sccb_senddata(0x64, 0xff); //DSP_Ctrl1:
    sccb_senddata(0x65, 0x00); //DSP_Ctrl2:
    sccb_senddata(0x66, 0x00); //{COM3[4](0x0C), DSP_Ctrl3[7]}:00:YUYV; 01:YVYU; [10:UYVY] 11:VYUY
    sccb_senddata(0x67, 0x02); //DSP_Ctrl4:[1:0]00/01: YUV or RGB; 10: RAW8; 11: RAW10


    //matrix sharpness brightness contrast UV
    sccb_senddata(0x90, 0x0a);
    sccb_senddata(0x91, 0x01);
    sccb_senddata(0x92, 0x01);
    sccb_senddata(0x93, 0x01);
    sccb_senddata(0x94, 0x5f);
    sccb_senddata(0x95, 0x53);
    sccb_senddata(0x96, 0x11);
    sccb_senddata(0x97, 0x1a);
    sccb_senddata(0x98, 0x3d);
    sccb_senddata(0x99, 0x5a);
    sccb_senddata(0x9a, 0x1e);
    sccb_senddata(0x9b, 0x3f); //Brightness
    sccb_senddata(0x9c, 0x25);
    sccb_senddata(0x9e, 0x81);
    sccb_senddata(0xa6, 0x06);
    sccb_senddata(0xa7, 0x65);
    sccb_senddata(0xa8, 0x65);
    sccb_senddata(0xa9, 0x80);
    sccb_senddata(0xaa, 0x80);

    //Gamma correction
    sccb_senddata(0x7e, 0x0c);
    sccb_senddata(0x7f, 0x16); //
    sccb_senddata(0x80, 0x2a);
    sccb_senddata(0x81, 0x4e);
    sccb_senddata(0x82, 0x61);
    sccb_senddata(0x83, 0x6f);
    sccb_senddata(0x84, 0x7b);
    sccb_senddata(0x85, 0x86);
    sccb_senddata(0x86, 0x8e);
    sccb_senddata(0x87, 0x97);
    sccb_senddata(0x88, 0xa4);
    sccb_senddata(0x89, 0xaf);
    sccb_senddata(0x8a, 0xc5);
    sccb_senddata(0x8b, 0xd7);
    sccb_senddata(0x8c, 0xe8);
    sccb_senddata(0x8d, 0x20);
    }

    联合博客技术交流(您可以通过以下方式了解,关注我们的博客和交流)

    http://blog.chinaaet.com/shenyae86 

    http://www.openedv.com/posts/list/58978.htm

    http://www.cnblogs.com/ccjt/

    http://blog.sina.com.cn/u/5625282126

    http://xinanhejishu.blog.163.com/

    QQ交流群:层层惊涛 26210916

    辐射防护交流群 224673609

    百度云盘资料下载

    http://yun.baidu.com/s/1kThKzaf

    http://yun.baidu.com/s/1c0SKEC4

    http://yun.baidu.com/s/1mgVml3i

  • 相关阅读:
    Ubuntu “Failed to fetch”错误的解决方法
    #ifndef 与#pragma once
    vs TODO list使用
    window脚本编写bat程序执行
    vtk 的qt插件编译
    git bash 下载加速
    条件欧几里得聚类 pcl::ConditionalEuclideanClustering
    ANY数据类型的使用
    《C#编程风格》还记得多少
    驼峰命名法则
  • 原文地址:https://www.cnblogs.com/ccjt/p/5024443.html
Copyright © 2020-2023  润新知