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

How to connect temperature sensor to NRF52832 via i2c

Hello,

Here is a newbie question:

I have NRF52832 (sparkfun breakout board) and ADT7410 temperature sensor and, I want to create a data logger. But, i could not understand how to use i2c interface. I think we will assign the pins manually, but I could not understand how to assign them or use them.

Thank you for your help

Parents
  • Hello asabuncuoglu13

    You can find examples of how to use the I2C by looking at the TWI examples that comes with the SDK. You can find these in the [SDK Folder]\examples\peripheral folder. Description of the SDK13 examples can be found at the infocenter here.

    The choice of pins is made when the TWI is initialized, where a config variable of type nrf_drv_twi_config_t is created. Here you have the .scl and .sda variables which will contain your pin numbers.

    Best regards

    Jørn Frøysa

Reply
  • Hello asabuncuoglu13

    You can find examples of how to use the I2C by looking at the TWI examples that comes with the SDK. You can find these in the [SDK Folder]\examples\peripheral folder. Description of the SDK13 examples can be found at the infocenter here.

    The choice of pins is made when the TWI is initialized, where a config variable of type nrf_drv_twi_config_t is created. Here you have the .scl and .sda variables which will contain your pin numbers.

    Best regards

    Jørn Frøysa

Children
No Data
Related