Corona Safe: Automatic Water-saving Tap

by TanmayBenjwal in Circuits > Arduino

594 Views, 4 Favorites, 0 Comments

Corona Safe: Automatic Water-saving Tap

WhatsApp Image 2020-09-15 at 12.33.40 PM.jpeg
WhatsApp Image 2020-09-15 at 12.33.40 PM (1).jpeg

We all have to wash hands every now then to get rid of the virus and bacteria specially for Corona virus we need to wash our hands for 20 seconds to completely get rid of it. Also the soap dispenser or the tap knob may not necessary be hygienic or clean and its the first and last thing we touch while cleaning our hands. Also the water keeps on running these 20 seconds while we are still rubbing our hands with soap.

This project overcome these two problem

1- Hygiene

2- water wastage

by providing a cheap automatic solution

Measurments

IMG20200914152158.jpg
IMG20200914152146.jpg
IMG20200914155524.jpg

Note the shape and measure the tap knob size, diameter and note it down. Also measure the height of the knob from top of basin and note it.

CAD Design

WhatsApp Image 2020-09-15 at 11.21.05 AM.jpeg
IMG20200914155553.jpg
IMG20200914155559.jpg

Make your CAD design using previous noted measurements. I used ThinkerCad.

Do make sure to make the cad design few mm bigger in diameter because it has to fit on top of the knob.

Also design and print the frame it can be very simple cuboid stick, its just for support.

Now save/download the .stl file.

open it in your preferred slicer and slice it. I used creality-cura slicer.

you can download my .stl file and play around

3D Printing

IMG20200914162056.jpg
IMG20200914162141.jpg
IMG20200914163027.jpg

3D print your CAD model and clean it using some sandpaper. Specially from the inside to same smooth contact with the Tap knob.

Knob Assembly

IMG20200915110759.jpg
IMG20200914174805.jpg
IMG20200915110835.jpg
IMG20200915110905.jpg

Now carefully align the servo head with the center of axis of knob rotation depending on your knob shape and size it may vary, mine is cylindrical so its the center point.

Now take super-glue and stick it in its position carefully.

Also test it by putting the head back on the servo and rotating it manually.

Wiring

IMG20200914162158.jpg
IMG20200914165734.jpg
IMG_20200915_110714.jpg

Connect the Arduino board to computer/laptop and connect as shown in wiring diagram

below is the code for the program you may need to change servo rotating parameters(in degrees and clockwise or anti-clockwise) according to your tap knob rotation.

you can also download directly the ino file given (Arduino ide).

code is as follows:-

#include
Servo myservo; const int buttonPin = 2; // the number of the pushbutton pin int buttonState = LOW; void setup() { // put your setup code here, to run once: myservo.attach(9); // attaches the servo on pin 9 to the servo object pinMode(buttonPin, INPUT); }

void loop() { buttonState = digitalRead(buttonPin); // put your main code here, to run repeatedly: // check if the pushbutton is pressed. If it is, the buttonState is HIGH: if (buttonState == HIGH) { myservo.write(190); // tell servo to go to position in variable 'pos' } buttonState = digitalRead(buttonPin); if (buttonState == LOW){ myservo.write(10); // tell servo to go to position in variable 'pos' } }

Final Assembly

WhatsApp Image 2020-09-15 at 12.33.40 PM (2).jpeg
WhatsApp Image 2020-09-15 at 12.33.41 PM.jpeg
WhatsApp Image 2020-09-15 at 12.33.41 PM (1).jpeg
WhatsApp Image 2020-09-15 at 12.33.41 PM (2).jpeg

Stay Safe and enjoy your own automated water saving Tap.