Currently I have it connected like this:
5v to 5v
gnd to gnd
rx to tx
tx to rx
Is that correct or not (complete novice here)
also do I supply power to both or not (like connect them both to two different power sources)
Currently I have it connected like this:
5v to 5v
gnd to gnd
rx to tx
tx to rx
Is that correct or not (complete novice here)
also do I supply power to both or not (like connect them both to two different power sources)
There’s no 5V pin on the RT1062.
Why do you need the Arduino Uno in this picture? Note that the U3 has one uart which is used for programming. So, when you connect it to the OpenMV Cam it cannot be programmed.
What’s your app? You might not need the Arduino Uno.
Trying to make an RC car that can complete a race track using edge detection.
Since I have fairly strong motor shield for the r3 (adafruit motor shield v2.2) and can’t afford another one, I decided to use it to control the motors in my project and just send appropriate signals from my openMV to it.
Still working on the encoder and 3d modelling physical pieces for the car, so I don’t have any code to share but in essence, based on the edges openMV will send left/right or stop, and the Arduino will execute prewritten commands based on it, if nothing is sent continue straight and etc. So basically - openMV focuses on edge detection and the Arduino on steering. That’s the plan at least.
Okay, you should use SoftwareSerial on the Arduino and the hardware uart on the RT1062. This way you can use any I/O pin on the Arduino. Our Arduino Interface library will work perfectly for this. Make sure to setup a stream mode connection between the two so the camera can just stream results back to the Arduino versus the Arduino doing blocking RPC calls. The documentation describes how to do this for the library: openmv/openmv-arduino-rpc: Remote Procedure/Python Call Library for Arduino
As for powering the two devices. You can put the 5V from the Arduino into the OpenMV Cam VIN pin or you can draw 5V from the RAW pin on the OpenMV Cam to power the Arduino. Then you just give power to one device.