Hi! I just bought the optical odometry sensor and tested it in my windows pc using the official arduino library and works perfect but I tried to do the same in my Jetson Xavier NX (ARM64) with Arduino IDE 1.8.19 and doesn’t work. When I install the library it says I need the toolkit, the same in windows but in my jetson the toolkit appears as a library, when I try to run any code using sparkfun odometry I get the message that no function of the library is found.
You might need to update the Arduino IDE to a newer version to fix the toolchain error, verify the OTOS library actually installed/is in the correct arduino folder, or perhaps try the python instructions if it continues to give ya guff
We just updated the SparkFun Toolkit and updated the OTOS Arduino library to use the new Toolkit version. You might have a version mismatch as a result of this …
See if you need to update the OTOS and/or the SparkFun Toolkit libraries to the latest version.
The Toolkit is now at Version 1.0.0
The updated OTOS is Version 1.1.0
You can check these versions in the Arduino IDE, or dig into the library install for each library and look in the library.properties file in the root folder of each library.
If this doesn’t fix the issue, let us know and we can dig into this further.
Hi! Both arduino library and toolkit are already updated but it doesn’t work. In windows works great but in arduino IDE 1.8.19 and previous versions for jetson xavier nx ARM64 it doesn´t.
Yea, like I was saying…that appears to be the latest version for ARM64, so you’ll need to try python or have an MCU (that is running an arduino sketch) in-between the OTOS and the Jetson. This is an arduino IDE issue :-/
I STRONGLY recommending just trying the python/GPIO
It sound like your looking to connect the Odometry sensor directly to the Jetson Xavier NX. I miss understood and thought you were trying to build a binary on the Xavier NX, then deploy to an Arduino board (like a SparkFun Thing Plus board).
In this case, @TS-Russell is spot on and I was incorrect. you don’t use Arduino to build and connect to the sensor on the Jetson (at least that we are not aware of), you would use python.
We have a big update to our python drivers on the 21st, including an update to the Odometry sensor diver. But you can grab this today.
The Odometry sensor is here:
The new version is on the “feature/packaging” branch.
You might need the updated I2C driver that this driver uses - which is here:
Again you would use the “feature/packaging” branch.
By late next week, these updates should be all posted in PyPi, so you can then use ‘pip’ to install.
As for getting this to work for the Jetson - you will need to figure out the pins to connect to and what i2c bus this corresponds to. This bus number is passed into the device/bus object when created.
I don’t have details handy for your particular use, but here is an example used for Raspberry pi: