Choose power supply for long time outdoor using

Started by d00m178, November 18, 2015, 11:48:22 AM

d00m178

Hello,

My device is Anarduino + RF96 (LoRa)
It have to work in outdoor conditions, box with device will be covered under snow most time.
Temperature should be about 0 Celsius - ground level.

Device will consume about 50-60 mA in RX-TX window and 0.04mA in sleep mode - this values is measured when testing.
Also there is photo-resistor, so device will be in sleep mode in dark time of day.

I suppose that device will consume about 65mA in 24 hours - it will work 3 seс in every minute, then it will go into sleep mode for rest time, then wakeup, do work, and then again sleep.
this 65mA was calculated in this way:

3sec/3600*60*24*50mA == 60mA in 24 hours in work mode.
57sec/3600*60*24*0.05mA == 1.14mA in 24 hours in sleep mode.

With photo-resistor it will maybe 30mA in a day, because device should sleep half of 24 hours.

My question is - which batteries should I use for my device if I want my device working at least 3 month ?
I'm looking at 18650 batteries with 3000mAh.
Two such batteries give me 6000mAh and seems it will work for more that 90 days even without photo-resistor - 6000/60 == 100days.

Any advices? maybe I'm wrong in my calculations ?

Thank you in advance.
 

kobuki

According to http://oregonembedded.com/batterycalc.htm with a 3 Ah battery -- Estimated battery life is: 35.3 days, or 0.1 years. You can double it if sleeping through the nights.

The 40 uA sleep current sounds excessive, you might be able to bring it below 10 or so. But it's not the biggest factor, 60 mA is a lot, are you sure it's for the full 3s period?

d00m178

Thank you for answer.

- as for 60mA - I just see this value - 55-60 on my multimeter when device in RX-TX mode, and according to my code it should be not more than 3 sec:
.......
while(millis() - startTime < 3000) // life == 3 sec.
//do stuff
.....

so I just take this value as average.

- as for consumption in sleep mode -  again, my multimeter show value like 0.047 when device in sleep mode.
and I can't get better value. so I'm ok with this.

So seems my calcilations are correct and two 18650 batteries on 3000mAh will work for me

kobuki

Well in any case, I suggest adding battery voltage reporting to your project so you're notified of the battery status...

d00m178

Yes, I have such code and it works well.
but it works for power supply 5V and I connect it to Vin pin.
And if I'm going use 18650 batteries  - I have to connect it to Vcc pin and seems I need to change this code to measure voltage on Vcc pin. 

kobuki

If you skip the LDO, you can use the "secret Arduino voltmeter" code for measuring the Vcc - just google it (example).

damonb

I suspect your consumption estimate is way over-stated. The period of high drain (radio transmission) should be measured in milliseconds not seconds. I am not familiar with LoRa but with RFM12B radio I have temperature measuring nodes that run almost 3 years on a single AA alkaline cell via a 3.3V boost chip, while sending a measurement every minute. I think that's around 1500mAh.
To measure the short bursts of high current consumption accurately in this kind of scenario you need an oscilloscope - lots of examples and learnings can be found on the JeeLabs blog (example).
Also the choice of battery chemistry is more critical if freezing conditions are to be tolerated.

WhiteHare

Quote from: damonb on November 18, 2015, 09:37:01 PM
...with RFM12B radio I have temperature measuring nodes that run almost 3 years on a single AA alkaline cell via a 3.3V boost chip, while sending a measurement every minute.
@damonb That impressive!  Which 3.3v boost chip are you using?  I ask because I was under the impression that the boost circuits added considerably to the current drain, even if the Moteino is asleep.  If that's not true, then I would maybe like to do the same.

@d00m178 The units you calculated in your OP are wrong.  You want to calculate your current consumption in mah per day, not ma.  Then, you can roughly estimate how many days by dividing that number into the mah of your battery capacity.

d00m178

Quote from: damonb on November 18, 2015, 09:37:01 PM
I suspect your consumption estimate is way over-stated. The period of high drain (radio transmission) should be measured in milliseconds not seconds.

Yes, I suppose you are right.
I just connect multimeter to circuit, turn on device, and start monitoring values. So definitely these values pretty average and inacurate. Unfortunately I have no oscilloscope so I cant measure it more accurate.
So I believe, in fact, power consumption should be less. But I need to be sure that my batteries will work all the time which I need, so I'm going to install batteries with reserve of power.


d00m178

Quote from: WhiteHare on November 18, 2015, 10:59:13 PM

