MuTech RoboticsLearning Hub
Kids OK with adultArduino NanoLevel 1/3

Touchless Soap Dispenser

Put your hand under it and the pump runs for half a second: exactly one dose, no touching.

Touchless Soap Dispenser
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Thin the liquid hand wash with a little water so the mini pump can move it.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The IR sensor's output goes LOW when a hand is under it.
  2. The Nano switches the MOSFET on for 0.5 s: one dose.
  3. It waits until the hand moves away before the next dose.
  4. The MOSFET module handles the pump current the pin can't.

Parts you need

  • Arduino Nano× 1Buy
  • IR obstacle sensor module× 1Buy
  • MOSFET module× 1Buy
  • 5V mini pump + silicone tube× 1Buy
  • Breadboard, jumper wires, USB 5V adapter× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalIR OUTNano D2
2 PowerIR VCCNano 5V
3 GroundIR GNDNano GND
4 SignalMOSFET SIGNano D9
5 GroundMOSFET GNDNano GND
6 PowerMOSFET IN+5V
7 GroundMOSFET IN−GND
8 PowerMOSFET OUT+ / OUT−Pump + / −

3D print files

This project has no 3D-printed parts.

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.