Automatic Faucet (Touchless) for COVID-19 Using Arduino
Wash your hands comfortably and avoid getting coronavirus disease. Don't touch the surface of the faucet after you wash them. Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Automatic Faucet (Touchless) for COVID-19 Using Arduino is a arduino project. Wash your hands comfortably and avoid getting coronavirus disease. Don't touch the surface of the faucet after you wash them. Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19…
- Source pages
- 656-659
- Named parts
- 6
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
- Computer with a data-capable USB cable
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- Keep liquids, loose metal, and uninsulated wires away from the bench.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications
MODULE LEARNING VIEWArduino Nano R3
A programmable controller that reads inputs, makes decisions, and drives the project's outputs.
What it does hereIt is the control centre and must use the documented board, pin map, supply, and logic level.
Buy / compare this part ↗Advantages
- Reprogrammable and reusable
- Large learning ecosystem
- Complex behaviour remains changeable
Limitations
- GPIO voltage and current are limited
- Some pins affect boot or communication
- Loads normally need a driver
Handling
- Disconnect power before rewiring
- Avoid static discharge
- Never power motors, relays, or pumps directly from GPIO
Specifications to verify
- Use the exact model, value, package, and rating listed for Arduino Nano R3; similar-looking parts are not always interchangeable.
- Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
What's this?Image, role, pros, cons, handling & specifications

Solderless Breadboard Half Size
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for Solderless Breadboard Half Size; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

Jumper wires (generic)
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for Jumper wires (generic); similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

Ultrasonic Sensor - HC-SR04 (Generic)
A sensor converts a physical condition into an electrical signal the circuit can measure.
What it does hereIt provides project input as an analogue, digital, resistive, frequency, or calibrated signal.
Buy / compare this part ↗Advantages
- Adds real-world awareness
- Can usually be tested independently
- Often supports calibration
Limitations
- Readings can drift
- Placement affects results
- Some sensors need warm-up or calibration
Handling
- Protect the sensing surface
- Observe supply voltage and polarity
- Keep signal leads away from noisy power wiring
Specifications to verify
- Use the exact model, value, package, and rating listed for Ultrasonic Sensor - HC-SR04 (Generic); similar-looking parts are not always interchangeable.
- Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
What's this?Image, role, pros, cons, handling & specifications
PART LEARNING VIEWSubmersible water pump - 5V
An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.
What it does hereIt presents the circuit result or acts on the physical world.
Buy / compare this part ↗Advantages
- Makes system state visible
- Can be tested separately
- Supports clear troubleshooting
Limitations
- Loads may exceed controller current
- Polarity or driver direction can matter
- Inductive loads create voltage spikes
Handling
- Use the documented driver stage
- Check polarity and load current
- Add flyback protection for inductive loads
Specifications to verify
- Use the exact model, value, package, and rating listed for Submersible water pump - 5V; similar-looking parts are not always interchangeable.
- Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
What's this?Image, role, pros, cons, handling & specifications

Relay Module (Generic)
An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.
What it does hereIt presents the circuit result or acts on the physical world.
Buy / compare this part ↗Advantages
- Makes system state visible
- Can be tested separately
- Supports clear troubleshooting
Limitations
- Loads may exceed controller current
- Polarity or driver direction can matter
- Inductive loads create voltage spikes
Handling
- Use the documented driver stage
- Check polarity and load current
- Add flyback protection for inductive loads
Specifications to verify
- Use the exact model, value, package, and rating listed for Relay Module (Generic); similar-looking parts are not always interchangeable.
- Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Automatic Faucet (Touchless) for COVID-19 Using Arduino: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 2 visuals


Prepare, upload, and verify the program.
Follow the same software sequence every time: verify connections, prepare the toolchain, compile, and upload.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
- Install the current Arduino IDE or the software named in the guide.
- Install the correct board package and required libraries.
- Select the exact board, processor, and serial port.
- Compile once before connecting external loads.
How to upload code
- Connect the board with a data-capable USB cable.
- Open the documented sketch and confirm configuration values.
- Compile, fix the first reported error, and upload.
- Test with external loads disconnected first.
Common mistakes
Wrong port, missing library, incorrect board selection, boot pins held in the wrong state, or a busy serial port.
Program
#define trig 5
#define echo 4
const int Relay = 6;
long duration;
int distance;
void setup() {
pinMode(trig, OUTPUT); // Set the trigger pin as OUTPUT
pinMode(echo, INPUT); // Set the echo pin as INPUT
pinMode(Relay, OUTPUT); // Configure the pin of the relay module asOUTPUT
Serial.begin(9600); // Set baud rate as 9600
}
void loop() {
digitalWrite(trig, LOW);
delayMicroseconds(5);
digitalWrite(trig, HIGH);
delayMicroseconds(10);
digitalWrite(trig, LOW);
duration = pulseIn(echo, HIGH); // Calculate time taken (in microseconds)
for the pulse emitted by the trigger pin to reach the echo pin.
distance = (duration/2) * (331.3/10000); // Calculate the distance from the
sensor to the obstacle in cm, using the speed of sound in air(m/s) and the
time taken (stored in duration variable)
Serial.println(distance);
if(distance>1 && distance<10){
digitalWrite(Relay, HIGH); //Turns on the submersible water pump or
solenoid water valve
}
Else
{
digitalWrite(Relay, LOW); //Turns off the submersible water pump or
solenoid water valve
}
delay(2000); // Set a delay period of 2 seconds to prevent the clicking of the
relay module
}Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build noteWash your hands comfortably and avoid getting coronavirus disease. Don't touch the surface of the faucet after you wash them. Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19 Using Arduino A disease caused by the severe acute respiratory syndrome coronavirus 2 is known as coronavirus disease (COVID-19), also known as the coronavirus severe acute respiratory syndrome (SARS-Cov-2). More than a million
people worldwide have been affected by COVID-19 and hundreds of thousands of people have lost their lives as a result. People are affected by this disease in different ways. Many people develop mild to moderate illnesses that require no hospitalization or special treatment, while others develop severe illnesses that ultimately lead to death. A person infected with this virus can incubate for an average of 5-6 days, but it can also incubate for 2 weeks. It could be contagious during this period, even though the person may not be experiencing any symptoms. If the person doesn't take any precautions, he will be a virus carrier and will spread the illness easily.
Components Required
Project build noteArduino Nano R3 Solderless Breadboard Half Size Jumper wires (generic) Ultrasonic Sensor - HC-SR04 (Generic) Submersible water pump - 5V Relay Module (Generic) Coronavirus has been spreading rapidly around the world and will continue to spread. The second wave of the coronavirus is still affecting some countries while others are still in lockdown and still aren't seeing any recovery .
Fig.1: Circuit Diagram of Automatic Faucet (Touchless) for COVID-19 Using Arduino
You built Automatic Faucet (Touchless) for COVID-19 Using Arduino.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects