Devices & Components
Arduino Nano
Infrared Module (Generic)
DC motor (generic)
Jumper wires (generic)
Resistor 221 ohm
General Purpose Transistor NPN
Hardware & Tools
Soldering iron (generic)
PCB Holder, Soldering Iron
Solder Wire, Lead Free
Project description
Code
EWD Code
arduino
1void setup() { 2 pinMode(2, INPUT);//define arduino pin 3 pinMode(3, 4 OUTPUT);//define arduino pin 5 Serial.begin(9600);//enable serial monitor 6} 7void 8 loop() { 9 bool value = digitalRead(2);//get value and save it boolean veriable 10 11 if (value == 1) { //check condition 12 Serial.println("OFF");//print serial 13 monitor ON 14 digitalWrite(3,LOW);//Motor on 15 } else { 16 Serial.println("ON");//print 17 serial monitor OFF 18 digitalWrite(3,HIGH);//Motor off 19 } 20} 21
EWD Code
arduino
1void setup() { 2 pinMode(2, INPUT);//define arduino pin 3 pinMode(3, OUTPUT);//define arduino pin 4 Serial.begin(9600);//enable serial monitor 5} 6void loop() { 7 bool value = digitalRead(2);//get value and save it boolean veriable 8 if (value == 1) { //check condition 9 Serial.println("OFF");//print serial monitor ON 10 digitalWrite(3,LOW);//Motor on 11 } else { 12 Serial.println("ON");//print serial monitor OFF 13 digitalWrite(3,HIGH);//Motor off 14 } 15} 16
Downloadable files
EWD
An Arduino based circuit for Electronic Water Dispenser
EWD

EWD
an electronic water dispenser without a human contact with the device
EWD

EWD
an electronic water dispenser without a human contact with the device
EWD

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

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

Comments
Only logged in users can leave comments