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, 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