Hi,
if I'm wrong here with my post, please excuse me. I didn't use the search function into the deep - lack of time.
I am building a monitoring system for a set of four lead-acid batteries. The best way to monitor the remainig capacity of these batteries are the amperehours. So I started up with a Wemos D1 and a modified INA219 breakout board (both clones from China?) to get the charging and discharging current and summing up the amperehours using a two second timer in a rule.
At first I got really strange results far off reality until I figured out, that the event Rules#Timer is fired too fast by a factor of around 1.33~. After including a correction factor in my rule the results are still somewhat rough estimations of the remainig capacity, but pretty fine for my project. So for me there is no problem anymore.
Is this misfiring of the Rules#Timer a unique issue of my hardware or is it already known?
Timer too fast in rules
Moderators: grovkillen, Stuntteam, TD-er
Timer too fast in rules
Code: Select all
pi@raspberrypi:~ $ man woman
No manual entry for woman
pi@raspberrypi:~ $
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Timer too fast in rules
Yes we're aware that timers are not 100% accurate. Just a question, what exact length of timers are you using?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Timer too fast in rules
Hi,
I am using two seconds for my calculations.
I am using two seconds for my calculations.
Code: Select all
pi@raspberrypi:~ $ man woman
No manual entry for woman
pi@raspberrypi:~ $
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Timer too fast in rules
I would say that the error you are experiencing is biggest at 1-2 second timers.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Timer too fast in rules
Yes, I already supposed that.
I know that setting up a time depending calculation using a timer event is not the best way. But I am glad to get my hands on an ampere hour meter using the rules. Helps a lot monitoring my batteries. And I am fine, if the correction factor works.
Fortunately I do have a stationary installed ampere hour meter, so I am able to doublecheck my results. Up to now it looks good, difference of about 3-4% - acceptable for me.
I know that setting up a time depending calculation using a timer event is not the best way. But I am glad to get my hands on an ampere hour meter using the rules. Helps a lot monitoring my batteries. And I am fine, if the correction factor works.
Fortunately I do have a stationary installed ampere hour meter, so I am able to doublecheck my results. Up to now it looks good, difference of about 3-4% - acceptable for me.
Code: Select all
pi@raspberrypi:~ $ man woman
No manual entry for woman
pi@raspberrypi:~ $
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Timer too fast in rules
We will add higher resolution later on, for sure with the ESP32. But we're not quite there yet.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Bing [Bot] and 51 guests