728x90
vcc-5v
gnd-gnd
dat-sda
clk-clk
Jetson xavier
pin 3 = I2C1_SDA
pin 5= I2C1_SCL
=> I2C BUS 8
<BNO055 choose I2C or UART>
Download i2c tools
$ sudo apt-get install libi2c-dev i2c-tools
Get permission
$ sudo chmod 666 /dev/i2c-1
add your user to the i2c group
$ sudo usermod -a -G i2c $USER
check able i2c (code default = /dev/i2c-1)
$ i2cdetect -l
$ ls /dev/i2c*
check address (code default = 0x28)
$ sudo i2cdetect -y 8
$ sudo i2cdetect -y -r 8 //read only
run
$ roslaunch imu_bno055 imu.launch
Reference:
I2C BNO055 ROS: https://github.com/dheera/ros-imu-bno055
Pin map: https://jetsonhacks.com/nvidia-jetson-xavier-nx-gpio-header-pinout/
I2C explanation: https://95mkr.tistory.com/entry/ROS14
i2cdetect explanation: https://linuxhint.com/i2c-linux-utilities/
728x90
'ROS' 카테고리의 다른 글
[ROS] How to control Robot (0) | 2023.02.21 |
---|---|
[ROS] How to use RPLidar (0) | 2023.02.12 |
[ROS] full coverage path planning (0) | 2023.02.09 |
[ROS] custom msg (0) | 2023.02.01 |
[ROS] rviz 없이 navigation (0) | 2023.01.20 |