Welcome to Kerala Project Center.
Compressed air is essential for spray painting, tire filling, and running pneumatic tools, but standard compressors are heavy, run continuously once switched on, and generally lack any automatic safety cutoff — risking overpressure and wasting power running past the point the tank is already full.
This project builds a portable compressor with a pressure sensor continuously monitoring tank pressure. Once pressure reaches a preset upper limit, the controller cuts power to the compressor motor through a relay automatically, and can restart the motor once pressure drops below a lower threshold — keeping the tank within a working pressure range without the user having to watch a gauge and switch it off manually.
// Simplified pressure-threshold auto cutoff - Arduino
int pressurePin = A0;
int compressorRelay = 7;
float upperLimitPSI = 120.0;
float lowerLimitPSI = 100.0;
bool motorRunning = false;
float readPressurePSI() {
int raw = analogRead(pressurePin);
return raw * (150.0 / 1023.0); // calibrate to sensor's rated range
}
void setup() {
pinMode(compressorRelay, OUTPUT);
Serial.begin(9600);
}
void loop() {
float pressure = readPressurePSI();
Serial.println(pressure);
if (motorRunning && pressure >= upperLimitPSI) {
digitalWrite(compressorRelay, LOW); // cut power - limit reached
motorRunning = false;
} else if (!motorRunning && pressure <= lowerLimitPSI) {
digitalWrite(compressorRelay, HIGH); // restart - pressure dropped
motorRunning = true;
}
delay(300);
}
Monday - Saturday: 9:00 AM - 5:00 PM
Sunday: Not Working
2nd Floor, Comptron Arcade, Kallattumukku,
Thiruvananthapuram, Kerala 695012
+91 9633118080