กลับไปหน้ารวมไฟล์
automatic-handwash-dispenser-d83653-en.md

Sanitary Mechanisms: The Automatic Handwash Dispenser

Introduction

With the growing need for safe hygiene during this global pandemic, bathroom sanitation is a rising concern for many. Especially since proper handwashing has been cited as an important practice to prevent COVID-19. For this reason, many are considering the adoption of sensor technology and contactless amenities in public and private spaces. This smart technology may be the future of bathrooms to prevent the transmission of germs and bacteria to the maximum extent.

The Automatic Handwash Dispenser gained massive popularity globally due to public health necessity. It is a fantastic entry point into fluid mechanics and infrared beam-breaking. It requires you to balance sensor sensitivity with the physical prime-time of a water pump.

About Device

When washing hands, the user’s hands are placed under the nozzle and before the sensor. The activated sensor will further activate the pump that dispenses a premeasured amount of soap from the nozzle.

My device is composed of two parts, a source of focused light and a light sensor. When the user’s hands are placed in line of the beam of light, the pump mechanism is activated by the disruption that is sensed by the light sensor.

EXPANDED TECHNICAL DETAILS

The False Positive Problem

An IR Obstacle Sensor (TCRT5000) bounces an invisible laser at your hand and looks for the reflection.

  1. If the bathroom steam fogs the sensor, or the sun hits it perfectly, it might false-trigger and dump 12 ounces of soap all over your counter while you're asleep!
  2. The Software Debounce: You must program a rigorous check.
if (analogRead(sensorPin) < triggerValue) {
  delay(100); // Wait 1/10th of a second
  if (analogRead(sensorPin) < triggerValue) { // Are you STILL there?
    pumpSoap();
  }
}
  1. This double-check ensures only a solid, intentional hand placement triggers the pump.

Controlling Viscous Fluids

Water flows easily. Liquid soap is thick and requires significant torque.

  • A standard 3V DC toy motor submerged in soap will jam. You must use a dedicated 5V Peristaltic Pump, or a high-torque diaphragm pump.
  • The pump is controlled by an N-Channel TIP120 Transistor or a Logic Level MOSFET.
  • The Arduino code: digitalWrite(PumpPin, HIGH); delay(800); digitalWrite(PumpPin, LOW);
  • You adjust that 800 millisecond delay perfectly, so it dispenses exactly a dime-sized amount of soap! It then enters a massive delay(3000) so it won't trigger twice if you don't move your hand away fast enough.

Required Bathroom Build

  • Arduino Nano (Smallest possible board).
  • TCRT5000 IR Proximity Sensor (Or HC-SR04 Ultrasonic).
  • 5V or 12V Mini Fluid Pump (Diaphragm style).
  • MOSFET / Transistor Driver Circuit.
  • Silicone Tubing and a waterproof plastic chassis (Soap corrodes electronics quickly!).

Advantages

  • An automatic soap dispenser is a touchless device, which helps to ensure that there is no cross-contamination between repeated uses.
  • An automatic hand wash dispenser is a lot easier to maintain for a number of reasons.
  • With health and hygiene having become a key priority, these devices can make life a lot simpler.
  • Dispensers will only distribute a set amount of soap per motion activation. A predetermined amount to be dispensed can be set to a highly efficient quantity in which waste will be minimal.

Demo video

Automatic handwash dispenser

Plzz subscribe, like, comment and share on my youtube channel.

Some project images

Project image

PCB circuit

Circuit Diagram

Arduino code

Source code

I hope you enjoy my project.

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "shashwatraj98765"
category: "Wearables, Health & Fitness"
components:
  - "1x PCB Holder, Soldering Iron"
  - "1x Arduino Nano R3"
  - "1x Slide Switch"
  - "1x PCB, For DMB-4775"
  - "1x 9V battery (generic)"
  - "1x Solder Wire, Lead Free"
  - "1x Soldering iron (generic)"
  - "1x Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires"
  - "1x Hook Up Wire Kit, 22 AWG"
  - "1x Relay Module (Generic)"
  - "1x 9V Battery Clip"
  - "1x Cable Tie, Belt Ty™ In Line"
  - "1x Li-Ion Battery 1000mAh"
  - "1x Hot glue gun (generic)"
description: "Touch-free hygiene! Hack a standard soap dispenser using an infrared obstacle sensor and a 5V mini-pump to automatically dispense exact amounts of soap."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/c96779b9-7e0f-47cc-b34e-4e73c2412d73"
  - "https://projects.arduinocontent.cc/c96779b9-7e0f-47cc-b34e-4e73c2412d73"
encryptedPayload: "U2FsdGVkX18kTpwccjPFSl/BqzI0C9M72hS9oRsbkHFv7TaFu/Lyj+dAkXpP5xFhL2N/tcLJKujYnegy7j6T9t2QyAEvkjvI8kjsmVYiZxc="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/automatic-handwash-dispenser-d83653_cover.jpg"
lang: "en"
likes: 2
passwordHash: "6d67496eba267d778e7ef11d962abe1512637ce9ce8ffb27498e4bf288a22286"
price: 1120
seoDescription: "Build an Automatic Handwash Dispenser using Arduino for safe and touchless hand hygiene during the pandemic."
tags:
  - "hadwash dispenser"
  - "automatic"
  - "home automation"
  - "smart appliances"
  - "human welfare"
title: "Automatic Handwash Dispenser"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/QdCT58s1SWc"
views: 7175