Communication between OpenMV and Arduino

General discussion about topics related to OpenMV.
Feelmywraft
Posts: 3
Joined: Mon Apr 22, 2019 8:38 pm

Communication between OpenMV and Arduino

Postby Feelmywraft » Mon Apr 22, 2019 8:41 pm

Hi I'm wondering how I can send information that is print in the serial terminal in the OpenMV IDE to the arduino serial.
Thanks!
User avatar
kwagyeman
Posts: 3258
Joined: Sun May 24, 2015 2:10 pm

Re: Communication between OpenMV and Arduino

Postby kwagyeman » Tue Apr 23, 2019 1:24 am

Hi, please see the UART examples. You just need to turn the UART on and then write data to it versus the print() method. E.g. just replace print() with uart.write(). http://docs.openmv.io/openmvcam/quickre ... serial-bus
Nyamekye,
Feelmywraft
Posts: 3
Joined: Mon Apr 22, 2019 8:38 pm

Re: Communication between OpenMV and Arduino

Postby Feelmywraft » Tue Apr 23, 2019 9:17 am

kwagyeman wrote:
Tue Apr 23, 2019 1:24 am
Hi, please see the UART examples. You just need to turn the UART on and then write data to it versus the print() method. E.g. just replace print() with uart.write(). http://docs.openmv.io/openmvcam/quickre ... serial-bus
how would the code be on the arduino side to read the information? thanks
Feelmywraft
Posts: 3
Joined: Mon Apr 22, 2019 8:38 pm

Re: Communication between OpenMV and Arduino

Postby Feelmywraft » Tue Apr 23, 2019 9:41 am

Is there somewhere I can find the wiring diagrams for both the OpenMV and Arduino as well as the code, thanks
User avatar
kwagyeman
Posts: 3258
Joined: Sun May 24, 2015 2:10 pm

Re: Communication between OpenMV and Arduino

Postby kwagyeman » Tue Apr 23, 2019 11:43 am

Hi, not really, the OpenMV Cam wasn't designed to be a slave sensor to the Arduino. It's quite easy to attach the two via UARTs however. But, there's no library for this. You're free to write whatever serial protocol you want to attach the two. Unless you strictly have a reason... note that we built the OpenMV Cam with pin I/O control so you wouldn't necessarily need to use an Arduino in a project.

That said, there are some examples that ship with OpenMV IDE showing how to connect the Arduino. There was also a post answered literally yesterday about this using I2C: viewtopic.php?f=3&t=1271
Nyamekye,

Return to “General Topics”

Who is online

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