Hello,
I’m having problems with the seeeduino LoRaWAN +gps board. The rated current in sleep mode is 80uA. However, following the steps of the wiki, I cannot achieve nothing near that value of consumption.
Removing all the leds and testing the board with the suggested sketch for low consumption it draws 17-18mA powered at 3.5V though the battery connector.
Reading the GPS module datasheet it says that it has a current consumption is 12mA when tracking (and I think the gps is tracking by default) so that could be the problem… There is an “stand by mode” you can enter by sending the command: $PMTK161,0*28
But even doing so the current doesn’t drop much… Also the seeedstudio wiki does not say anything about that…
This is the sketch I am using:
[code]#include <LoRaWan.h>
#include <EnergySaving.h>
EnergySaving nrgSave;
void blink()
{
for(unsigned char i = 0; i < 5; i ++)
{
digitalWrite(13,HIGH);
delay(500);
digitalWrite(13,LOW);
delay(500);
}
}
void setup()
{
Serial.begin(9600); // gps
for(unsigned char i = 0; i < 26; i ++) // important, set all pins to HIGH to save power
{
pinMode(i, OUTPUT);
digitalWrite(i, HIGH);
}
lora.init();
blink();
lora.setDeviceLowPower();
blink();
Serial.write("$PMTK161,0*28\r\n");
nrgSave.begin(WAKE_EXT_INTERRUPT, 7, dummy); // buton on D7 to wake up the board
nrgSave.standby();
}
void loop()
{
blink();
nrgSave.standby();
}
void dummy(void)
{
// do something
}
// END File[/code]
Any help will be appreciated.