MAX6675 Interval

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

MAX6675 Interval

#1 Post by wiredcharlie » 20 Nov 2022, 09:28

Using MAX6675 with K-type thermocouple, on the Devices page the Interval is set to 1 sec, but the output is quite noisy.

Is it possible to set an interval below 1 sec then do some averaging in the Rules?

Thanks

Tony

TD-er
Core team member
Posts: 8747
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MAX6675 Interval

#2 Post by TD-er » 20 Nov 2022, 10:48

Not sure about the minimal sample interval of the sensor itself.
But it is possible via rules to sample at a shorter interval.
You an use the msec version of looptimer.
When handling this looptimer, you can call "taskrun" on that task. (This will also flush data to a connected controller)

In the latest (not with LIMIT_BUILD_SIZE defined) builds you can check to use the pluginstats.
See:
- https://espeasy.readthedocs.io/en/lates ... tats#stats
- https://espeasy.readthedocs.io/en/lates ... statistics

This does allow you to simply get the average over the last N samples.
Also the peaks are logged, but those have to be reset by the user if you need to see the peaks since the last call to reset.

wiredcharlie
Normal user
Posts: 57
Joined: 28 Sep 2020, 13:58

Re: MAX6675 Interval

#3 Post by wiredcharlie » 20 Nov 2022, 18:57

Thank you - really helpful :D

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests