Problem with I2C devices

Discussion in 'UDOO NEO' started by alvamabel2018, Apr 20, 2018.

  1. alvamabel2018

    alvamabel2018 New Member

    Joined:
    Apr 20, 2018
    Messages:
    1
    Likes Received:
    0
    Hi,
    I managed to properly connect to the temperature sensor, through the brick snap in port. I see the device on I2C bus 1 with address 0x48 and I can read its register without problems.

    I would like to connect another I2C device (IMU MPU9265), do I have to export GPIOs in order to connect it to one of the 4 I2C buses? Or I just need to wire the Vcc pin to the 5V or 3V3 pin on Neo, the GND pin to one of the GND pin on Neo, and SCL/SDA to pins SCL/SDA of the internal row on Neo?
    I did just that and I can't see the device appear on any of the four buses with i2cdetect. Connecting it to those pins I should see it on I2C2, i.e. with i2cdetect -y 1, right?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    As long as the I2C sensors dont use the same I2C adress you can connect them to the same I2C bus. No need to use the other busses.
    Be aware:
    1. All I2C busses are exported to A9/Linux side. So no need to do anything with GPIO.
    2. I2C_2=i2c-1 in linux (and I2C_4=i2c-3)


    [​IMG]
     

Share This Page