Skip to content

I2C devices

Raffaello Bonghi edited this page Jul 27, 2021 · 3 revisions

To check if all I2C devices are connected, you can run from the NVIDIA Jetson shell this command:

The main reference is on Nanosaur exp board

All devices are:

  • BUS 0
    • 0x3C - right display
  • BUS 1
    • 0x3C - left display
    • 0x60 - motor driver
sudo i2cdetect -y -r [BUS]

Where [BUS] is the bus if you want to read.

Below an example with the output of BUS 1

nvidia@nanosaur:~/nanosaur_ws/src/nanosaur_robot$ sudo i2cdetect -y -r 1
[sudo] password for nvidia: 
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: 70 -- -- -- -- -- -- -- 

Reinstall I2C services

sudo apt-get install -y python-smbus
sudo apt-get install -y i2c-tools
Clone this wiki locally