New updated OV7670 OV7725 module effect display OV7670 FPC version 300,000 megapixel CMOS module compatible with the official brother convenient FPGA stm32f407 68013 and other uses

Source: Internet
Author: User

Original ov7670,30w pixel camera module,

3) Optical size 1/6, pixel area 3.6μm x 3.6μm, sensitivity 1.3v/lux-sec

4) Operating voltage: 3.3V

5) The interface is defined as the 10*2 2.54 spacing pin.

Demo effect with USB capture Board card

Reference initialization code:

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) * = 25mhz*4/[(x+1) * *]
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);
}

Joint Blog Technical Exchange (you can learn about our blogs and exchanges in the following ways)

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 Exchange Group: Layer Waves 26210916

Radiation Protection Exchange Group 224673609

Baidu Cloud Disk data download

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

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

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

New updated OV7670 OV7725 module effect display OV7670 FPC version 300,000 megapixel CMOS module compatible with the official brother convenient FPGA stm32f407 68013 and other uses

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.