Demonstration of interfacing the Nucleo STM32F446RE with a OV7670 camera module.
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
Since the STM32F's peripherals (Camera interface, I2C, etc) are only available on certain pins, it is important to use the correct ones.
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 |
Camera control interface based on I2C.
Pin | Function |
---|---|
PB10 | SIOC |
PC12 | SIOD |
Pin | Function |
---|---|
PA8 | MCO (Clock output) |
##Credits
This project contains lots of code written by other (very awesome) developers.