OpenMV as Slave + Data received from Arduino

General discussion about topics related to OpenMV.
Jivrik
Posts: 19
Joined: Thu Jan 10, 2019 9:40 pm

OpenMV as Slave + Data received from Arduino

Postby Jivrik » Thu Jan 10, 2019 9:58 pm

Hi,

Is it possible to send data from an arduino(master) to openMV(slave)?

I saw , if I am not wrong, that you have to send a sync char for sending data from the openMV to the Arduino.

The openMV camera is the second device of the established SPI connection which has the arduino as master.

Would it be possible to receive data from the arduino without any problem? If yes, how?

Thank you!
Jivrik
Posts: 19
Joined: Thu Jan 10, 2019 9:40 pm

Re: OpenMV as Slave + Data received from Arduino

Postby Jivrik » Thu Jan 10, 2019 9:59 pm

I would like to send chars from the arduino to the openMV ^^
User avatar
kwagyeman
Posts: 3135
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV as Slave + Data received from Arduino

Postby kwagyeman » Thu Jan 10, 2019 11:03 pm

Hi, the OpenMV Cam makes a very poor I2C slave or SPI slave. This is because it needs to generally do other things than wait for the Arduino to command it. UART is the only thing that works well. If possible, make your Arduino a UART slave I/O extender for the OpenMV Cam.

I am also working on a CAN shield that I will try to get out of the door ASAP which will make this all much easier. Connecting the OpenMV Cam by CAN with an Arduino with a CAN shield is the easiest way to have high bandwidth data interface between the two devices while not sacrificing the Arduino's ability to do serial write. It also meets the need of folks wanting long distance comms.
Nyamekye,
Jivrik
Posts: 19
Joined: Thu Jan 10, 2019 9:40 pm

Re: OpenMV as Slave + Data received from Arduino

Postby Jivrik » Thu Jan 10, 2019 11:14 pm

Thank you!
I will try to go with the UART then.
User avatar
kwagyeman
Posts: 3135
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV as Slave + Data received from Arduino

Postby kwagyeman » Thu Jan 10, 2019 11:16 pm

Keep in mind that the Serial debug port on a UNO isn't usable if you are using the Arduino's UART for the OpenMV Cam. So, use Software serial to communicate with the OpenMV Cam so you can still deubg.
Nyamekye,
Jivrik
Posts: 19
Joined: Thu Jan 10, 2019 9:40 pm

Re: OpenMV as Slave + Data received from Arduino

Postby Jivrik » Thu Jan 10, 2019 11:19 pm

However,

Is it possible to connect a Bluetooth system to the openMV camera ? And then send data from the arduino using this system ?
User avatar
kwagyeman
Posts: 3135
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV as Slave + Data received from Arduino

Postby kwagyeman » Thu Jan 10, 2019 11:46 pm

If using blue tooth uarts. Sure.
Nyamekye,
Jivrik
Posts: 19
Joined: Thu Jan 10, 2019 9:40 pm

Re: OpenMV as Slave + Data received from Arduino

Postby Jivrik » Fri Jan 11, 2019 7:13 am

Thank you!

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 3 guests