Skip to content
Merged
Show file tree
Hide file tree
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Display Camera Feed on GIGA Display Shield with OpenMV
description: Learn how to connect a OV7675 camera module and send the frames directly to the display, using the OpenMV platform.
author: Karl Söderby
tags: [OV7675, OpenMV, Camera, Display]
---

The [GIGA Display Shield](https://store.arduino.cc/products/giga-display-shield) has a camera connector which is extended from the [GIGA R1 WiFi](https://store.arduino.cc/products/giga-r1-wifi) board. The inexpensive 20 pin [OV7675](https://store.arduino.cc/products/arducam-camera-module) camera module can be directly mounted without any other circuitry, and using the OpenMV platform, we can directly display the camera feed on the display, at a framerate of about 15~ FPS.

In this guide, you will learn how to set up your [OV7675](https://store.arduino.cc/products/arducam-camera-module) camera module with the GIGA R1 WiFi / GIGA Display Shield, using the OpenMV platform.

***Note that the OpenMV IDE includes the firmware and the script for this guide. There is no need for any other external tools.***

## Hardware & Software Needed

- [Arduino GIGA R1 WiFi](https://store.arduino.cc/products/giga-r1-wifi)
- [Arduino GIGA Display Shield](https://store.arduino.cc/products/giga-display-shield)
- [OV7675 camera module](https://store.arduino.cc/products/arducam-camera-module)
- [OpenMV](https://openmv.io/pages/download) (`v4.1.1` and above).

## Hardware Setup

1. Mount the GIGA Display Shield on the back side of the GIGA R1 WiFi.
2. Mount the OV7675 camera module to the camera connector just above long side of the display.

## OpenMV Setup

The **OpenMV IDE** includes all tools necessary for flashing your board with the right firmware, as well as the script needed to run the application.

1. Download and install the [OpenMV IDE](https://openmv.io/pages/download).
2. Launch the editor, and connect your board to your computer. In the bottom left corner of the editor, click the "Connect" button. The editor should detect your board, and prompt you to install the latest firmware available.
![Install the firmware](assets/connect-firmware.png)
3. Run the installation, but be aware that this will erase any existing sketch on your board. Wait until it is finished (do not disconnect the board). This can take up to a minute.
***Note that when installing the OpenMV firmware, your GIGA R1 WiFi board will no longer be detected in the Arduino IDE. To go back to "Arduino mode", simply double tap the reset button on the board, and it will be recognized.***
4. Once complete, you will need to run a script to see the camera feed. In the OpenMV IDE, navigate to **File > Examples > Display > display.py**.
![Choose the display.py example.](assets/select-example.png)
5. Click the "Play" button to launch the script. You should now see the camera feed on the GIGA Display Shield.
![Click "Play" button to launch script.](assets/launch-script.png)

Congratulations, you have now set up GIGA R1 WiFi board to stream camera sensor data to the GIGA Display Shield!

The image below demonstrates how the setup should look like when complete.

![Final setup.](assets/camera-feed.png)


## Code Example

The full script for this guide can be copied from below:

<CodeBlock url="https://github.com/openmv/openmv/blob/master/scripts/examples/50-Arduino-Boards/Giga-H7/51-Display/display.py" className="arduino"/>