Read the temp from temp sesor(TMP112AIDRLT) connected over I2C to nRF52840 using nRFconnect SDK 2.1.0

Hi

Can some one help us how we can read this temperature data from temp sensor using nRFconnect SDK 2.1.0 connected over I2C to nRF52840 

Parents
  • Hello,

    Have you checked this example from our latest SDK? This uses TMP112 with I2c. You can find the same sample under:   ncs\v2.1.0\zephyr\samples\sensor\tmp112

    Kind Regards,

    Abhijith

  • Hi,

    I have gone through the code but have some queries.

    We actually want to integrate this into our application which has other functionalities implemented. Also in the sample application i do not see anything related to the I2C address included. I see one file C:\ncs\v2.1.0\zephyr\samples\sensor\tmp112\boards\frdm_k64f.overlay where tmp112 related things mentioned but this is not used as part of the sample application when I loaded it to the VS code. Also for us the address of tmp112 is 0x48 in our board. Can you please help us on steps to integrate this into our application and also if we want to test this sample application first where we can change/modify the I2C address related data

Reply
  • Hi,

    I have gone through the code but have some queries.

    We actually want to integrate this into our application which has other functionalities implemented. Also in the sample application i do not see anything related to the I2C address included. I see one file C:\ncs\v2.1.0\zephyr\samples\sensor\tmp112\boards\frdm_k64f.overlay where tmp112 related things mentioned but this is not used as part of the sample application when I loaded it to the VS code. Also for us the address of tmp112 is 0x48 in our board. Can you please help us on steps to integrate this into our application and also if we want to test this sample application first where we can change/modify the I2C address related data

Children
No Data
Related