usage

Discussion related to "under the hood" OpenMV topics.
pcls1026
Posts: 68
Joined: Tue Aug 22, 2017 1:33 am

usage

Postby pcls1026 » Mon Nov 05, 2018 12:30 pm

Hi,
I want to run the CAM7 without using the openmv IDE. Do you have a schematic for providing power, or is it just VDD and GND?

My software will be running in a loop waiting for a message from UART1. The CAM7 software takes picture/image, does an analysis on the image, calculates distance to a target in the image, sends the distance value via UART1 to a Microchip processor. The CAM7 software will return to looping and wait for another UART 1 message.

Do you have a schematic for hooking up the CAM7 UART1 to the Microchip UART, or is it just rcv-txmt to txmt-rcv?

Jim
pcls1026
Posts: 68
Joined: Tue Aug 22, 2017 1:33 am

Re: usage

Postby pcls1026 » Mon Nov 05, 2018 1:24 pm

This is PCLS1026 again.

I am assuming that the UART is read by using polling and not interrupts. Is that true?

Jim
User avatar
iabdalkader
Posts: 593
Joined: Sun May 24, 2015 3:53 pm

Re: usage

Postby iabdalkader » Mon Nov 05, 2018 2:26 pm

Hi, TX-> RX and RX-> TX as usual. And yes, UART is read using polling.
pcls1026
Posts: 68
Joined: Tue Aug 22, 2017 1:33 am

Re: usage

Postby pcls1026 » Mon Nov 05, 2018 4:25 pm

Thanks for the quick reply.
pcls1026
Posts: 68
Joined: Tue Aug 22, 2017 1:33 am

Re: usage

Postby pcls1026 » Mon Nov 05, 2018 6:21 pm

What about power? do I need Caps or Resistors?
User avatar
iabdalkader
Posts: 593
Joined: Sun May 24, 2015 3:53 pm

Re: usage

Postby iabdalkader » Mon Nov 05, 2018 7:08 pm

pcls1026 wrote:
Mon Nov 05, 2018 6:21 pm
What about power? do I need Caps or Resistors?
No, just provide 5V to VIN.
pcls1026
Posts: 68
Joined: Tue Aug 22, 2017 1:33 am

Re: usage

Postby pcls1026 » Tue Nov 06, 2018 12:12 pm

Me again,
Can I power the CAM7 using a power only USB cable? If I can use the USB power, is there any problem with the CAM7 ground being common with the Microchip ground?
Jim
User avatar
kwagyeman
Posts: 2387
Joined: Sun May 24, 2015 2:10 pm

Re: usage

Postby kwagyeman » Tue Nov 06, 2018 12:17 pm

Yup, you can do that and there won't be a problem. Keep in mind however that large GND currents can build up so don't do this is a dry environment or there will be large static shocks.
Nyamekye,
pcls1026
Posts: 68
Joined: Tue Aug 22, 2017 1:33 am

Re: usage

Postby pcls1026 » Tue Nov 06, 2018 2:56 pm

Thanks again,
I have another question.
If I am running the CAM7 in the IDE, can the CAM7 read and write a UART message from and to the Microchip processor ?
Jim
User avatar
kwagyeman
Posts: 2387
Joined: Sun May 24, 2015 2:10 pm

Re: usage

Postby kwagyeman » Tue Nov 06, 2018 10:50 pm

Yep, on the USB VCP port is shared with the IDE.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: Google [Bot] and 5 guests