0

I am working on OV7670 Camera Sensor with Arduino uno board, it is work ok in VGA mode , but images capture in black and white mode, i tried to find tutorial for set RGB mode for capture images bat i can't find anything I used this tutorial but it only show how to capture VGA mode images, not explain how to capture coloured images

I used this function for capture RGB images but it is not working. Can you help suggest why?

static const struct regval_list rgb565_ov7670[] PROGMEM = {
  { REG_COM7, 0x14 }, /* Selects RGB mode */
  { REG_RGB444, R444_ENABLE },  /* Enable xxxxrrrr ggggbbbb */
  { REG_COM1, 0x0 },  /* CCIR601 */
  { REG_COM15, 0x10 }, /* Data range needed? */
  { REG_COM9, 0x38 },   /* 16x gain ceiling; 0x8 is reserved bit */
  { 0x4f, 0xb3 },   /* "matrix coefficient 1" */
  { 0x50, 0xb3 },   /* "matrix coefficient 2" */
  { 0x51, 0    },   /* vb */
  { 0x52, 0x3d },   /* "matrix coefficient 4" */
  { 0x53, 0xa7 },   /* "matrix coefficient 5" */
  { 0x54, 0xe4 },   /* "matrix coefficient 6" */
  { REG_COM13, COM13_GAMMA|COM13_UVSAT|0x2 },  /* Magic rsvd bit */
  { 0xff, 0xff },
};

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.