This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connecting Altimeter to nrf52 dk using i2c.

Hi I trying to connect Altimeter ( mpl 3115a2) to the nrf52 development kit. Can someone guide me how to do it (pin connection). I have followed the example given in the sdk but still I am a little unclear. Thank you.

Parents
  • Hi

    You can find reference circuitry for your sensor here.

    The main thing to note is the external pull ups on SDA and SCL, otherwise you can connect SDA, SCL, and (optionally) INT1/INT2 directly to the nRF52 DK.

    Technically it is possible to use internal pull ups in the nRF52 to avoid the need for external pull ups, but having them externally gives you more control over the pull up resistance.

    Best regards
    Torbjørn

  • Hi, I am little new to all this, let me go step by step. According to the hardware files P 0.26 and P 0.27 are SDA and SCL respectively. So on the hardware side connection is like SDA -> SDA , SCL-> SCL, Vdd and gnd. This is pretty straight forward. I am confused on the hardware side. The example twi_master_with_twis_slave shows how the master reads the data from the eeprom. I am stuck where all changes I have to make to read the raw data from the sensor. Like where I have to define the pin no. for SDA and SCL and also for the slave address and read address. Can you help me on this issue.

    Thank you.

Reply
  • Hi, I am little new to all this, let me go step by step. According to the hardware files P 0.26 and P 0.27 are SDA and SCL respectively. So on the hardware side connection is like SDA -> SDA , SCL-> SCL, Vdd and gnd. This is pretty straight forward. I am confused on the hardware side. The example twi_master_with_twis_slave shows how the master reads the data from the eeprom. I am stuck where all changes I have to make to read the raw data from the sensor. Like where I have to define the pin no. for SDA and SCL and also for the slave address and read address. Can you help me on this issue.

    Thank you.

Children
No Data
Related