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

how to send temperature values in nrf5840

I'm using Nordic nRF5840 and I want to send the micro controller's temperature every 1 second via Bluetooth. Can you tell me how to implement it?

I found an example named Health Thermometer Service Sample Application. Does it apply for nRF5840? I just want to send the chip's temperature using BLE every 1 sec.

Thanks in advance!

Parents
  • What example exactly are you referring to? There seems to be Heart Rate Monitor example which should contain Thermometer, but that might be too complex and cumbersome unless you have already app on the other side which will understand HRS protocol and data. Otherwise simply use any protocol (like Nordic BLE UART aka NUS examples) and transport temperature value over the link as you need. There is Thermometer in nRF5x MCUs, not super accurate but for first iteration it's enough. See chip specification and SDK how to read it and you are more or less done.

Reply
  • What example exactly are you referring to? There seems to be Heart Rate Monitor example which should contain Thermometer, but that might be too complex and cumbersome unless you have already app on the other side which will understand HRS protocol and data. Otherwise simply use any protocol (like Nordic BLE UART aka NUS examples) and transport temperature value over the link as you need. There is Thermometer in nRF5x MCUs, not super accurate but for first iteration it's enough. See chip specification and SDK how to read it and you are more or less done.

Children
No Data
Related