Sodaq One power consumption

Hello Gabriel, that is the one that I used. But it doesn’t help. This is getting really annoying. Even with the demo code supplied on this forum we cannot get below 170 uAh. And I have no idea what I am doing wrong in my code.

Is it possible for me to send you my code so that you can have a look at it?

Yeah sure you can send your project to me at: gabriel at sodaq dot com.
Alternatively, you can give me read access to the project’s repository. My Github account is GabrielNotman.

There will be some differences/limitations to what I can test as I am not in range of any LoRa gateway.

Just wondering if this was ever resolved and if it was were the changes incorporated into the Tracker App ?

Thanks

The power consumption is a lot better with microchip their new firmware.
You can use the RN firmware updater to update your module.

Regards,
Jan

The 6ma consumption they were reporting was due to the LoRa module not entering sleep mode correctly after some modifications they had made.

Thanks for this. Serge

Hi Gabriel, I followed all of your discussion. That was very, very helpful.
I just got my SODAQ ONE Version 2 and it runs on just 30 mycro ampère at 3.9 volts.
I found out that it is very important to fully power cylce the SODAQ ONE after uploading the sketch in order to get reliable results. But then it works great!¨

here is my sketch:

#include “Arduino.h”
#include <Sodaq_RN2483.h>
#include <RTCZero.h>

RTCZero zerortc;

void initSleep()
{
// tell the LoRa-Module to sleep!
Serial1.begin(LoRaBee.getDefaultBaudRate());
Serial1.println(“sys sleep 30000”);
delay(200);

// Set the sleep mode
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
}

// do nothing just wake up
void alarmMatch(void){}

void resetAlarm(void) {
// hours, minutes, seconds
zerortc.setTime(0, 0, 0);
// day, month, year
zerortc.setDate(1, 1, 1);

// alarmHours, alarmMinutes, alarmSeconds
zerortc.setAlarmTime(0, 0, 36);
zerortc.enableAlarm(zerortc.MATCH_HHMMSS);
}

void setup() {
// inspired by…
// Sodaq One power consumption
pinMode(ENABLE_PIN_IO, OUTPUT);
digitalWrite(ENABLE_PIN_IO, HIGH);

pinMode(GPS_ENABLE, OUTPUT);
digitalWrite(GPS_ENABLE, LOW);

// RGB LED:
initalizeLEDs();
lightBlueLED();

delay(5000);

zerortc.begin(); // Set up clocks and such
resetAlarm(); // Set alarm
zerortc.attachInterrupt(alarmMatch); // Set up a handler for the alarm
delay(100);
lightNoLED();
}

void loop() {
lightRedLED();
initSleep();
lightNoLED();
// call deep sleep and wait for interrupt which is never occuring
__WFI();

delay(200);
resetAlarm(); // Reset alarm before returning to sleep
}

void lightRedLED() {
digitalWrite(LED_RED, LOW);
digitalWrite(LED_GREEN, HIGH);
digitalWrite(LED_BLUE, HIGH);
}

void lightGreenLED() {
digitalWrite(LED_RED, HIGH);
digitalWrite(LED_GREEN, LOW);
digitalWrite(LED_BLUE, HIGH);
}

void lightBlueLED() {
digitalWrite(LED_RED, HIGH);
digitalWrite(LED_GREEN, HIGH);
digitalWrite(LED_BLUE, LOW);
}

void lightNoLED() {
digitalWrite(LED_RED, HIGH);
digitalWrite(LED_GREEN, HIGH);
digitalWrite(LED_BLUE, HIGH);
}

void initalizeLEDs()
{
pinMode(LED_RED, OUTPUT);
pinMode(LED_GREEN, OUTPUT);
pinMode(LED_BLUE, OUTPUT);
}

1 Like

I have the same problems, update the rn2483 to the latest firmware.

The sketch keeps using 2.68 mA (stable) when i tried the simple lowe power sketch here it stays at 9 mA.
When lora get send to sleep it does not respond anymore so you don’t really know if it has accepted the command.

Playing with the delay after the sleep command does not help, i use the delay function sodaq_wdt_safe_delay.

I use the Sodaq One V2 with the expansion board.

Would like to get to lower power consumption but not getting better then this. :frowning:

I am trying the firmware updater to try and get my RN2483 updated but it hangs at the initbootloader. No idea why since the module runs fine otherwise. Anyone else seen this ?

startNewPage(0x200000): starting at 0x200000
completePage()
startNewPage(0x300000): starting at 0x300000
 100% 
completePage()
HEX File Image Verification Successful!
[initBootloader]

Thanks,
Serge

@ssozonoff

I have seen the isue before it has to do with the old board files.
Check of you use the correct board files url.
http://downloads.sodaq.net/package_sodaq_samd_index.json

Then update to the latest board files
The current verion is 1.6.17

Let me know if this solves your issue.

Kind regards,
Jan

Hi,

Thanks that solved the problem. :+1:
BR,
Serge