-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
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
Labels
No labels