@NST1992 If you want to see the under 1mA current consumption during deep sleep them mimic this code and supply 3.7v to the vBat pin and Gnd.
#include "Particle.h"
// This behaves the same for SEMI_AUTOMATIC and MANUAL
SYSTEM_MODE(MANUAL);
SYSTEM_THREAD(ENABLED);
int ledPin = D7; // LED connected to D1
void setup() {
pinMode(ledPin, OUTPUT); // Sets pin as output
}
void loop() {
//The 6 lines of code below are needed to turn off the Modem before sleeping if your using SYSTEM_THREAD(ENABLED); with the current 0.6.0 firmware. It's a AT Command problem currently.
Cellular.on();
delay(10000);
Cellular.command("AT+CPWROFF\r\n");
delay(2000);
FuelGauge().sleep();
delay(2000);
digitalWrite(ledPin, HIGH); // Sets the LED on
delay(150); // Waits for a second
digitalWrite(ledPin, LOW); // Sets the LED off
delay(150); // Waits for a second
digitalWrite(ledPin, HIGH); // Sets the LED on
delay(150); // Waits for a second
digitalWrite(ledPin, LOW); // Sets the LED off
delay(150); // Waits for a second
digitalWrite(ledPin, HIGH); // Sets the LED on
delay(150); // Waits for a second
digitalWrite(ledPin, LOW); // Sets the LED off
delay(150); // Waits for a second
digitalWrite(ledPin, HIGH); // Sets the LED on
delay(150); // Waits for a second
digitalWrite(ledPin, LOW); // Sets the LED off
System.sleep(SLEEP_MODE_DEEP, 100); //Put the Electron into Deep Sleep for 1 Hour.
}
If you want to see the 160mA reading then apply power to the Li+ pin and Gnd.
If you apply 5v to Vin and wait a few seconds after the LED’s signal that the Electron has went into deep sleep then you should see current bounce around 0.002 - 0.0014 Amps @ 5v if you have no battery connected to the Electron. The RED charging LED is flashing like crazy since there is no battery connected. If there was a battery connected then the PMIC would be trying to pull 100-500mA to charge the battery during deep sleep.