Skip to main content
RK
Rojony Khatun
Last updated: Jun 11, 2026

Hand Sanitizer Dispenser Diy Circuit

Build a touchless hand sanitizer dispenser DIY circuit using an IR sensor, a relay, and a pump. Step-by-step guide, components, working principle, and FAQs included.

Advertisement
Advertisement

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Advertisement

Hand Sanitizer Dispenser Diy Circuit

Build a touchless hand sanitizer dispenser DIY circuit using an IR sensor, a relay, and a pump. Step-by-step guide, components, working principle, and FAQs included.

Advertisement

What Is a Hand Sanitizer Dispenser DIY Circuit?

A hand sanitiser circuit DIY is an electronic system which dispenses liquid sanitiser on detection of human hands. It also substitutes manual pressing and enhances hygiene through direct contact avoidance.

homemade sanitizer dispenser electronics project

The DIY hand sanitiser dispenser is one of the practical electronics projects, and with the infrared (IR) technology, the project enables one to construct a touchless hand sanitiser dispenser. This system will identify hands close to the sensor and automatically turn on a small DC motor to squirt sanitiser.

The DIY circuit of the hand sanitiser dispenser is an IR sensor module to scan the presence of a hand, a signal amplifier or microcontroller to process, and a relay to adjust a miniature pump or motor. These dispensers are sanitary, do not cross-contaminate and are suitable either at home or in the office or even in the open. In assembling this project, you get to know about IR detection, relay control, motor driver and assembling a circuit that involves creating a useful health and safety device.

Sponsored

DIY Touchless Sanitizer Dispenser Circuit

Hands-free sanitizer dispensing using IR sensor, transistor, and relay — ideal for hygienic, low-power automation projects.

Advantages of a Touchless Sanitizer Dispenser

  • Hygienic: Minimizes cross-contamination.
  • Automatic Operation: Hands-free dispensing.
  • Easy to Build: Uses simple components.
  • Energy-Efficient: Low-power design.
  • Educational: Learn sensor interfacing, relay driving, and fluid control.

Components Required

Component Quantity Purpose
IR Sensor Module (TCRT5000 / HC-SR501 optional) 1 Detects hand presence
NPN Transistor (BC547 / 2N2222) 1 Amplifies sensor signal to drive relay
Relay Module (5V or 12V) 1 Switches sanitizer pump
DC Pump / Motor 1 Dispenses sanitizer
Resistors (1kĪ© – 10kĪ©) Various Biasing for sensor and transistor
Capacitors (10uF – 100uF) Optional Filtering and stabilization
LED Indicator 1 Shows system active
Power Supply (5V–12V DC) 1 Powers sensor, relay, and pump
Enclosure 1 Mounts sensor, circuit, and pump

Working Principle

IR Sensor Detection Stage: IR sensor emits light and detects reflection from a hand. Output goes HIGH or LOW based on presence.

Signal Amplification: Transistor amplifies the sensor signal to drive the relay. Microcontroller optional for advanced control.

Relay Switching Stage: Relay energizes the DC pump to dispense sanitizer; flyback diode protects against coil voltage spikes.

Pump Output: Pump dispenses sanitizer for a controlled duration and stops when hand is removed.

Power and LED Indicators: LED shows active status. Power supply provides regulated voltage for sensor, relay, and pump.

Circuit Diagram (Text)

IR Sensor OUT → Resistor → Transistor Base
Transistor Collector → Relay Coil
Transistor Emitter → GND
Relay Contacts → DC Pump Power Line
LED → Parallel to Relay Coil via Resistor
Power Supply → Powers sensor, relay, and pump
  

Step-by-Step Construction Guide

  1. Install IR sensor facing outward; connect VCC, GND, and OUT pins.
  2. Connect sensor output to transistor base through a resistor; emitter to ground, collector to relay coil.
  3. Wire relay coil with flyback diode; connect relay contacts to DC pump power line.
  4. Install LED in parallel to relay coil to indicate activation.
  5. Connect DC 5–12V power supply matching pump and relay ratings.
  6. Test by placing hand near sensor; adjust sensitivity as needed.

Applications

  • Homes, offices, and hospitals
  • Public sanitizing stations
  • DIY automation projects
  • School and laboratory hygiene systems
  • Touchless public kiosks

Troubleshooting Tips

Problem Solution
Pump not activating Check relay and transistor connections.
Sensor not detecting hands Adjust IR sensor sensitivity or alignment.
LED not lighting Check LED polarity and series resistor.
Pump running continuously Check sensor output logic and transistor bias.
Power issues Ensure supply voltage matches sensor, relay, and pump requirements.
Advertisement

Frequently Asked Questions - Hand Sanitizer Dispenser Diy Circuit:

An electronic circuit that automatically dispenses sanitizer when a hand is detected.
IR sensor module like TCRT5000 or PIR sensor for hand detection.
Using a transistor and relay that switches the DC pump ON or OFF.
Yes, ideal for hygienic, touchless sanitizer dispensing.
Typically 5V–12V DC depending on sensor, relay, and pump rating.
Optional, but useful to show when the dispenser is active.
Yes, by adjusting the IR sensor module potentiometer or placement.
Small DC diaphragm or peristaltic pump compatible with relay voltage.
Yes, it operates automatically without physical touch.
Yes, ensure the pump is compatible with the liquid type.
Advertisement
Advertisement
Advertisement