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

Get the value of a temperature sensor

 Hello,

I would like to get the value of a temperature sensor, convert it from A -> D, send it to a server and then get it with a client (mobile application)

I need a sensor server, any idea of how to do it ? does it already exist ?

Thank you for your help

Parents
  • In the softdevice header file nrf_soc.h you can find the call to sd_temp_get(). The temperature can be obtained that way.

    Note that the TemperatureSensor (TEMP) is a resource that the softdevice needs to own, and attempting to access it directly will reward you with a Noridc Assert Error. You have to use this function.

    I would like to hear from Nordic on this: The temperature value returned via the uint32_t pointer p_temp, has that value been adjusted by the on-chip temperature calibration data found in FICR->TEMP.x0 , where x = A, B, T. or not.

    I have not found any documentation stating this is the case or not.

    Thanks,

Reply
  • In the softdevice header file nrf_soc.h you can find the call to sd_temp_get(). The temperature can be obtained that way.

    Note that the TemperatureSensor (TEMP) is a resource that the softdevice needs to own, and attempting to access it directly will reward you with a Noridc Assert Error. You have to use this function.

    I would like to hear from Nordic on this: The temperature value returned via the uint32_t pointer p_temp, has that value been adjusted by the on-chip temperature calibration data found in FICR->TEMP.x0 , where x = A, B, T. or not.

    I have not found any documentation stating this is the case or not.

    Thanks,

Children
Related