Engineering ProjectsBsc-ITDiplomaIT ProjectsMsc-IT Projects

Automated Coin Based Water Dispenser System

The Automated Coin-Based Water Dispenser System represents a leap forward in smart hydration technology. Designed with public spaces, busy institutions, and areas with water scarcity in mind, this system delivers water efficiently, hygienically, and sustainably, all at the cost of a coin. Let’s dive into the workings, benefits, and applications of this innovative system.

How It Works:

The system revolves around a series of integrated technologies:

  • Coin Sensor: Detects and verifies the authenticity of the coin inserted.
  • IR Sensors: Detect the presence of a glass or container to ensure water is dispensed only when there’s something to collect it.
  • Microcontroller: Acts as the brain of the system, processing signals from the sensors and controlling the water pump.
  • Water Pump: Dispenses water when activated by the microcontroller, based on inputs from the coin sensor and IR sensors.

When a user inserts a coin, the coin sensor recognizes it and signals the microcontroller. The IR sensors detect whether a glass is placed. If all conditions are met, the microcontroller activates the water pump, and water is dispensed until the glass is removed or the predetermined amount is reached.

Advantages of the System:

  • Water Conservation: By dispensing water only when a container is present, the system reduces water wastage.
  • Hygienic: The automated nature of the dispenser reduces the need for hand contact, promoting better hygiene.
  • Cost-Effective: Helps manage water distribution in a cost-effective way, especially useful in public areas or regions facing water scarcity.
  • Versatile Application: Can be used for water, cola, or any other liquid that needs to be dispensed.


This type of dispenser system is ideal for:

  • Public parks, zoos, and recreational areas where people can refill their water bottles.
  • Schools, colleges, and educational institutions to provide easy access to drinking water.
  • Bus stations, airports, and public infrastructure places where people need quick access to hydration.
  • Commercial establishments like malls or cinemas, adding value to customer service.

Future of Water Dispensing Systems:

As technology advances, we can expect to see more intelligent features integrated into these systems, such as digital payments, water quality monitoring, and even IoT connectivity for remote management and analytics. The future promises even more user-friendly, conservation-minded, and technologically advanced hydration solutions.

Sample Code

// Define Pin Numbers
const int coinSensorPin = 2;    // Pin connected to the coin sensor
const int irSensorPin = 3;      // Pin connected to the IR sensor
const int pumpPin = 4;          // Pin connected to the Relay or Transistor controlling the pump

void setup() {
  // Initialize pins
  pinMode(coinSensorPin, INPUT);
  pinMode(irSensorPin, INPUT);
  pinMode(pumpPin, OUTPUT);
  // Start Serial Communication

void loop() {
  // Read sensors
  int coinDetected = digitalRead(coinSensorPin);
  int glassDetected = digitalRead(irSensorPin);
  // Check if coin is inserted and glass is present
  if (coinDetected == HIGH && glassDetected == HIGH) {
    // Activate water pump
    digitalWrite(pumpPin, HIGH);
    Serial.println("Dispensing water...");
    // Here you might want to add a delay or mechanism to stop dispensing after a certain time
    // delay(5000); // Example: Dispense water for 5 seconds
    // After dispensing, you might want to reset the coin detection or wait for the next coin
    // Reset mechanism or additional code goes here
  } else {
    // Stop water pump
    digitalWrite(pumpPin, LOW);
  // Small delay to avoid spamming; adjust as necessary for your specific sensors' rate
Click to rate this post!
[Total: 0 Average: 0]

Download Automated Coin Based Water Dispenser System PDF

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button