Hello, I have a similar problem. I have the same goal that involves turning the compressor on when below 120 psi and turning it off when it reaches it. The code seems to be exactly the same as the images posted. Problem is that the compressor stays on forever. What am I missing that turns the compressor off? I have attached screenshots of my code to a zip file.
Pics.zip (92 KB)
Pics.zip (92 KB)
Is your pressure switch working and connected to DIO 14? On the dashboard, do you see DIO 14 change when the pressure reaches 120?
It seems that I had the wrong version of my team’s pin-out. It was supposed to be connected to DIO 8. It is working fine now.
Thanks