How to Make a Better Hand Sanitizer with Arduino! LOWER POWER
Вставка
- Опубліковано 7 вер 2024
- This was a fun project to improve a super cheap soap dispenser to be used with hand sanitizer and significantly increase battery life! Full project detailed out here with hardware explanations and code walkthrough - everything linked to below:
Soap Dispenser used: www.amazon.com...
Hand Sanitizer: www.bedbathand...
*UPDATE* Had a minor change in the drawing!
CODE IS HERE and Diagrams: github.com/krd...
That cool :) 328 board is here: www.tindie.com...
and if adding IoT to this project, trigBoard would be perfect - I might do this if a good use case comes up: www.tindie.com...
Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
/ kdarrah
Twitter: / kdcircuits
For inquiries or design services:
www.kdcircuits...
You know you're badass when you can say "we will use the board I made and the usb to serial converter I made to make this thing just as bad ass as me".
Love the vids
lol thanks man - yea this bad boy is still running strong with daily use
Nice project! Small tip for counting the average: instead of rotating the whole array and writing into 0th element, keep the array as is and move the index to overwrite the oldest value. Difference between O(1) and O(n) (not that it matters for an array of 20 but still).
Kevin, I am impressed with this project and your approach. Definitely going on my list of "To Try"!
I've made a couple of less complex , simple circuit ones and the most annoying issue was the false positive responses, in particular with reflected sunlight using several different common IR modules and line followers(with or without the 38K oscillation). Mine utilized USB wall plugs which helped a lot powering the motors, especially the foam dispenser type; but were inconvenient/limiting usage locations. Guess I'll have to bite the bullet and add a microprocessor to get control of the sprayer and stop dumping a full container of sanitizer when a door was opened at the wrong time of day. Good Stuff!
thanks! and yea let me know if you do try this
@@Kevindarrah I downloaded your files(to see IR parts details) and found the Drawings.vsdx file pretty hard to open as it is VERY proprietary with few common applications able to open it. Could you please consider using another format that is easier to utilize for the majority of folks in the future? Not suggesting you use different creation software, just export differently or as multiple types. Thanks
@@scottstevens7569 oh that is just the visio file I used to make the drawing
@@Kevindarrah I do realize what it is, just that there are only 4 listed Apps able to open it requiring a DL if you don't have. I have dealt previously professionally with Visio limitations if you are not a user.
I was really looking for info about the IR(module?) choice or construction- .
@@scottstevens7569 oh yea, not sure - the IR module I use there came with the bottle
Very cool project Kevin. What software do you use to display and analyse the current consumption profile?
Looks like Otii analyser. They are £650 in the UK which is way too expensive for a hobbyist.
@@J-K-AG Thank you, I've checked otii's website and i think you are right. That price though 😰. Time to save up!
Are there any cheaper alternatives for hobbyists?
17:22. i know some people like that! the running average, clever. like your presenting style.
Great video. Even a noob like myself was able to follow along.
If you’re going to take this farther, please consider some of the comments for follow up rather than trying to make this into an iot project (not really a valid use, imo). Particularly the capacitive sensor could result in potentially better battery life than sampling constantly, even at 1 second intervals. I have to admit I didn’t understand the “ring buffer” comment that one of your viewers made but I would be interested in learning more. This is why I tune in, always learning on your channel.
en.wikipedia.org/wiki/Circular_buffer
Awesome! I'll ask one of my teachers if we could remake this project. Thanks!😃
cool, let me know if you do!
@@Kevindarrah I'll tell you😃 BTW: great channel
Nice job and some cool programming. Keep the good work up
I have a better circuit Kevin. What you have to do is cut down the IR sensor and instead use a completely passive capacitive sensor. This way you can set your uC to wake up only when there is a hand. The standby current consumption in this configuration can go as low as 4uA s.
yea, was thinking about that as well... if I get some time maybe I'll convert to something like this
@@Kevindarrah It's simple. By increasing the sensitivity of a normal TTP223 touch sensor (by adding a wider touch pad) you can make an extremly power efficient capacitive proximity sensor. If you want I can share you the code as well. I have used your code numerous times and I will consider this as a small pay back from my side 😊
@@nafihahmd That's good idea for alternatives, better than my Wrist inserted RFID plan. :)
I'd love to hear your take on the lgt8f328p chip (it's a modern improved-cheaper-faster-better-chinese semi-clone of the atmel328p)
Super interesting!
The code as it is is great for clarity, but I wonder if using direct port manipulation, replacing the rolling average with exponential smoothing, getting rid of all floating point operations, stoping timer0 and replacing delays with a busy loop while on the highest system clock prescaler option (CLKPR) would take you further in your quest for stupidly low power consumption.
yea, these are good suggestions - I'll have to try these out!
Can I suggest that you use a ring buffer for the averages. That would allow you to skip iterating over the 20 values two times. Probably not significant but interesting.
yea, actually that's a really good idea!
@@Kevindarrah can u show how to do that
@@TheUnofficialMaker yea, instead of looping through like that pushing everything over by one, just keep an index of where the new value goes and increment on every wake. Super simple and faster
@@Kevindarrah Normally you use Modulo division although I'm not sure if that is a single instruction on this microcontroller.
Very interesting, very intelligent great idea
cool name
@@Kevindarrah Thank you......you to :)
I think it may be more robust if you could store average previous (NO HAND) readings, and compare current reading with that.
hello. May i know which motor did you used? I am using 4xAA size batteries. Although i am able to make my circuit low power but the cheap chinese submersible pump takes 300ma. Any suggestions? I want to run the system for atleast a month.
Which devise do you use to monitor ur current please, i see the otii app, but wondering what is the hardware connected to it ;) Thanks a lot for your video
yea the device is an Otii Arc
Skip the IR or IOT and put a fingerprint reader on it. Track how many times a day each person uses it. So you know everyone in the office is using it.
no the idea is touchless ;)
@@TheUnofficialMaker So, maybe a RFID reader?
it is sunproof or not
I can see unlocking a workstation only if the hand sanitizer was used.
I love this idea!! I made a comment earlier that I didn’t see an applicable use case for IOT but I stand corrected,
I thought this was going to be about a ham sanitizer
Aaaaggghhhh, Ham. Break out the emergency ham, Marge'
You can fly to the _moon_ on 270 micro!
just add a Saturn 5! :)
Weird flex, 270 microamps CRAP! i tell you