sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
464 stars 180 forks source link

Measuring Temperature using Inbuilt Sensor and battery voltage in Nrf52832 #203

Closed RajeshkumarC closed 6 years ago

RajeshkumarC commented 6 years ago

Hi , I am new to github and i don't know whether to post these questions in issue part. If wrong means sorry. I read your BLEPeripheral library. I want to clarify is there any 1) Function in your library will help to measure temperature using inbuilt temperature sensor of nrf52832.

2) Inbuilt function to measure the battery voltage using the VDD given to the chip.

since the above two are inbuilt in the Nrf52832, it will be more useful rather than using external components which may lead to current consumption. In such a case the battery life of the IC wont last for years.

sandeepmistry commented 6 years ago

Both are not possible without changes to library. There is some discussion in https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/33 that you might find useful.