I am trying to reduce the power consumption of the board when inactive. Using the ArduinoLowPower library it is quite easy to reduce the current draw of the SAMD, but when I try to set the radio to sleep (with the MKRWAN library sleep() function), it just returns false.
The lowest current draw I could achieve so far is 2 mA, but for battery operated applications it would be nice to get lower. Any ideas?
Likewise I can get the power usage down to about 1.7 - 1.8 mA using the sleep function. (It's the same result with deepsleep from the LowPower library) but I think that is because the SAMD only has idle and standby settings.
I have tried LoRa.h sleep function but it seems to have no effect on this as I still get about 1.7mA consumption.
I tried setting all the PINS to OUTPUT apart from 0 and 1 which I need as Interupts with this...
// try setting all pins to output to reduce power
// for (int i=2; i<14; i++){pinMode(i, OUTPUT);}
but this just gives me a 3mA sleep mode, so worse.
Has anyone tried setting the registers directly to turn off the A2Ds?
Any suggestions appreciated, as I really want to get to the micro Amps.
NeilE:
Likewise I can get the power usage down to about 1.7 - 1.8 mA using the sleep function. (It's the same result with deepsleep from the LowPower library) but I think that is because the SAMD only has idle and standby settings.
I have tried LoRa.h sleep function but it seems to have no effect on this as I still get about 1.7mA consumption.
I tried setting all the PINS to OUTPUT apart from 0 and 1 which I need as Interupts with this...
// try setting all pins to output to reduce power
// for (int i=2; i<14; i++){pinMode(i, OUTPUT);}
but this just gives me a 3mA sleep mode, so worse.
Has anyone tried setting the registers directly to turn off the A2Ds?
Any suggestions appreciated, as I really want to get to the micro Amps.
With what voltage are you feeding the plate? Can you put the code?. As I said in my previous post I can not get down to 18 mA by feeding the plate through the Vin pin with 5V.
The extra current when you set pins 11 & 12 to OUTPUT and the pin level is 0 (ground) is due to external 4.7K pull up resistors on those pins (they are I2C pins).