Welcome to Kerala Project Center.

Automatic Lemon Juice Vending Machine

Automatic Lemon Juice Vending Machine

Automatic Lemon Juice Vending Machine project diagram

During hot weather, dehydration is a real concern — the body needs water, salt, and sugar (electrolytes) quickly, and a fresh lemon juice option gives a quick, appealing way to rehydrate on demand rather than relying on pre-bottled drinks.

This project builds an automatic vending machine that dispenses a measured portion of lemon juice — juice concentrate, water, and a salt/sugar mix — at the press of a button or coin insertion. Small dosing pumps run for pre-timed durations to mix a consistent drink each time, and a cup-presence sensor checks a cup is actually in place before dispensing starts.

How It Works

  • The user inserts a coin (or presses a button, for a simplified demo build) to start a dispense cycle.
  • An IR sensor checks a cup is present under the nozzle before the controller allows dispensing to begin.
  • The controller runs a sequence of small dosing/peristaltic pumps — juice concentrate, water, and a salt/sugar solution — each for a pre-timed duration, mixing a consistent drink into the cup.
  • An indicator LED/buzzer signals when dispensing is complete.

Components



Arduino/microcontroller
Small dosing/peristaltic pumps (x2–3: juice, water, salt/sugar mix)
Relay module
Coin acceptor sensor or push-button trigger
IR cup-presence sensor
Storage reservoirs + dispensing nozzle
Indicator LED/buzzer


Applications

  • Public spaces, gyms, and college/campus canteens
  • Summer event stalls and outdoor gatherings

Advantages

  • Consistent, hygienic, on-demand dispensing without a human vendor
  • Measured dosing keeps taste and concentration consistent every time
  • Low-cost automation for a simple, high-demand refreshment product

Sample Code — Cup Check and Pump Dosing Sequence



// Simplified cup-check + pump dosing sequence - Arduino
int cupSensorPin = 2;
int juicePumpRelay = 5;
int waterPumpRelay = 6;
int saltSugarPumpRelay = 7;

void dispense() {
  digitalWrite(juicePumpRelay, HIGH);      delay(1500); digitalWrite(juicePumpRelay, LOW);
  digitalWrite(waterPumpRelay, HIGH);      delay(2000); digitalWrite(waterPumpRelay, LOW);
  digitalWrite(saltSugarPumpRelay, HIGH);  delay(500);  digitalWrite(saltSugarPumpRelay, LOW);
}

void setup() {
  pinMode(cupSensorPin, INPUT);
  pinMode(juicePumpRelay, OUTPUT);
  pinMode(waterPumpRelay, OUTPUT);
  pinMode(saltSugarPumpRelay, OUTPUT);
}

void loop() {
  if (digitalRead(cupSensorPin) == HIGH) { // cup detected
    dispense();
    delay(3000); // avoid re-triggering on the same cup
  }
}


Related Research


Hours

Monday - Saturday: 9:00 AM - 5:00 PM
Sunday: Not Working

Location

2nd Floor, Comptron Arcade, Kallattumukku,
Thiruvananthapuram, Kerala 695012

Book Now

+91 9633118080