Skip to content

[GIGA Display Shield] Camera compatability #1398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The GIGA Display Shield comes with an Arducam® camera connector. In this tutori
- [Arduino GIGA R1 WiFi](https://store.arduino.cc/products/giga-r1-wifi)
- [Arduino GIGA Display Shield](https://store.arduino.cc/products/giga-display-shield)
- [Arduino IDE](https://www.arduino.cc/en/software)
- HM01B0, HM0360 or GC2145 camera
- HM01B0, HM0360, GC2145 or OV7675 camera

## Downloading the Library and Core

Expand All @@ -29,6 +29,7 @@ The GIGA Display Shield is compatible with the following cameras:
- [HM01B0](https://www.arducam.com/product/hm01b0-qvga-monochrome-dvp-camera-module-for-arduino-giga-r1-wifi-board/)
- [HM0360](https://www.arducam.com/product/hm0360-vga-monochrome-dvp-camera-module-for-arduino-giga-r1-wifi-board/)
- [GC2145](https://www.arducam.com/product/2mp-gc2145-color-dvp-camera-module-for-arduino-giga-r1-wifi-board/)
- [OV7675](https://store.arduino.cc/products/arducam-camera-module)

Connect the camera to the connector on the front of the display shield as shown in the image below.

Expand All @@ -42,7 +43,22 @@ Open the example sketch by going to **File > Examples > Camera > GigaCameraDispl

![Opening the example sketch in the Arduino IDE](assets/ide-example.svg)

Whichever of the compatible cameras you are using the sketch will include libraries and definitions for them all, meaning no modification to the sketch is necessary to get it working. The sketch will capture frames into the framebuffer and then print a live camera feed to the display.
Whichever of the compatible cameras you are using the sketch will include libraries and definitions for them all, meaning only one line needs to be changed depending on what camera you will be using. The line that needs to be changed is this one:

```arduino
#define ARDUCAM_CAMERA_HM01B0
```

Depending on what camera you are using it should be changed accordingly:

- HM01B0: `#define ARDUCAM_CAMERA_HM01B0`
- HM0360: `#define ARDUCAM_CAMERA_HM0360`
- GC2145: `#define ARDUCAM_CAMERA_GC2145`
- OV7675: `#define ARDUCAM_CAMERA_OV7675`

The sketch will then capture frames into the framebuffer and print a live camera feed to the display.

***Note: make sure to connect/disconnect the camera when the board is powered off.***

```arduino
#include "arducam_dvp.h"
Expand Down