@d00m178 The units you calculated in your OP are wrong.  You want to calculate your current consumption in mah per day, not ma.  Then, you can roughly estimate how many days by dividing that number into the mah of your battery capacity.

That's what exactly I did - I have calculated power consumption per hour and then multiplied it on 24.
I have also calculated it in different way and values came the same:

work mode (WM) - time 3 sec (according to my code), power consumption 50 mA (according to MAX multimeter values in measure time)
sleep mode  (SM) - time 57 sec, PS == 0.05 mA
then:

WM - in 1 hour device will work 3*60minutes == 180 sec
SM - in 1 hour device will sleep 57*60 == 3420 sec

1 hour has 3600 sec so,
1 hour WM will consume power:

3600 - 50
180 - x
x == (180*50)/3600 ==  2.5 mA

1 hour SM will consume power:

3600 - 0.05
3420 - x
x == (3420*0.05)/3600 == 0.0475 mA

In sum power consumption PER HOUR will be 2.5475 mA.
PER DAY == 2.5475*24 == 61.14 ~ 65mA as I stated previously.

Am I still wrong? Please take a look.

TomWS

#10
Quote from: d00m178 on November 18, 2015, 11:48:22 AM
<...snip>
I suppose that device will consume about 65mA in 24 hours - it will work 3 seс in every minute, then it will go into sleep mode for rest time, then wakeup, do work, and then again sleep.
this 65mA was calculated in this way:

3sec/3600*60*24*50mA == 60mA in 24 hours in work mode.
57sec/3600*60*24*0.05mA == 1.14mA in 24 hours in sleep mode.

With photo-resistor it will maybe 30mA in a day, because device should sleep half of 24 hours.

My question is - which batteries should I use for my device if I want my device working at least 3 month ?
I'm looking at 18650 batteries with 3000mAh.
Two such batteries give me 6000mAh and seems it will work for more that 90 days even without photo-resistor - 6000/60 == 100days.

Any advices? maybe I'm wrong in my calculations ?

Thank you in advance.

Given your model of

  • 50uA quiescent,
  • 60mA for a 3 second duration (there are probably ways to improve this...)
  • 60 seconds sampling interval
  • sampling only 12 hours a day
a 3000mAH battery will give you around 81 days of life.  IF you can actually pair two LiPos to yield 6000mAH IN PARALLEL, then you'd get double this.  I qualify the statement because putting two batteries in series does nothing to extend your battery life - you'll only throw away any power above 3.3V.   You could use two schottky diodes with a common cathode feeding Vin and each anode tied to each battery.  This won't be perfect but it will be close...

BTW, two AA Ultimate Lithium batteries will give you the same result (as one 18650), albeit not rechargeable, but won't self-discharge as quickly either.

Tom
UPDATE: Added clarification to AA battery life.

d00m178

I have 3 LiPo batteries like this
http://www.alibaba.com/product-detail/505072-lithium-polymer-battery-3-7v_60180851261.html

3.7 V and 2000 mAh

Can I connect them in parallel to increase capacity to ~6000 mAh?
These batteries has some charge controller onboard so I'm wondering if it safe to connect in parallel.



WhiteHare

#12
By the way, table 55 of the RFM95/96 datasheet says that typical current during receive mode is 10.3-13.8ma, and  20-28ma in Tx mode.  So, as Tom alluded, 60ma over 3 seconds sounds a lot higher than it needs to be...  For instance, if you're transmitting every minute, maybe just Tx and forget about listening for an ACK.  That alone might save your high current window by 90%, even with the low LoRa bitrates.

d00m178

I have 10 thermosensors ds18b20 which measure in this 3 sec window and they powered from digital pin of MC.
so maybe consumption grows because of these sensors.

Now I need install my LiPo battery and just wonder if I can connect them in parallel.

TomWS

Quote from: d00m178 on November 19, 2015, 04:12:47 PM
<...snip>
Now I need install my LiPo battery and just wonder if I can connect them in parallel.
Definitely not, unless you have the fire department and bomb squad standing by.

You can connect more than one battery to Vin  IF and ONLY IF, you isolate each battery from each other with a blocking diode as I suggested earlier.

Also, I personally wouldn't trust a LiPo battery from 'just anybody'.  I know someone on this forum (who shall remain anonymous) who has regretted that decision.  If you really care about reliability, then buy from a source (manufacturer) you know and warrants their product.

Doing more than one battery this way will complicate your charger (you'll need three individual circuits) if you have an on-board charger.  On the other hand, it would permit you to pull 2 of the batteries while the other remains while you charge the two.

Tom