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

Detect Low Voltage while in Sleep and other times.

I have suspended my Beacon in SLEEP (at .5 uA) until a keypress. Is there an event that can trigger an event if there is a low voltage detection while in SLEEP?

My goal is to wake up if the battery falls < 2.x volts so I can send a special coded advertisement.

If this is not possible, is there a routine that can give me a value so I can change my Minor value with if the voltage falls below a safe value. Then I will send it at intervals.

Where is the spec for this brown-out value ? 3.0v 2.x?

Thanks to all!

J

static void sleep_mode_enter(void)
{
    uint32_t err_code;
    //configure button 0 for wakeup
    nrf_gpio_cfg_sense_input(BSP_BUTTON_0, GPIO_PIN_CNF_PULL_Pullup, GPIO_PIN_CNF_SENSE_Low);	
    // Go to system-off mode (this function will not return; wakeup will cause a reset).
    err_code = sd_power_system_off();
    APP_ERROR_CHECK(err_code);
 }

 static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
 {
    if(p_ble_evt->header.evt_id == BLE_GAP_EVT_TIMEOUT)
        sleep_mode_enter();
 }		
Parents Reply Children
No Data
Related