Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short battery life with CR2032 #50

Open
duhanebel opened this issue Apr 8, 2022 · 22 comments
Open

Short battery life with CR2032 #50

duhanebel opened this issue Apr 8, 2022 · 22 comments

Comments

@duhanebel
Copy link

duhanebel commented Apr 8, 2022

Hi,
I've made 5 of these sensors v2 (great work btw! Thanks!!) without any extra sensor. That means I've only soldered:

  • E18-MSI-PCB
  • R1, R2, R3, R4
  • LED1
  • C1, C2
  • D1
  • SW1

Unfortunately I've now been running them for a few weeks and the battery voltage seems down between 2.2v and 2.8v. This is not consistent between different sensors.
What can be the reason for this? How can I find out what has gone wrong?

Also, reporting battery % varies wildly with time - see percentage vs actual voltage:
image
Screenshot 2022-04-08 at 11 05 05

@quark72
Copy link

quark72 commented May 22, 2022

I have the same problem and discovered, that the module send not only one telegram/message. It send between 4 and 6 telegrams. And i see how in the first telegram the Voltage is 3.0V and in the last telegram it drops down.
I don't understood when and why how much telegrams are repeated - sometime it send 4, sometime 6, sometime 4. Only one time i received only one telegram.
The sending takes sometime a little bit over 1sec. Is it possible that this repeatedly sending of Data the Problem is?

@mattes34
Copy link

mattes34 commented Jun 4, 2022

I also had the problem and built a firmware where only the soil moisture is measured. With this firmware I don't see jumps in the battery value since one day.

@duhanebel
Copy link
Author

@mattes34 would you be able to send me an hex file with your version? I can't make IAR work for me no matter how much I tried :/

@mattes34
Copy link

mattes34 commented Jun 5, 2022

Sure DIYRuZ_Flower_only_soilmoisture.zip
I think only with soil moisture measuring its possible to save energy by going back to only one cycle measurement like it was before Do only one wakeup cycle. If I fine time I will test it in the next days

Note: For reconnecting after flashing its seems that a factory reset is needed ? . I'm currently not sure how the connection is saved..

@smartboxchannel
Copy link

Try this special firmware for Versions 2 and 3 sensors running on cr2032

smartboxchannel/Plant-Watering-Sensor-Zigbee@53922d3

@duhanebel
Copy link
Author

duhanebel commented Jun 13, 2022

@smartboxchannel is that a drop in replacement for the v2 I've built? I've tried to flash it but the device keeps reporting NULL% moisture

@MatthijsThijssen
Copy link

MatthijsThijssen commented Jun 13, 2022 via email

@duhanebel
Copy link
Author

duhanebel commented Jun 21, 2022

@mattes34 I've tried with your firmware and while one device now works, other two refused to pair (3 LED blink every time). I'm not sure what I'm doing wrong. I've tried resetting the board by holding the button for 10seconds. On zigbee2mqtt I forced-removed the devices. My coordinator has only 10 devices connected so I don't think that is the problem (it wasn't before)
UPDATE: Never mind - my coordinator wasn't powerful enough and now it all works!

@Darozas
Copy link

Darozas commented Dec 12, 2022

@mattes34 I've tried with your firmware and while one device now works, other two refused to pair (3 LED blink every time). I'm not sure what I'm doing wrong. I've tried resetting the board by holding the button for 10seconds. On zigbee2mqtt I forced-removed the devices. My coordinator has only 10 devices connected so I don't think that is the problem (it wasn't before) UPDATE: Never mind - my coordinator wasn't powerful enough and now it all works!

Hi duhanebel , And how is battery life is with this firmware ? Regards

@mattes34
Copy link

mattes34 commented Dec 12, 2022

Hi, I think the runtime was still not good. All my sensors run out after ~30days (2h reporting time). My new Idea is to set more focus on the measurement itself, becouse the start and stop of sampling is done in the event loop (static void zclApp_ReadSensors(void)) and maybe the measurement PWM is to long on. But I don't find time to work on it. To many projects.

mm maybe I find time to build a untested firmware, If you want to test it.

@Darozas
Copy link

