Skip to content

Commit d8fa353

Browse files
Merge pull request #1398 from arduino/benjamindannegard/display-shield-camera-tutorial-update
[GIGA Display Shield] Camera compatability
2 parents 0f76c4f + 791c8f1 commit d8fa353

File tree

1 file changed

+18
-2
lines changed
  • content/hardware/10.mega/shields/giga-display-shield/tutorials/08.camera-tutorial

1 file changed

+18
-2
lines changed

Diff for: content/hardware/10.mega/shields/giga-display-shield/tutorials/08.camera-tutorial/content.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The GIGA Display Shield comes with an Arducam® camera connector. In this tutori
1414
- [Arduino GIGA R1 WiFi](https://store.arduino.cc/products/giga-r1-wifi)
1515
- [Arduino GIGA Display Shield](https://store.arduino.cc/products/giga-display-shield)
1616
- [Arduino IDE](https://www.arduino.cc/en/software)
17-
- HM01B0, HM0360 or GC2145 camera
17+
- HM01B0, HM0360, GC2145 or OV7675 camera
1818

1919
## Downloading the Library and Core
2020

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

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

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

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

45-
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.
46+
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:
47+
48+
```arduino
49+
#define ARDUCAM_CAMERA_HM01B0
50+
```
51+
52+
Depending on what camera you are using it should be changed accordingly:
53+
54+
- HM01B0: `#define ARDUCAM_CAMERA_HM01B0`
55+
- HM0360: `#define ARDUCAM_CAMERA_HM0360`
56+
- GC2145: `#define ARDUCAM_CAMERA_GC2145`
57+
- OV7675: `#define ARDUCAM_CAMERA_OV7675`
58+
59+
The sketch will then capture frames into the framebuffer and print a live camera feed to the display.
60+
61+
***Note: make sure to connect/disconnect the camera when the board is powered off.***
4662

4763
```arduino
4864
#include "arducam_dvp.h"

0 commit comments

Comments
 (0)