Hi,
I would like to measure the total time an LED is switched on.
(This is the LED which shows that the burner of my wood pellet heating is active - I'd like to create an operating hours counter.)
I hope to get the hardware part set up using a photo transistor on a digital input of a D1 mini.
While experimenting, I couldn't find a way to measure the on-time of an input.
Is this missing from ESPeasy, or did I just not find the right device setup?
I already tried the pulse counter - but it seems to me that this device was not designed for this kind of task.
I'd really appreciate any hints that might help me solve this!
TIA
Rico
How to measure on-time?
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: How to measure on-time?
I would do it using a switch input and a timer that is triggered once per minute.
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: How to measure on-time?
So you mean I should solve this using rules?
Sounds like a good reason to start digging into this topic...
I think I would like to have a slightly better time resolution than one minute - but this will probably work fine every 10 seconds or so, too.
Thanks for the idea!
Sounds like a good reason to start digging into this topic...
I think I would like to have a slightly better time resolution than one minute - but this will probably work fine every 10 seconds or so, too.
Thanks for the idea!
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: How to measure on-time?
Yes you could do once per second so 10 seconds is a good number.
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: Ahrefs [Bot] and 26 guests