junimacs
Published © LGPL

Electronic Water Dispenser

As part of the completion and to experience practical application of human and computer interface, we came up to a project that of relevant

AdvancedWork in progress636
Electronic Water Dispenser

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Infrared Module (Generic)
×1
DC motor (generic)
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
Resistor 221 ohm
Resistor 221 ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
PCB Holder, Soldering Iron
PCB Holder, Soldering Iron

Story

Read more

Custom parts and enclosures

EWD

All you need to dispense a water is to place your glass near the sensor and water will dispense automatically

Schematics

EWD

An Arduino based circuit for Electronic Water Dispenser

EWD

an electronic water dispenser without a human contact with the device

Code

EWD Code

Arduino
void setup() {
  pinMode(2, INPUT);//define arduino pin
  pinMode(3, OUTPUT);//define arduino pin
  Serial.begin(9600);//enable serial monitor
}
void loop() {
  bool value = digitalRead(2);//get value and save it boolean veriable
  if (value == 1) { //check condition
    Serial.println("OFF");//print serial monitor ON
    digitalWrite(3,LOW);//Motor on
  } else {
    Serial.println("ON");//print serial monitor OFF
    digitalWrite(3,HIGH);//Motor off
  }
}

Credits

junimacs

junimacs

0 projects • 0 followers

Comments