OK, so I have plugged my camera into the second port to start testing.
If I run testI2cDevice in the serial monitor is scans for and see 3 addresses, so I am thinking the module is connect correctly and is seen.
If I try to upload BallTracking I get the error "Error compelling for Arduino Uno"
Has anyone had any luck with this, and if so what was needed to be done?
Oh Cool! So yes a picture of a yellow ball of my phone worked great and I now know that when the image is recognized the light change from red to blue, so if you move to far or fast you know because the lights change. And after reloading opencat.ino I see that light still change and identify the ball but I guess at that point there is not the programing loading on what to do when the object is identified...
So I am not sure, when we load the Ball Tracking does it lock into that mode or will it still do the other stuff? Also, what did you get it to track on? I don't have any type of yellow ball and other things I tried only seemed to work so so. I will need to learn how to training to a new object.
Got the Ball tracking code working Fantastic. Thank you!😀
I have plugged in the intelligent vision sensor, and loaded the MuVisionSensor3 into my Arduino library successfully. Where can I download the Ball tracking code?
Although I redownloaded the BallTracking files this morning it seem there was an old copy of OpenCat.h that Arduino had cached! I made sure to close all open windows fully, shut it down and reopen and then the updated OpenCat.h file was being read.
When did you download the ball tracking codes? In the latest codes, the dependency of quaternion.h has been removed.
Interesting, I did that and also redownloaded the Ball Tracking files.
It now no longer get that error, but it now says I am missing quaternion.h.
Is there another library I need to install?
There's some none ASCII characters in the code. Please go to that line in mu_vision_sensor_i2c_hw_interface.h: row 25, column 2, delete the surrounding letters and retype with your keyboard. It may solve the problem.
I had installed the MuVisionSensor3 library... this is the error I get:
Arduino: 1.8.13 (Mac OS X), Board: "Arduino Uno"
In file included from /Arduino/libraries/MuVisionSensor3/src/MuVisionSensor.h:19:0,
from /Arduino/OpenCat/BallTracking/BallTracking.ino:20:
/Arduino/libraries/MuVisionSensor3/src/mu_vision_sensor_i2c_hw_interface.h:25:1: error: stray '@' in program
@type define I2C type
^
/Arduino/libraries/MuVisionSensor3/src/mu_vision_sensor_i2c_hw_interface.h:25:2: error: 'type' does not name a type; did you mean 'tone'?
@type define I2C type
^~~~
tone
exit status 1
Error compiling for board Arduino Uno.
Have you installed the camera's library?