STEP 1 / 6ARDUINO

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…

Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19 Using Arduino
PROJECT#329
TRACKArduino
PARTS06
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

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
02

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.

03

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.
Ready to continue?
STEP 2 / 6 · Parts library

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.

NAMED PROJECT INVENTORY6 PART LINES
PARTTYPEQTYREADY
MArduino Nano R3MODULE1
What's this?Image, role, pros, cons, handling & specifications
Arduino Nano compatible boardMODULE LEARNING VIEW

Arduino Nano R3

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It 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.
BSolderless Breadboard Half SizeBUILD1
What's this?Image, role, pros, cons, handling & specifications
Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19 Using ArduinoBUILD LEARNING VIEW

Solderless Breadboard Half Size

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It 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.
BJumper wires (generic)BUILD1
What's this?Image, role, pros, cons, handling & specifications
Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19 Using ArduinoBUILD LEARNING VIEW

Jumper wires (generic)

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It 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.
MUltrasonic Sensor - HC-SR04 (Generic)MODULE1
What's this?Image, role, pros, cons, handling & specifications
Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19 Using ArduinoMODULE LEARNING VIEW

Ultrasonic Sensor - HC-SR04 (Generic)

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It 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.
PSubmersible water pump - 5VPART1
What's this?Image, role, pros, cons, handling & specifications
230V AC water pumpPART LEARNING VIEW

Submersible water pump - 5V

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It 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.
PRelay Module (Generic)PART1
What's this?Image, role, pros, cons, handling & specifications
Fig.1: Prototype of Automatic Faucet (Touchless) for COVID-19 Using ArduinoPART LEARNING VIEW

Relay Module (Generic)

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It 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.
Ready to continue?
STEP 4 / 6 · Source code

Prepare, upload, and verify the program.

Follow the same software sequence every time: verify connections, prepare the toolchain, compile, and upload.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. 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.

02

Software preparation

  1. Install the current Arduino IDE or the software named in the guide.
  2. Install the correct board package and required libraries.
  3. Select the exact board, processor, and serial port.
  4. Compile once before connecting external loads.
03

How to upload code

  1. Connect the board with a data-capable USB cable.
  2. Open the documented sketch and confirm configuration values.
  3. Compile, fix the first reported error, and upload.
  4. 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 as
OUTPUT
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
}
Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

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
TROUBLESHOOT

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
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

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 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.

02

Components Required

Project build note

Arduino 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

Ready to continue?
PROJECT ACHIEVED

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.

Automatic Hand Sensing Water and Soap Tank with Tap project thumbnail featuring Water reservoir, Soap reservoir, Two touchless proximity sensors
NEXT ARDUINO ADVENTURE

Automatic Hand Sensing Water and Soap Tank with Tap

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects