I much prefer the form:Code:Temp += 0.05 * (Reading-Temp) ;You don't have to remember to change both constants each time and its provable stable when Reading == Temp even with floating point rounding issues. both 0.95 and 0.05 are inaccurately represented in floating point and in particular 0.95+0.05 may not equal 1.0
I only had a single relay and an LCD shield
Since the Arduino analog inputs are only 10-bit, a raw value change of two jumps almost an entire degree (°C).
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16