STEP 1 / 6ELECTRONICS

Automatic Washbasin Tap Controller

Set up your washbasin tap so that it turns on when your hands are just below the water outlet. This automatic washbasin tap controller is based on infrared technology. When your hands or…

Automatic Washbasin Tap Controller - source illustration from page 488
PROJECT#259
TRACKElectronics
PARTS04
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 Washbasin Tap Controller is a electronics project. Set up your washbasin tap so that it turns on when your hands are just below the water outlet. This automatic washbasin tap controller is based on infrared technology. When your hands or…

Source pages
487-489
Named parts
4
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

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.
  • This project may involve hazardous voltage. Work only with qualified supervision and proper isolation.
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 INVENTORY4 PART LINES
PARTTYPEQTYREADY
MIR sensorMODULE1
What's this?Image, role, pros, cons, handling & specifications
Automatic Washbasin Tap Controller - source illustration from page 488MODULE LEARNING VIEW

IR sensor

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 IR sensor; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
SBC548SEMICONDUCTOR1
What's this?Image, role, pros, cons, handling & specifications
BC548 NPN transistorSEMICONDUCTOR LEARNING VIEW

BC548

A semiconductor stage performs switching, amplification, regulation, rectification, or logic.

What it does here

It controls current or signal flow at a defined point in the circuit.

Buy / compare this part

Advantages

  • Fast and efficient
  • Compact
  • Can control larger loads from smaller signals

Limitations

  • Pin order varies
  • Sensitive to overvoltage and reverse polarity
  • May need cooling or bias components

Handling

  • Verify the datasheet pinout
  • Avoid static and soldering heat
  • Check notch, stripe, or flat-face orientation

Specifications to verify

  • Use the exact model, value, package, and rating listed for BC548; similar-looking parts are not always interchangeable.
  • Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
ST1, T2 - transistor stages identified in the circuitSEMICONDUCTOR1
What's this?Image, role, pros, cons, handling & specifications
Automatic Washbasin Tap Controller - source illustration from page 488SEMICONDUCTOR LEARNING VIEW

T1, T2 - transistor stages identified in the circuit

A semiconductor stage performs switching, amplification, regulation, rectification, or logic.

What it does here

It controls current or signal flow at a defined point in the circuit.

Buy / compare this part

Advantages

  • Fast and efficient
  • Compact
  • Can control larger loads from smaller signals

Limitations

  • Pin order varies
  • Sensitive to overvoltage and reverse polarity
  • May need cooling or bias components

Handling

  • Verify the datasheet pinout
  • Avoid static and soldering heat
  • Check notch, stripe, or flat-face orientation

Specifications to verify

  • Use the exact model, value, package, and rating listed for T1, T2 - transistor stages identified in the circuit; similar-looking parts are not always interchangeable.
  • Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
PLED1 - indicator LED identified in the circuitPART1
What's this?Image, role, pros, cons, handling & specifications
Automatic Washbasin Tap Controller - source illustration from page 488PART LEARNING VIEW

LED1 - indicator LED identified in the circuit

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 LED1 - indicator LED identified in the circuit; 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

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

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

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

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

Set up your washbasin tap so that it turns on when your hands are just below the water outlet. This automatic washbasin tap controller is based on infrared technology. When your hands or a tool block the IR rays, water starts coming out of the tap automatically. Automatic washbasin tap controller circuit The circuit is made up of 555 timers and has sections that send and receive signals. Both the sender and the receiver are powered by 5V DC. The transmitter always sends out IR rays, which fall on the receiver. When something gets in the way of the IR rays between the receiver and the transmitter, the output of the IR sensor briefly drops. This sets off a timer circuit in the receiver, which let’s water out of the tap for eleven seconds. The transmitter is built around the timer IC 555, which is used as an astable multivibrator to make a 38 kHz frequency (see Fig. 1).

Fig. 1: Automatic Washbasin Tap Controller: Transmitter circuit The output of the timer is sent to the transistor T1, which turns on the IR LED (LED1). Keep in mind that IR LED1 must be aimed at the IR sensor module of the receiver circuit. Its transmission wavelength is between 900 and 1100 nm, which is in the range where the TSOP1738 receiver module works best. The sensor module, monostable timer, and relay driver circuit are all parts of the receiver circuit (see Fig. 2). The TSOP1738 sensor module can pick up IR radiation that is changed at 38 kHz. When any IR radiation is detected or stopped, its normally high output drops for a short time. Circuit operation When IR rays don't reach the receiver, the sensor output goes low for a short time, which turns on timer IC2. For eleven seconds, the timer's output is high, and the relay turns the solenoid. During this time, when the

solenoid is turned on, it lifts the valve in the pipe, which lets water out of the tap. Solenoid valves are used for this specific job. The relay driver circuit is made up of diode D1, resistor R8, and transistor BC548 (T2). When the relay is turned off, the back emf creates high voltages that could damage the relay. This is where diode D1 comes in. Here's how you can figure out how long the timer will be on high: Ton=1.1 R6C5=1.1×100×103×100×10–6=11 seconds Fig. 2: Automatic Washbasin Tap Controller: Receiver circuit

02

Construction & Testing

Project build note

When you put the IR LED and the IR sensor on opposite sides of the sink, use shielded wires or leads to connect them. Set up the IR LED and IR sensor about half a meter apart so that the IR LED's IR rays hit the IR sensor directly. Now, turn on the circuit's power source. When you put your hand between the IR LED and IR sensor, the relay turns on, which makes the solenoid open the valve so water can flow out of the tap.

Ready to continue?
PROJECT ACHIEVED

You built Automatic Washbasin Tap Controller.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

1.5W Power Amplifier project thumbnail featuring Power supply, Speaker, 2N5484
NEXT ELECTRONICS ADVENTURE

1.5W Power Amplifier

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

Start this project
Browse all 500 projects