I want to undestand this. I can't see any examples with it. In the example ble_app_proximity I always received 100% level. If it possible, can anybody give a ADC config example for it? Thanks.
I want to undestand this. I can't see any examples with it. In the example ble_app_proximity I always received 100% level. If it possible, can anybody give a ADC config example for it? Thanks.
What do you mean by battery "level" ?
Note that battery voltage may not give any useful indication of the remaining battery life!
Did you actually read all the comments - and follow the link?
I watched same example in SDK 9. But I can't see config of ADC for internal battery measure. Your link I can't open. Relink pls.
I readed all comments, but I can't follow to link above. It doesn't open. Relink pls.
in my same example on SDK9 I have next code
/**
@brief ADC initialization. */ void adc_config(void) { const nrf_adc_config_t nrf_adc_config = NRF_ADC_CONFIG_DEFAULT;
// Initialize and configure ADC nrf_adc_configure( (nrf_adc_config_t *)&nrf_adc_config); nrf_adc_input_select(NRF_ADC_CONFIG_INPUT_2); nrf_adc_int_enable(ADC_INTENSET_END_Enabled << ADC_INTENSET_END_Pos); NVIC_SetPriority(ADC_IRQn, NRF_APP_PRIORITY_HIGH); NVIC_EnableIRQ(ADC_IRQn); }
As we see, it is no measure internal batt level by code:
nrf_adc_input_select(NRF_ADC_CONFIG_INPUT_2);