Project Hub/Renewable Energy Power & Sustainability/Smart Solar Inverter Controller/IR Based Automatic Hand Sanitiser Dispenser
IR Based Automatic Hand Sanitiser Dispenser
Beginner
ANALOG / DISCRETE
< ₹500
3 – 6 Hours

IR Based Automatic Hand Sanitiser Dispenser

An automated touchless hand sanitiser dispenser built using an IR sensor module and a mini DC water pump.

Originally published by Rameshwer Prasad Nishad on ElectronicsForU
View original tutorial
1

How It Works

The IR Based Automatic Hand Sanitiser Dispenser operates as a touchless, automated fluid delivery system utilizing a discrete analog control circuit. At the heart of the detection stage is an IR sensor module built around an LM358 operational amplifier. This sensor continuously emits and monitors infrared light; when a user places their hand within the detection range, the reflected IR radiation alters the sensor's output state, generating a control signal. This low-power signal is routed to the base of a BC547 NPN bipolar junction transistor, which acts as an electronic switch. When the transistor's base receives sufficient voltage, it enters saturation, allowing current to flow from the 5V DC adapter through the coil of the 5V single-changeover relay. As the relay coil energizes, its mechanical switch changes state, completing the circuit for the mini submersible DC motor pump. The pump then activates, drawing liquid sanitizer from the attached plastic bottle and pushing it through the small plastic pipe to dispense a dose to the user's hands. To protect the discrete semiconductor components from voltage spikes generated by the inductive load of the relay coil, a 1N4007 flyback diode is placed in reverse bias across the relay terminals. Additionally, an LED indicator visually signals when the circuit is triggered. The entire system is assembled on a general-purpose PCB and powered reliably via the 5V DC adapter, providing a responsive and hygienic touch-free user experience without the need for microcontrollers or programmed software.

Why Build This

Design and deploy touchless hygiene infrastructure for engineering laboratories, academic offices, and shared campus facilities to minimize surface-borne pathogen transmission.
Gain practical undergraduate-level experience in integrating discrete analog sensors, transistor switching networks, and electromagnetic relays to control higher-power electromechanical loads.
Prototype a functional, standalone automation appliance on a general-purpose PCB using standard electronic components and readily available mechanical hardware.

Real-World Application

Touchless hygiene stations for public places, offices, hospitals, and homes to prevent germ transmission.

Skills You'll Learn

Transistor biasing and switching
Electromagnetic relay interfacing
Inductive load protection using flyback diodes
Analog sensor integration
DC motor pump control

Safety Precautions

Cover the IR module with suitable insulation and waterproofing material to protect it from liquid spills.

Technology Tags

IR SENSOR
BC547 TRANSISTOR
RELAY
DC SUBMERSIBLE PUMP
PCB ASSEMBLY

Ready to build this?

We stock the boards, sensors and modules this project needs. A full parts list is coming soon — for now, browse our DIY Kits & components or search for Analog / Discrete parts.

Shop DIY Kits →

Frequently Asked Questions

Why is a 1N4007 diode included across the relay?
The 1N4007 acts as a flyback diode, safely dissipating the reverse voltage spike generated by the relay coil when it de-energizes, which protects the BC547 transistor from damage.
Can I adjust the detection distance of the IR sensor?
Yes, standard IR sensor modules typically feature an onboard potentiometer connected to the LM358 comparator, allowing you to fine-tune the sensitivity and effective detection range.
Do I need to write any code or program a microcontroller for this project?
No, this is a strictly hardware-based analog circuit controlled entirely by the state of the IR sensor module and transistor switch, requiring zero software.

Gallery

Kitkraft Project Hub — curated from the maker community, credited at the source.
PRJ-00308

We’re upgrading to serve you better! 🚀

Dear Customers,
Kitkraft.in is currently undergoing a major warehouse and systems upgrade to make your future shopping experience faster and smoother!

Because of this massive overhaul, we are temporarily pausing new orders and deliveries for the next couple of days.

Existing Orders: Processing may face slight delays, but we are on it!

New Orders: We will be back online and ready for you on 30th July.

We appreciate your patience while we renovate behind the scenes!