-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMU, barometer data #1
Comments
The STM32 on the Aerocore 2 is usually loaded with our NuttX based PX4 firmware for MAV operation. The Arduino AutoBSP is a recent addition so example code is not yet available. In the meantime, the board is configured as such: Pin - Signal Name - Device |
@GumstixExperimental Thanks! Is there any wiring or interface between the STM32 and the TX2? Or is the only way to pass data between the two to crosswire their UARTs? (I'm using this for a robot, not a MAV, so I want all sensor raw data getting passed directly to the TX2 for now.) |
The TX2 and the STM32 are connected via on-board UART and SPI connections. See the attached autodoc for reference. The "UART-UART" and "SPI Bridge" modules are the points of interest here. |
Thanks @leekeith -- this is helpful. I do wish there were some more human-written documentation rather than the auto-generated one that included information such as the SPI CS pins that I had to ask for above. Another question for @GumstixExperimental that is unrelated but thought you might know -- I'm having issues getting the UART on the Jetson to work. I tried jumpering TX to RX and I get no echo on /dev/ttyTHS1, /dev/ttyTHS2, or /dev/ttyTHS3 (not sure which one it is supposted to be). I notice that in the web interface it is wired to UART3. On the NVIDIA forum (https://devtalk.nvidia.com/default/topic/985665/jetson-tx1/how-to-use-tx1-uart3/) It is said that UART3 is inaccessible. Could this be a hardware bug? |
@GumstixExperimental I still haven't gotten the TX2's UART header to work (see above). Questions however:
Thanks! |
By the way I notice PIN_SPI3_MISO, PIN_SPI3_MOSI are defined twice in variant.h:
|
Update: I found the constants were defined wrong. This code works to read accelerometer, magnetometer, and gyro. However I find the accelerometer data is very erratic and jumps between roughly -1.0 g and 0.0 g with the board stationary. Gyro readings seem OK. Magnetometer readings I could not verify. Has this problem been observed before?
|
Update: This code works in reading values, but I had issues with the magnetometer being stuck at 3.125 Hz despite being set to 50Hz or 100Hz, and the gyroscope being stuck at one reading. Accelerometer worked fine. I think I'm giving up on this IMU and just plugging a BNO055 into the I2C port.
|
Hi,
Could you please provide an example of how to read 9-axis IMU and barometer data on an Aerocore2 for Jetson? It is not clear from the documentation exactly which pins are connected to the gyro, which pins are connected to the compass, and which are the CS pins for the barometer and IMU modules. The online interface shows all 3 modules being connected to SPI3 but no CS pins. Thanks.
The text was updated successfully, but these errors were encountered: