I am going to use Arduino to make a pump protection, such that the pump does not burn itself up if the water is frozen, the pump clocked etc.
This will be done by measuring the current, issuing short delays, measuring again, another delay. From these measurements I will compute the current power supplied to the pump, and if it exceeds safe levels cut the supply voltage.
Now, the documentation tells me that the millis function goes back to zero about every 50 days. What happens to a delay that is issued before the function millis goes to zero again, but which would have expired after the reset. It seems such a delay would never terminate.
Very much interested in light on this issue! (Rather than having to analyze why pumps blew up every now and then).
Is it possible to reset the millis timer through code (say once a month)?