Home > other >  STM32 microcontroller connect USB camera
STM32 microcontroller connect USB camera

Time:09-27

As title, I have achieve STM32 connection based on Cypress CY7C68013A camera circuit board, concrete implementation principle is as follows:
Camera side CY7C68013A hardware circuit board connected to the application under test camera sensor module, circuit board to provide 3.3 v power supply for camera, configure initialization parameters for the sensor through the IIC bus and USB 2.0 high speed interface to transmit image data to the STM32 MCU, 迚 line shows that the USB camera supports multiple RAW image data stream format YUV, RGB565, etc., to support a variety of different sensor, tested sensor has 30 w ov7725 pixel resolution, 130 w mt9m001 pixel, pixels with 500 w autofocus ov5640, IIC here sensor parameter is via USB transfer configuration parameters to the CY7C68013A first, and then by the CY7C68013A will eventually through the IIC bus configuration data to the sensor, the advantage is can pass CY7C68013A flexible configuration on the STM32 microcontroller end all kinds of sensor, hardware connection configuration as shown:



This scheme on technical difficulties lies in the STM32 USB camera driver writing, STM32 official to code can't drive here has USB camera, the solution here is to write to transplant DWC - OTG driver, to fit the USB camera to transmit data for the USB communication of ultra-high speed and bandwidth requirements, on both sides of the USB data communication with the method of USB BULK block transmission, basically can do image data real-time transmission requirements, can satisfy the VGA resolution (640 x480) in 10 frame/S, QVGA (320 x240) in 30 frame/S, and resolution is less than the QVGA 60 frame/S request,

Support the camera Sensor list:



Debugging pictures of the connection is successful, development board is stm32f746 - discovery

  • Related