Send data from OpenMV Camera to PC

Discussion related to "under the hood" OpenMV topics.
ExTi0p
Posts: 3
Joined: Sun Feb 11, 2018 1:37 pm

Send data from OpenMV Camera to PC

Postby ExTi0p » Sun Feb 11, 2018 1:44 pm

Hi, I've been looking for an answer for some time, maybe I did search wrong but here I am.
I'm looking to send data from my OpenMV Camera to my PC via USB. The data that I want to send is coordinates of detected circles with a custom find_circles.py program. I want then, send strings.

I heard of the possibly FTDI usb solution as the connected USB channel is dedicated for the OpenMV IDE (which I am using by the way) but it's very blurred to me.

Thanks for reading it and hopefully you have an answer to my problem.
Last edited by ExTi0p on Sun Feb 11, 2018 2:01 pm, edited 1 time in total.
User avatar
kwagyeman
Posts: 2116
Joined: Sun May 24, 2015 2:10 pm

Re: Send data from OpenMV Camera to PC

Postby kwagyeman » Sun Feb 11, 2018 1:48 pm

You can do this but the OpenMV Cam only has one serial port to the PC which OpenMV IDE uses for debugging the camera. So, if you want to use the IDE and a serial port to the PC you need to add an FTDI chip to the device and use the hardware UART to send data back to the PC. Once you're done debugging you can remove this and switch to using the USB VCP serial port without OpenMV IDE.
Nyamekye,
ExTi0p
Posts: 3
Joined: Sun Feb 11, 2018 1:37 pm

Re: Send data from OpenMV Camera to PC

Postby ExTi0p » Sun Feb 11, 2018 2:26 pm

Very well, thanks for this very swift answer, I'll try it out and let you know.
ExTi0p
Posts: 3
Joined: Sun Feb 11, 2018 1:37 pm

Re: Send data from OpenMV Camera to PC

Postby ExTi0p » Tue Feb 13, 2018 2:14 pm

I got through my problem. I used the main as expected, running a detecting script and only by printing the data I wanted to get I was able to get this data with the serial.Serial().readline() through my USB port.

Went all ok then. Thanks again and have a nice evening.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests