Skip to content
Demonstration of interfacing the Nucleo STM32F446RE with a OV7670 camera module
C Assembly C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
inc
src Removed obsolete pinput, added serial camera tool Oct 24, 2015
startup
tools Removed obsolete pinput, added serial camera tool Oct 24, 2015
.cproject
.gitignore
.project
LinkerScript.ld Got SCCB comms working Oct 17, 2015
README.md
camera.png Added screenshot Oct 22, 2015

README.md

STM32F4 OV7670 Demo

Demonstration of interfacing the Nucleo STM32F446RE with a OV7670 camera module.

Screenshot

Building

To build the project you will also need to set up an Eclipse (OpenSTM32) workspace containing the stdperiph library. Except from this there are no external dependencies.

##Running it

After building and flashing the resulting elf file using openocd you can connect to the serial port of the device. Frames are continuously sent over the serial connection as they are captured by the camera.

To see the camera output you can use the SerialCamera.jar, found under the tools directory:

java -jar tools/SerialCamera.jar

Pinout

Since the STM32F's peripherals (Camera interface, I2C, etc) are only available on certain pins, it is important to use the correct ones.

DCMI

Digital Camera interface, used to read pixel data (on D0..D7).

Pin Function
PA4 HREF
PA6 PCLK
PB7 VSYNC
PC6 D0
PC7 D1
PC8 D2
PC9 D3
PC11 D4
PB6 D5
PB8 D6
PB9 D7

SCCB

Camera control interface based on I2C.

Pin Function
PB10 SIOC
PC12 SIOD

Other

Pin Function
PA8 MCO (Clock output)

##Credits

This project contains lots of code written by other (very awesome) developers.

You can’t perform that action at this time.