UDP IP Camera Demo

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Demos > Standard Peripherals Demos > DCMI >

UDP IP Camera Demo

Previous pageReturn to chapter overviewNext page

demo File: target_udpcam_demo.mdl

Build and program the demo model below to target board.


(1) Ethernet Link Setup

This block is for setup MII interface, for Ethernet device.

(2) Ethernet Application Setup

This block will include lwIP TCP/IP stack into the build, IP configuration for target board. In this demo, IP is and Gate way is  The IP is static and must be change to meet network requirement.

(3) Block: MCO

This block is for supply the clock to camera via MCU pin PA8. The clock is HSE 8MHz.

(4) Block: I2C Master Setup

We need I2C bus interface to setting the DCMI camera register (picture size, camera clock, etc..). This demo use I2C1 pin B7/B6 for SDA and SCL.

(5) Volatile Data Array

This block define the storage data for storing image from camera. In this demo, pixel type is RGB556 (which is 16bits) so we define uint16 for a pixel and size is 160*120.

(6) Camera OV7670

This is mask subsystem, it I2C blocks for init camera and DCMI block for Capture data. To open the subsystem, right-click and select Look Under Mask.



(7) UDP Stream

Send the Data from buffer to the specified destination IP and Port. For this demo, destination IP is: and port7.


Hardware connection


Running the simulation demo model to receive picture from UDP.

demo file: host_udpcam_demo.mdl