Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
293 stars 128 forks source link

What deep sleep current to expect ? #143

Open chris4git opened 2 years ago

chris4git commented 2 years ago

Hi, in deep sleep mode I measure no less than 450µA. I expected less after reading data sheet. What is the minimum possible ?

LilyGO commented 2 years ago

Hi . Power off the SIM7000 module. We measured about 260uA .

chris4git commented 2 years ago

190µA less, interesting. Have you an example of code used to measure this ?

LilyGO commented 2 years ago

Reference

chris4git commented 2 years ago

Thanks, my test code is much simpler (no modem, no wifi, no bt) : ` / Test code for deep sleep current measurement /

include

define SerialMon Serial // Set serial for debug console (to the Serial Monitor, default speed 115200)

define LED_PIN 12

define LED_ON (digitalWrite(LED_PIN, LOW))

define LED_OFF (digitalWrite(LED_PIN, HIGH))

void setup() { LED_ON; pinMode(LED_PIN, OUTPUT); // Set LED PIN output delay(5000); Serial.begin(115200); delay(10); Serial.printf("\nIn loop, sleeping now...\n"); delay(200); LED_OFF; pinMode(LED_PIN, INPUT); // revert to input esp_deep_sleep_start(); Serial.println("\n ----- we should not be there !..\n"); }

void loop() { } `

What is missing to obtain your results ?

LilyGO commented 2 years ago

With your code, 250uA is measured

chris4git commented 2 years ago

Strange ! this is the current drawn from the battery, without USB ? Have you same version of the board ? Mine is 20-4-15, nothing plugged, no SIM but no less than 430µA-450µA :-/

LilyGO commented 2 years ago

How did you measure it? Can you send me a picture?

chris4git commented 2 years ago

Very simple : DSC_1446

cdluv commented 2 years ago

Is there any reason why your GPS antenna isn't attached? Does it make a difference?

chris4git commented 2 years ago

I don't use the GPS. The above test was to see the smallest current achievable with nothing powered. I don't understand how @LilyGO obtain 250uA :-/

1LineAtaTime commented 2 years ago

FYI, with the script that you posted @chris4git, I get 230-250 uA. Board is the latest 20-4-15 with GPS and LTE antenna connected. SIM inserted. No SD card. All LEDs are off, modem has no power (checked with volt-meter just in case as well), no USB connected. Power is supplied by DCP5A Vlifree at 3.70V. The reading for current is not so accurate on this device, so it reads 2mA when nothing is connected as well... I used a multi-meter in series to the battery connectors to get an accurate reading. It reads 230-250 uA, as per @LilyGO's response.

...now if only I was able to get a proper sleep mode on the modem itself so it can still receive SMS's and last longer than 1 month on a 2200mAh battery...

Edit: In case it helps anyone, this is the data I gathered through testing.

ESP32 ON + MODEM REGISTERED + SerialAT started

  • 0.07A - 0.09A

ESP32 ON + MODEM REGISTERED

  • 0.05A - 0.07A

ESP32 OFF + MODEM OFF

  • 0.00A - 0.00A

ESP32 ON + MODEM SLEEP

  • 0.04A - 0.06A

ESP32 ON + MODEM OFF

  • 0.04A - 0.04A

ESP32 OFF + MODEM ON

  • 0.01A - 0.02A

ESP32 OFF + MODEM SLEEP

  • 0.004A - 0.011A

ESP32 OFF + MODEM SLEEP (no LEDs)

  • 0.0012A - 0.0??A

I believe ESP32 OFF stood for ESP32 deep sleep mode. At this point, it should be possible to hardwire (solder) Ring Indicator (RI) pin from the SIM7000A chip to an open pin of the ESP32, and use it as an interrupt for SMS received to wake up the ESP32 from deep sleep. That's just a thought though.

chris4git commented 2 years ago

FYI, with the script that you posted @chris4git, I get 230-250 uA. Board is the latest 20-4-15 with GPS and LTE antenna connected. SIM inserted.

Hi, my board is also 20-4-15 and I found an explanation : my multimeter is bad on this range. It displays ~30% more than the reality !

No SD card. All LEDs are off, modem has no power (checked with volt-meter just in case as well), no USB connected. Power is supplied by DCP5A Vlifree at 3.70V. The reading for current is not so accurate on this device, so it reads 2mA when nothing is connected as well... I used a multi-meter in series to the battery connectors to get an accurate reading. It reads 230-250 uA, as per @LilyGO's response.

...now if only I was able to get a proper sleep mode on the modem itself so it can still receive SMS's and last longer than 1 month on a 2200mAh battery...

It would be good...