💬 MyMultisensors
-
@alexsh1
so you get 1.5mA with sketch J but 35uA with your code ?? something is wrong..you may have forgotten to shutdown some peripherals.
with sketch J, you need to shutdown everything on your board in case peripherals are not well initialized. So that implies you include libs for radio etc in sketch J. Then disconnect your ftdi for power consumption tests. the PIR sensor itself won't consume more than 2-3uA, I tested it too.
On other side, sketch J is just a basic test, because almost same code is used in MySensors lib for sleep()Sometimes I read people saying they have x uA power consumption for 328p standalone in deep sleep mode, but this is strange because here, on different 328p design, I have always been able to confirm the current consumption from the datasheet which is nA range. But I always used uCurrent..and reliable capa (X7R etc), hopefully I never got one capa extra leaking so far.
There is no magics, especially for this board, you should get what datasheets say..
When I made this board, I started by soldering only 328p circuit and checked power consumption, then tested step by step additional peripheral. -
@alexsh1
so you get 1.5mA with sketch J but 35uA with your code ?? something is wrong..you may have forgotten to shutdown some peripherals.
with sketch J, you need to shutdown everything on your board in case peripherals are not well initialized. So that implies you include libs for radio etc in sketch J. Then disconnect your ftdi for power consumption tests. the PIR sensor itself won't consume more than 2-3uA, I tested it too.
On other side, sketch J is just a basic test, because almost same code is used in MySensors lib for sleep()Sometimes I read people saying they have x uA power consumption for 328p standalone in deep sleep mode, but this is strange because here, on different 328p design, I have always been able to confirm the current consumption from the datasheet which is nA range. But I always used uCurrent..and reliable capa (X7R etc), hopefully I never got one capa extra leaking so far.
There is no magics, especially for this board, you should get what datasheets say..
When I made this board, I started by soldering only 328p circuit and checked power consumption, then tested step by step additional peripheral. -
@alexsh1
where did you source your passive parts like capa, especially the bigger like 100uF ? (for curiosity)
I guess you sourced others ic like opamp and comparator from a known source. -
oki maybe try removing some of the big capa to see if it improves, use a simpler sketch where you just powerdown everything. there is no reason you don't get the low power consumption.
regarding sketch J, yes, for sure you got 1.5ma because others peripherals were not initialized/shutdown -
oki maybe try removing some of the big capa to see if it improves, use a simpler sketch where you just powerdown everything. there is no reason you don't get the low power consumption.
regarding sketch J, yes, for sure you got 1.5ma because others peripherals were not initialized/shutdown@scalz I have desoldered all caps down to 1uF. Tried a different bootloader. However, I cannot get consumption down. I have opt3001 + atsha204a + AT25DF512C (all obtained from a good source). All resistor values are correct (resistor tolerance is 1%). Not sure what else I can do...
-
oki maybe try removing some of the big capa to see if it improves, use a simpler sketch where you just powerdown everything. there is no reason you don't get the low power consumption.
regarding sketch J, yes, for sure you got 1.5ma because others peripherals were not initialized/shutdown@scalz I managed to narrow down the problem. Consumption (no radio attached) with Si7021 and opt3001 is 4.8uA, but with flash it goes up to 29uA while sleeping. This is a batch of AT25DF512C-MAHN-T I received from the US so quality is not an issue here. Seems to me that flash is not sleeping?
My tests are showing that CJ2305 MOSFET consumption is negligible
-
@alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
so I would say if it's consistent on 3sensors boards, it could be:- software
- bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)
what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.
@scalz said in 💬 MyMultisensors:
@alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
so I would say if it's consistent on 3sensors boards, it could be:- software
- bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)
what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.
@scalz
Here we go - you said "software" and I tested SPIFlash lib modified by lowpowerlab and consumption has gone down to 15uA with flash onboard vs 30uA with Mysensors SPIFlash. For whatever season, the default MySensors SPIFlash (drivers\SPIFlash) is giving a higher consumption with flash.initialize() and flash.sleep(). @tbowmo Thomas, any ideas please?@scalz What lib are you using for flash to get such a low uA?
-
@scalz said in 💬 MyMultisensors:
@alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
so I would say if it's consistent on 3sensors boards, it could be:- software
- bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)
what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.
@scalz
Here we go - you said "software" and I tested SPIFlash lib modified by lowpowerlab and consumption has gone down to 15uA with flash onboard vs 30uA with Mysensors SPIFlash. For whatever season, the default MySensors SPIFlash (drivers\SPIFlash) is giving a higher consumption with flash.initialize() and flash.sleep(). @tbowmo Thomas, any ideas please?@scalz What lib are you using for flash to get such a low uA?
-
@alexsh1
yes the mosfet power consumption is negligeable (nA), else there would be a problem ;)I had to make some changes to get such low power, I agree (including spiflash lib you're right). actually i have too much work, rather 'lazy' and no time to sort my libs.sorry.
Note: Spiflash lib from lowpowerlab (mysensors too i guess..) doesn't use the lowest power mode in sleep function.
Does the sensebender micro have a spiflash too?? then that would explain some posts I read..
As usual datasheets to the rescue, did you take a look? would have saved you time.
Easy one, in datasheet you can read:- 200nA Ultra Deep Power Down current (Typical)
- 5μA Deep Power-Down Current (Typical)
- 25uA Standby current (Typical)
- 4.5mA Active Read Current (Typical
why don't you get this super low <uA ??
section 12-5 of the datasheet is what you need, use the right opcode (command) which is 0x79 for ultra deep powerdown. create your own or tweak sleep function in lib
So now you can save at least 5uA + (other sensors not optimized maybe) + multimeter imprecision
I hope this helps! -
@alexsh1
yes the mosfet power consumption is negligeable (nA), else there would be a problem ;)I had to make some changes to get such low power, I agree (including spiflash lib you're right). actually i have too much work, rather 'lazy' and no time to sort my libs.sorry.
Note: Spiflash lib from lowpowerlab (mysensors too i guess..) doesn't use the lowest power mode in sleep function.
Does the sensebender micro have a spiflash too?? then that would explain some posts I read..
As usual datasheets to the rescue, did you take a look? would have saved you time.
Easy one, in datasheet you can read:- 200nA Ultra Deep Power Down current (Typical)
- 5μA Deep Power-Down Current (Typical)
- 25uA Standby current (Typical)
- 4.5mA Active Read Current (Typical
why don't you get this super low <uA ??
section 12-5 of the datasheet is what you need, use the right opcode (command) which is 0x79 for ultra deep powerdown. create your own or tweak sleep function in lib
So now you can save at least 5uA + (other sensors not optimized maybe) + multimeter imprecision
I hope this helps!@scalz Yes, sensebender micro does have flash and using spiflash from mysensors. I never managed to get it below 20uA in the deep sleep, but then I never looked into the libs. My sensebender micro is running from two AA batteries and 20uA is just fine. It does make difference though if running on a coin cell.
When you say ultra deep power down, which mode are you referencing?
There are six sleep modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended Standby.The datasheet - yes, I am referencing to it from time to time. I guess I'll have to dive in if I want to get it sorted. I would need to get Ucurrent Gold or get one built to measure such a low current.
EDIT: For CR2032 3uA would be a self-discharge current (1% a month)
-
It's been a while (a couple of years now) since I looked at the first sensebender micro.. (other than the data that they submit to my gateway :) )
So I'm not entirely sure what is going on..
-
@alexsh1
I'm not talking about the mcu sleep modes. I mentioned the spiflash sleep modes (or I don't get what you asked previously regarding spiflash..)
datasheet see here, ic can go <uA, if you do what i said above, you'll get the better power consumption you want,
https://www.adestotech.com/wp-content/uploads/DS-AT25DF512C_030.pdf -
@alexsh1
I'm not talking about the mcu sleep modes. I mentioned the spiflash sleep modes (or I don't get what you asked previously regarding spiflash..)
datasheet see here, ic can go <uA, if you do what i said above, you'll get the better power consumption you want,
https://www.adestotech.com/wp-content/uploads/DS-AT25DF512C_030.pdf -
oki, i think you now have the solution to what happened in your other post here ;)
https://forum.mysensors.org/topic/6846/sensebender-micro-rfm69w-consumption/14 -
oki, i think you now have the solution to what happened in your other post here ;)
https://forum.mysensors.org/topic/6846/sensebender-micro-rfm69w-consumption/14@scalz Yes, I think I mentioned sensebender micro, didn't I?
20+ uA is not too bad and given the power source is 2xAA, I never bothered to spend too much time troubleshooting it, but now things are different as I know what causes such high consumption.BTW - Sketch J in my case was giving me 1.5mA as radio was not sleeping.
-
oki, i think you now have the solution to what happened in your other post here ;)
https://forum.mysensors.org/topic/6846/sensebender-micro-rfm69w-consumption/14 -
This sensor looks pretty promising with its capabilities, size and low power consumption. Currently the only way to get it seems to be to order PCBs and then solder everything manually, correct?
I know this has been asked before, but is there progress in ordering this assembled? I might be interested, but have to say that this will be competing with other commercially available solutions like Aquara.
-
@clel
sure it was fun to make, I mean when you design your devices you can choose the best parts, try to get the best perf.., even if it's a bit more expensive than a very cheap commercial product, in the end, you know what you put in.
If I remember it cost me 15-20$ when I assembled it, not that expensive, vs versatility, sensors, and possibility to change fw.It's a quite old project, I wouldn't really advise to use 328p nowadays, it could be limited in future, says if mysensors someday get more advanced features, who knows.. it's really just my opinion. Still, I understand it's maybe easier to get started with it.
I made more modern projects, but miss time for release etcNo, I'm still not selling anything. No enough time for the moment. I think it wouldn't be worth my time. Same about compete with commercial products, like a topchef or a craftsman, I prefer to focus on other aspects when designing (quality, verstatility, perf).
If your HA is cost driven, then maybe you're right to go for Aquara. Imho diy for sensors like you mentioned will often cost the same or more than the cheapest commercial products, vs time&learning curve, parts&tools in diy.
Are these commercial products as low power, better range etc as a good care diy device, not sure.. But like I said "premium" has a cost. Pros and cons.
I think for the moment, you can't compare the range of rfm69 module vs 2.4ghz aquara. afaik aqara/zigbee needs more repeaters. -
@clel
sure it was fun to make, I mean when you design your devices you can choose the best parts, try to get the best perf.., even if it's a bit more expensive than a very cheap commercial product, in the end, you know what you put in.
If I remember it cost me 15-20$ when I assembled it, not that expensive, vs versatility, sensors, and possibility to change fw.It's a quite old project, I wouldn't really advise to use 328p nowadays, it could be limited in future, says if mysensors someday get more advanced features, who knows.. it's really just my opinion. Still, I understand it's maybe easier to get started with it.
I made more modern projects, but miss time for release etcNo, I'm still not selling anything. No enough time for the moment. I think it wouldn't be worth my time. Same about compete with commercial products, like a topchef or a craftsman, I prefer to focus on other aspects when designing (quality, verstatility, perf).
If your HA is cost driven, then maybe you're right to go for Aquara. Imho diy for sensors like you mentioned will often cost the same or more than the cheapest commercial products, vs time&learning curve, parts&tools in diy.
Are these commercial products as low power, better range etc as a good care diy device, not sure.. But like I said "premium" has a cost. Pros and cons.
I think for the moment, you can't compare the range of rfm69 module vs 2.4ghz aquara. afaik aqara/zigbee needs more repeaters.@scalz Thanks for your answer. Assembling a sensor by my own is not really what I want (or am able to achieve). So buying assembled sensor is the only option for me. Thus probably commercially available sensors will fit better, since they can use the scaling factor of assembling a huge amount of sensors. My HA is driven by cost to performance ratio, where cost also include somewhat the amount of time to invest and performance also covers things like the ease of use, appearance etc.
Interesting to hear though that those commercial sensors might be less premium regarding the part quality, battery life etc.