Professional Documents
Culture Documents
DIY Automatic Alcohol Dispenser No Arduino Needed
DIY Automatic Alcohol Dispenser No Arduino Needed
by ASCAS
Build the simplest $4 Automated Alcohol Dispenser but then, I did nd out that using a smaller nozzle
without using Arduino. Keep your hands clean by would physically limit the ow of liquid. There are
lling it with liquid soap, hand sanitizer or with several two transistor RC circuits that would solve the
rubbing alcohol. By reducing physical contact, an over spilling problem but the single transistor design
automated dispenser keeps virus from spreading works well, given that you choose the proper nozzle
around in communal areas. size.
- 1N4007 Diode
If you are planning to recycle a glass jar or container like mine. You can remove the label by peeling it, the
remaining residue can be removed by using pure Acetone or hand wash alcohol.
Stretch your tube's end by using the end of your pliers while heating it using a lighter. The tube must be force tted
to your DC pump's liquid outlet. To can use a zip tie to keep it in place.
Use your power drill for drilling holes for the wire and tube. Be sure to use the proper drill bit to give it a snug t.
To keep the tube from sagging, you can use chicken wire or copper wire to make the tube bendable. Simply insert
the wire inside your tube. You can braid it to make the wired tube sti er.
A nozzle can be used to control the amount of uid exiting the dispenser. I got mine from the tip of a dried out pen.
You can try out a smaller nozzle to achieve a mist.
You can use a nut and bolt to hold your sensor in place, or simply just use hot glue to mount it in place.
The project relies on a very simple circuit, using a transistor as a simple switching device. I didn't nd the need to
use a perf board or PCB. TIP32C is robust enough to handle the DC pump without heating up.You can simply mount
your transistor using a few drops of superglue on the container's lid.
Here's a simpli ed wiring diagram for the digital output is HIGH by default when no object is
components. detected or LOW when an object has been detected.
This means you would need a logic inverter in order
Why not just connect the pump directly to the for the dispenser to work properly. Using a PNP
sensor's digital output? For one, the sensor's digital transistor solves the two problem in a cost e ective
output can only handle a few militi-amps of current, way.
connecting the pump directly to the IR sensor could
damage the LM393 op-amp chip. Second, the sensor's
M O S FE T : Originally, the plan was to use a logic level interrupted. You can add a common recti er diode
MOSFET instead of a BJT. MOSFETs are designed to such as a 1N4007 or a schottky diode for a faster
operate as switching devices, unlike a BJT which is response. From quick measurements and
often use to serve in the active region than on a observations, the motor from the speci c DC pump
saturated level. MOSFETs can also handle more only emits very minute amounts of back EMF due to
current due to its material composition. The reason the motor's size and the shaft's reluctance to stop
why I chose to use a BJT was due to its availability for immediately. When it comes to switching, adding a y
hobbyists as they are more common than MOSFETs. back diode is a common practice in electronics.
Although I haven't had problems with the absence of
FLYBACK DIO DE: The motor acting as an inductive a y back diode in this speci c project, If a diode is
load. A yback diode is a diode connected across an available at hand, It would be better to add the diode
inductor used to eliminate yback, which is the just be sure.
sudden voltage spike seen across an inductive load
when its supply current is suddenly reduced or
Follow the diagram and solder the wires and components together, poorman style.
The project was designed to operate at voltages under 6 volts. USB power was the most universally available source
I could think of that gives 5 volts. You can get salvage any USB cable you have lying around. Cut the other end of
the cable and use your wire stripper.
Once you have nished soldering the USB cable. You can test your project if it works. When you are con dent with
your wiring, you can cover the components under a blob of hot glue to keep it safe from touching each by accident
and to make it waterproof as well.
Since the project runs on USB power. You can use a AC USB charger or a power bank for supplying power to the
dispenser. Depending on the capacity, a power bank would last weeks of operation. Using a powerbank makes the
dispenser a lot portable too!
The sensor comes with a tuning knob (trimmer resistor). You can use a at head screwdriver to tune it. The knob
limits the threshold range of detection. Turning it makes the sensor more sensitive or less sensitive.
You can now ll your dispenser with whatever liquid you want. It even works with viscous liquids such as liquid soap
and dish washing liquids! I made this project speci cally for hand wash alcohol since I use it often before and after
eating.
You're done! You can now test the project. Hope you guys enjoyed this tutorial!
Por que usaste el 2222a? porque consegui el TIP32 en mercadolibre, es por alguna razon en
especial?
Good work. I am thinking to build one but the part sourcing is difficult.
Two links points to China, which will take more than a month to get.
Other is Mouser for BJT, the cost for one is ~$29.
Thanks.
Instead of Arduino you can use a microcontroller which is used in Arduino (i.e. ATmega8) with your
own board. If you can't make a PCB, you can use an universal board. It can be programmed either
in Arduino IDE or in "pure" C (more professional). But I agree that using a microcontroller isn't
necessary here. You can make some timing circuit with capacitor charged/discharged through
resistor to limit how long time the pump works and protect from overspilling.
You don't have to use a liquid pump. If you have an air pump, you can use it to push air to the
container, and air will push the liquid. It must have a tight lid. Air pumps can be found in broken
electronic medical pressure meters.
A foot switch would work just as well.
Rescue a washing machine pressure switch or just adapt a microswitch.
As others have said, I would be a little wary of mixing a flammable solvent with even a small
electric motor of brush design.
Even 70% alcohol is going to be over-proof.
I think caution should be used when adding an electric motor to a jar of alcohol.
To remove the glue, plant oil (caola, sunflower etc.) is absolutely sufficient. Way friendlier to the
skin, non-igniteable. And the oil film is easily washed off when washing the jar.
That's the way I usually handle labels. Scrape off the top layer (which is often water- and oil-tight),
then put the oil on and let it soak a bit. Following this you're usually able to shift the remainders off.
Hola, soy técnico en Laboratorio y pretendo implementarlo en mi trabajo, gracias por la idea.
If you change out the BJT to a MOSFET, you can get rid of the resistor. Just makes wiring it up
easier, and BJTs are not used very often in high end electronics design due to the cost of placing
the resistor.
Yes, you absolutely need the back EMF catch diode across the motor to keep the transistor from
blowing up, which it will do eventually.
I agree. I updated the tutorial and added a Step 11. Must have overlooked that part. I usually omit
the diode for devices with low back EMFs, this motor pump is one of them. The shaft continues to
rotate as power has been cut. Been using an older version of this project for two years now, no
signs of degradation. Nonetheless, it's a good practice to add one.
My original plan was to use a MOSFET. But then I remembered you needed a logic level P-
channel MOSFET for this one, due to the sensor's logic output. I only have N-channels MOSFETs
here. Being on quarantine, most local suppliers and shops are closed in our country. Had to stick
with what I had hahaha.
Good suggestion, but I would stick with the BJT in this application mainly for ESD immunity.
MOSFETs can be fried very easily with a static zap. If you use a MOSFET, you would need to
enclose the circuit and add some protection to the terminals. Count me in for the diode as well.
Something cheap and simple like the 1N4148 should do: https://www.digikey.com/product-
detail/en/on-semiconductor/1N4148/1N4148FS-ND/458603. Connect the cathode to pump red wire
and anode to pump black wire. When the pump runs, the diode is reverse biased. When the
transistor turns off and the pump tries to dump its stored magnetic energy in the form of a voltage
spike, the diode provides the dumping path.
What a great idea! It's a shame that many public toilets don't have this type of gadget.
A simple and well explained project. I was thinking of implementing a similar thing using an
Arduino
Thank you! An arduino would be a nice touch too! :)
Some of the others are posting question that border on rude. Calm your jets people. He posted it.
It's mostly there. Figure out the rest on your own and mind your manners.
To allow for a short burst of cleaner couldn't you have the motor powered by a capacitor which
charges through a resistor? That would allow for a short burst of power to run the pump and then
the capacitor would discharge and take time to recharge. It would also be a reasonably metered
amount of fluid. Not sure what values you would need though.
That would work too! Although it would most certainly turn off longer compared to not having the
additional capacitor (RC). There are several circuits that would solve this. I will try to update the
tutorial.
Very smart easy to build cheap to build very less complicated and good presentation. Well done
my firend.
Thanks!
On step 10, you meant: the sensor's digital output is LOW by default when AN* object is detected.
Nice nozzle, I wouldn't have thought to use a pen. Thanks for sharing!
Thanks! :))
I like the idea of using wire inside the tube to allow the it to be positioned. However, depending on
the type of wire used it may react with the alcohol and corrode over time.
Thanks! I agree.
The link for the DC Pump takes me to an image of the schema not to a water pump.
I found this one. I believe it is the same one used in this project.
https://www.amazon.com/Vipe-Micro-Submersible-Motor-Water/dp/B01N0X3CW4
I've had the same problem. Thought it was something I was doing wrong :-)
Are you sure the pump is safe to use with alcohol based liquids? Even the alcohol mixtures are
typically between 60-70%, the vapours can be flammable, be very careful on potential sparks from
the motor or any loose connections. I would only use this as a soap dispenser but not alcohol
based sanitizer. Safety first.
I had the same thoughts at first. I made an earlier version of this project, been using it for two years
now, haven't had a problem with it. RaymondR6 has a point. The motor has gaskets sealing the
shaft, the motor itself is glued shut. My only concern was if the alcohol would react to the plastic.
Two years later, it hasn't softened or gotten brittle :))
If the pump is submersible, all the electrical contacts are sealed inside and no sparks will happen.
Besides, you also need oxygen for a spark to ignite the alcohol, and while it is inside the fluid,
there isn't any oxygen.
Also It would be helpful to go through the tools that you need to use.