Darozas commented Dec 12, 2022

Hi, I think the runtime was still not good. All my sensors run out after ~30days (2h reporting time). My new Idea is to set more focus on the measurement itself, becouse the start and stop of sampling is done in the event loop (static void zclApp_ReadSensors(void)) and maybe the measurement PWM is to long on. But I don't find time to work on it. To many projects.

mm maybe I find time to build a untested firmware, If you want to test it.

Yes sure i have 10of them and can test and record battery's on home assistant

@mattes34
Copy link

Hi, I make some changes (dirty and untested). good luck :D

https://github.com/mattes34/flower/blob/master/firmwares/DIYRuZ_Flower_soil_moisture_only.hex

@Darozas
Copy link

Darozas commented Dec 12, 2022

Hi, I make some changes (dirty and untested). good luck :D

https://github.com/mattes34/flower/blob/master/firmwares/DIYRuZ_Flower_soil_moisture_only.hex

Thanks Got it installed ill let you know results in few weeks!!!

@Darozas
Copy link

Darozas commented Dec 12, 2022

Hi, I make some changes (dirty and untested). good luck :D

https://github.com/mattes34/flower/blob/master/firmwares/DIYRuZ_Flower_soil_moisture_only.hex

Hi Would it be hard to implement BMP280 sensor?

@duhanebel
Copy link
Author

I have a strange experience: out of 20 sensors, almost half have been running for 3+ months and have still a good amount of battery. The other half dies within weeks with brand new batteries. I wonder if it might have to do with my soldering? The components are all from the same batch.
I’ll try the new firmware anyway.. worth a try!

@mattes34
Copy link

Same manufacturer of the batteries ?
@Darozas I will build a version in the next days.

What I forgot to say is that I changed the compensation in this firmware version. :-/
I make some measurements and use a curve that 0 to 100% is from wet soil to dry. Before it was always from air to wet soil

@duhanebel
Copy link
Author

Same battery pack even. I’ve changed the firmware at one point to measure every 15m and on some sensors, the 15m firmware performs better than the 30m ones.. so I’m really unsure what’s happening.
Happy to test the firmware on the “bad ones” and see if it improves.

@Darozas
Copy link

Darozas commented Dec 13, 2022

Same manufacturer of the batteries ? @Darozas I will build a version in the next days.

What I forgot to say is that I changed the compensation in this firmware version. :-/ I make some measurements and use a curve that 0 to 100% is from wet soil to dry. Before it was always from air to wet soil

Thanks Cant wait to try!!!!

@Darozas
Copy link

Darozas commented Jan 4, 2023

Same manufacturer of the batteries ? @Darozas I will build a version in the next days.

What I forgot to say is that I changed the compensation in this firmware version. :-/ I make some measurements and use a curve that 0 to 100% is from wet soil to dry. Before it was always from air to wet soil

Hi Mattes, Happy new year!!!!

Any news on new firmware?

Regards

@duhanebel
Copy link
Author

I've just identified one of the "bad sensors". I'll install today with a fresh batter and then we'll see what happens (with the previous firmware that board died in 40 days)

@Darozas
Copy link

Darozas commented Jan 5, 2023

I have one sensor running with latest "Untested Firmware"

and battery didn't dropped yet. Its hard to tell which firmware is on sensor as both firmware's have same data

If you dont make note you can easily forget which is which

image

@duhanebel
Copy link
Author

After 6 months of testing I can conclude that... nothing. The behaviour seems to be erratic: some boards last months with one batter and then weeks with another. Some boards go on for months, while other die consistently in a few weeks. I've used the same kind of components for all 20 of them and soldered them all the same day so they should behave pretty similarly to each other.
I think this is a limitation of the CR2032: they're not consistently charged with some batches/brand lasting longer than others. This kind of device requires a battery well charged to operate (> 1.8v remaining - I can happily reuse depleted batteries with wall clocks and stuff and they'd go on for months) and I think that just makes this situation worse.
I might just swap them all for the AAA holder: that would boost capacity 5x-8x and hopefully solve the problem.

At least that's my conclusion after all these months.. let me know if you had a different experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants