Skip to content

Power consumption for STM32L0 below 1mA #28

@IoTThinks

Description

@IoTThinks

Hi everyone,
I'm using stm32duino for STM32L0 for Dragino LSN50.
I use the variant B-L072Z-LRWAN1 as it is very similar to LSN50. The only difference are some SPI and LoRa pins.

I'm able to go down from 10mA in normal mode to 1mA in deep sleep / shutdown mode.
LoRa is not in used yet.
Is there anyway I should take note to go down bellow 1mA?
By right, the STM32L) should go to uA in deep sleep/shutdown mode?

Thanks a lot.

#include "config.h"
#include "STM32LowPower.h"

// https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/DISCO_L072CZ_LRWAN1
// DISCO Pin: https://os.mbed.com/platforms/ST-Discovery-LRWAN1/
  
void setup() {  
  Serial.begin(BAUD_RATE);
  Serial.println("Hello LoRa Low-Power Node");
  delay(1000);  

  // Configure low power
  LowPower.begin();

  // Setup LoRa
  // setupLoRa();  
}

void loop() { 
  // After sleep, doing some work
  // Serial.println("Doing some work...");
  
  // Send to gateway
  // sendLoRaMessage(sensorMessage);
  // sendLoRaMessage("Hi");
  delay(10000);
 
  // Deep sleep       
  Serial.println("Going to sleep...");  
  // delay(1000);
  // LoRa.sleep();
  // LowPower.sleep(5000);
  // LowPower.deepSleep(10000);
  LowPower.shutdown(10000);
  // LoRa.idle();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions