Projects Hub, lesson 26 of 81
Creating a Touchless Hand Sanitizer Dispenser with LCD Display
Introduction
In the wake of the COVID-19 pandemic, hygiene practices have become more crucial than ever. One innovative way to promote cleanliness and safety is by creating a touchless hand sanitizer dispenser with an LCD display. This device not only encourages regular hand sanitization but also provides valuable information. In this article, we will guide you through the process of building one from scratch.
Working Principle
The touchless hand sanitizer dispenser with an LCD display operates based on infrared (IR) sensor technology. When a user places their hand under the dispenser, the IR sensor detects the presence of the hand and triggers the dispensing of sanitizer. Simultaneously, the LCD display shows relevant information, such as the dispenser's status and a countdown timer for recommended handwashing duration.
Things We Need
To build this system, you will require the following components:
- Arduino microcontroller (e.g., Arduino Uno or Arduino Nano)
- IR sensor module
- LCD display (16x2 or similar)
- Peristaltic pump
- Sanitizer reservoir and tubing
- Power supply (e.g., 5V adapter)
- Breadboard and jumper wires
- Enclosure or housing for the system
Circuit Diagram
Here's a simplified circuit diagram to help you connect the components:
Working of the System with Arduino
- IR Sensor: Connect the IR sensor to the Arduino. The IR sensor emits an infrared beam, and when an object (in this case, a hand) comes close, it reflects the IR signal back to the sensor. The Arduino detects this reflection and triggers an action.
- LCD Display: Connect the LCD display to the Arduino. You can use a library like LiquidCrystal to control the display. The LCD will show relevant information and instructions.
- Peristaltic Pump: Attach the peristaltic pump to the Arduino using a motor driver or a relay module. This pump is responsible for dispensing the hand sanitizer.
- Sanitizer Reservoir: Ensure the sanitizer reservoir is connected to the pump via tubing. The tubing should reach the dispenser nozzle.
- Power Supply: Connect a 5V power supply to power the Arduino and the pump.
Arduino Code
Below is a simplified Arduino code for this project:
#include <LiquidCrystal.h>
const int irSensorPin = 2; // IR sensor input pin
const int pumpPin = 3; // Peristaltic pump control pin
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // Initialize the LCD library
void setup() {
lcd.begin(16, 2); // Initialize the LCD
pinMode(irSensorPin, INPUT);
pinMode(pumpPin, OUTPUT);
}
void loop() {
if (digitalRead(irSensorPin) == LOW) {
lcd.clear();
lcd.print("Place your hand");
delay(2000);
lcd.clear();
lcd.print("Dispensing...");
digitalWrite(pumpPin, HIGH); // Turn on the pump
delay(3000); // Run the pump for 3 seconds
digitalWrite(pumpPin, LOW); // Turn off the pump
lcd.clear();
lcd.print("Thank you!");
delay(2000);
lcd.clear();
}
}Conclusion
In this article, we've explored how to create a touchless hand sanitizer dispenser with an LCD display using an Arduino microcontroller. This project combines sensor technology, automation, and informative displays to promote good hygiene practices. By building and using such a system, we can contribute to a safer and more hygienic environment, especially in public places where regular hand sanitization is essential. So, roll up your sleeves and get ready to build your touchless hand sanitizer dispenser with an LCD display to help keep your surroundings clean and safe.

