Welcome to Kerala Project Center.
Image: Orange and Apple infused water dispenser.jpg by Grandmaster Huon via Wikimedia Commons, CC0
Shared water dispensers with manual taps or push levers get touched by everyone who uses them, which is a real hygiene concern in public spaces, offices, and health-sensitive environments.
This project builds a contactless water dispenser: an ultrasonic sensor detects when a container is placed under the spout and automatically activates a water pump for a set duration, with no button, lever, or tap contact needed from the user.
// Simplified touchless dispenser - Arduino
#define TRIG 9
#define ECHO 10
int pumpRelay = 7;
int containerThresholdCM = 8;
long readDistanceCM() {
digitalWrite(TRIG, LOW); delayMicroseconds(2);
digitalWrite(TRIG, HIGH); delayMicroseconds(10);
digitalWrite(TRIG, LOW);
return pulseIn(ECHO, HIGH) * 0.034 / 2;
}
void setup() {
pinMode(TRIG, OUTPUT);
pinMode(ECHO, INPUT);
pinMode(pumpRelay, OUTPUT);
}
void loop() {
long dist = readDistanceCM();
if (dist < containerThresholdCM) {
digitalWrite(pumpRelay, HIGH); // container detected - dispense
} else {
digitalWrite(pumpRelay, LOW); // no container - stop
}
delay(200);
}
Monday - Saturday: 9:00 AM - 5:00 PM
Sunday: Not Working
2nd Floor, Comptron Arcade, Kallattumukku,
Thiruvananthapuram, Kerala 695012
+91 9633118080