Functional advice: add UVC in P0 and P1

Discussion related to "under the hood" OpenMV topics.
kidswong999
Posts: 33
Joined: Sun Apr 02, 2017 1:12 pm

Functional advice: add UVC in P0 and P1

Postby kidswong999 » Mon Sep 10, 2018 7:46 am

The STM32F7/H7 has two USB ports, one is FS with PHY, which is now used for programming; the other is HS, although there is no HS PHY, but there is also a built-in FS PHY.

P0 and P1 pins are HS USB pins, so, we can use the P0 and P1 pins to implement another USB device, such as a UVC camera.

We can implement a USB_UVC python module to handle the UVC protocol.

If this is done, we can think of OpenMV as a normal USB camera. We can view it on the PC/Raspberry Pi, or call it in matlab, or in Python. OpenMV4 H7 has global shutter sensor, a global shutter UVC camera is also attractive!

:D
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: Functional advice: add UVC in P0 and P1

Postby kwagyeman » Mon Sep 10, 2018 12:59 pm

Hmm, yeah, this could likely be done with the current USB port. The issue is a lack of hardware support on the ST chip for more than two endpoints. That said, we could make a new python method that turns the camera into a UVC device and drops the flash device on the board to free up an endpoint.

If folks want that feature we'll do it. It's quite possible. I've seen ST code for doing this type of stuff lying around too.
Nyamekye,
User avatar
kwagyeman
Posts: 2462
Joined: Sun May 24, 2015 2:10 pm

Re: Functional advice: add UVC in P0 and P1

Postby kwagyeman » Mon Sep 10, 2018 1:17 pm

Actually, the STM32H7 has more endpoint than the F7. This may be possible without dropping any features.
Nyamekye,
kidswong999
Posts: 33
Joined: Sun Apr 02, 2017 1:12 pm

Re: Functional advice: add UVC in P0 and P1

Postby kidswong999 » Tue Sep 11, 2018 1:59 am

Sounds good.

What I originally meant was to design an expansion board that pulls out the USB ports of the P0 and P1 pins.

But if H7 can directly use the current USB port to achieve UVC, it is also very good.
:D

Return to “Technical Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests