I have always wanted to try to keep a running approximation of pressure just using observations. Something like:
Code:
if (compressor just stopped running)
approximate psi = 120
else if ((compressor just started running) and (approximate psi > 110))
approximate psi = 105
else if (compressor is running)
approximate psi = approximate psi + (1 psi/second)
else
approximate psi = approximate psi - (0.02 psi/second)
if (piston1 is actuated)
approximate psi = approximate psi - 10
if (piston2 is actuated)
approximate psi = approximate psi - 30
Given, the accuracy of the approximate psi value would probably decrease over time. Although it would reset to 120 whenever the compressor stops running. It could be very useful for checking to see if working pressure is >= 60, simply by checking to see if the approximate psi is > 70 or something like that.
Has anyone done something similar to this? I am curious to know if it was successful.