IRNAS / pira-smart-firmware

Firmware for PiRa Smart device
GNU General Public License v3.0
0 stars 1 forks source link

Current consumption of the Pira Smart device is too high #13

Open gorankecman opened 6 years ago

gorankecman commented 6 years ago

After testing current consumption of the Pira Smart device, it seems that BLE + RTC are consuming ~569uA. Look for the options how to reduce power consumption of the BLE SoC - inside firmware especially but also check HW data. Measured current consumption:

  1. 607uA -> EN: MDBT40 (in RESET), RTC, Battery Charger - DISABLED: LoRa, FET, no RPi
  2. 569uA -> EN: MDBT40 (in RESET), RTC - DISABLED: Battery Charger, LoRa, FET, no RPi
  3. 52uA -> EN: Battery Charger - DISABLED: MDBT40, RTC, LoRa, FET, no RPi
gorankecman commented 6 years ago

Code to put MDBT40 device in SYSTEM OFF mode:

int main(void)
{
    NRF_POWER->SYSTEMOFF=1;
    while (true) {}
}

I have tested this code on MDBT40 evaluation board (some other components present on the board) and the current consumption was ~170uA. Then I have soldered MDBT40 alone on PiRa Smart PCB without any additional component. Only needed pins were soldered -> VDD, AVDD, GND, SWCLK, SWDIO and current consumption was >1uA, which is in accordance with MDBT40 datasheet. I have tested first with PiRa Smart firmware, just to see if I get the current consumption approximately as expected, to make sure MDBT40 was soldered properly. Power consumption was in range 2mA - 5mA as expected.