Neo M4 I2C

Discussion in 'Arduino IDE' started by Gary Huband, Aug 17, 2016.

Tags:
Thread Status:
Not open for further replies.
  1. Gary Huband

    Gary Huband New Member

    Joined:
    Aug 1, 2016
    Messages:
    22
    Likes Received:
    7
    I'm having trouble reading a device on the I2C2 bus from the M4.
    I disabled the BRICKS connector using the Device Tree Editor and rebooted.
    I connected the device to J6 SCL and SDA and to GND and 3.3V.
    I then uploaded an Arduino I2C scanner to the M4 (see http://playground.arduino.cc/Main/I2cScanner), but this detects a device at every address.
    Is it possible to use one of the I2C busses with the M4? If yes, please give me detailed instructions.

    Thanks
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    The directions are not completely clear but to use the I2C on the M4 SCL
    and SDA pins you don't have to do anything. It is enabled by default. So you have to go back to the default configuration on the device tree editor.
     
  3. Gary Huband

    Gary Huband New Member

    Joined:
    Aug 1, 2016
    Messages:
    22
    Likes Received:
    7
    OK, it appears to work now. For some reason the I2C scanner code from the Arduino site does not work on the Neo. Thanks for your help.
     
    waltervl likes this.
  4. ektor5

    ektor5 Administrator Staff Member

    Joined:
    Jul 1, 2013
    Messages:
    97
    Likes Received:
    48
Thread Status:
Not open for further replies.

Share This Page