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...

КОМЕНТАРІ • 54

  • @BreakingYTown
    @BreakingYTown 3 роки тому

    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

    • @Kevindarrah
      @Kevindarrah  3 роки тому

      lol thanks man - yea this bad boy is still running strong with daily use

  • @zelial3
    @zelial3 3 роки тому

    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).

  • @scottstevens7569
    @scottstevens7569 3 роки тому +1

    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!

    • @Kevindarrah
      @Kevindarrah  3 роки тому +1

      thanks! and yea let me know if you do try this

    • @scottstevens7569
      @scottstevens7569 3 роки тому

      @@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

    • @Kevindarrah
      @Kevindarrah  3 роки тому

      @@scottstevens7569 oh that is just the visio file I used to make the drawing

    • @scottstevens7569
      @scottstevens7569 3 роки тому

      @@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- .

    • @Kevindarrah
      @Kevindarrah  3 роки тому +1

      @@scottstevens7569 oh yea, not sure - the IR module I use there came with the bottle

  • @Teqnyq
    @Teqnyq 3 роки тому +7

    Very cool project Kevin. What software do you use to display and analyse the current consumption profile?

    • @J-K-AG
      @J-K-AG 3 роки тому +1

      Looks like Otii analyser. They are £650 in the UK which is way too expensive for a hobbyist.

    • @Teqnyq
      @Teqnyq 3 роки тому

      @@J-K-AG Thank you, I've checked otii's website and i think you are right. That price though 😰. Time to save up!

    • @bogmaerke
      @bogmaerke 3 роки тому

      Are there any cheaper alternatives for hobbyists?

  • @TheUnofficialMaker
    @TheUnofficialMaker 3 роки тому +1

    17:22. i know some people like that! the running average, clever. like your presenting style.

  • @wardprocter2371
    @wardprocter2371 3 роки тому

    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.

    • @bcnelson
      @bcnelson 3 роки тому

      en.wikipedia.org/wiki/Circular_buffer

  • @electronicstv5884
    @electronicstv5884 3 роки тому +3

    Awesome! I'll ask one of my teachers if we could remake this project. Thanks!😃

    • @Kevindarrah
      @Kevindarrah  3 роки тому +1

      cool, let me know if you do!

    • @electronicstv5884
      @electronicstv5884 3 роки тому

      @@Kevindarrah I'll tell you😃 BTW: great channel

  • @neilgower2558
    @neilgower2558 3 роки тому +1

    Nice job and some cool programming. Keep the good work up

  • @nafihahmd
    @nafihahmd 3 роки тому +2

    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.

    • @Kevindarrah
      @Kevindarrah  3 роки тому

      yea, was thinking about that as well... if I get some time maybe I'll convert to something like this

    • @nafihahmd
      @nafihahmd 3 роки тому +2

      @@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 😊

    • @scottstevens7569
      @scottstevens7569 3 роки тому

      @@nafihahmd That's good idea for alternatives, better than my Wrist inserted RFID plan. :)

  • @dbuezas
    @dbuezas 3 роки тому +1

    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)

  • @dbuezas
    @dbuezas 3 роки тому

    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.

    • @Kevindarrah
      @Kevindarrah  3 роки тому +1

      yea, these are good suggestions - I'll have to try these out!

  • @bcnelson
    @bcnelson 3 роки тому +1

    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.

    • @Kevindarrah
      @Kevindarrah  3 роки тому

      yea, actually that's a really good idea!

    • @TheUnofficialMaker
      @TheUnofficialMaker 3 роки тому

      @@Kevindarrah can u show how to do that

    • @Kevindarrah
      @Kevindarrah  3 роки тому

      @@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

    • @bcnelson
      @bcnelson 3 роки тому

      @@Kevindarrah Normally you use Modulo division although I'm not sure if that is a single instruction on this microcontroller.

  • @DarrahValentine
    @DarrahValentine 3 роки тому

    Very interesting, very intelligent great idea

  • @bm830810
    @bm830810 3 роки тому

    I think it may be more robust if you could store average previous (NO HAND) readings, and compare current reading with that.

  • @nilotpalbaruah6157
    @nilotpalbaruah6157 3 роки тому

    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.

  • @WildLifeBackyardCamera
    @WildLifeBackyardCamera 3 роки тому +1

    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

  • @Mr.Unacceptable
    @Mr.Unacceptable 3 роки тому

    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.

  • @rishidasev6231
    @rishidasev6231 3 роки тому

    it is sunproof or not

  • @richardperritt
    @richardperritt 3 роки тому +1

    I can see unlocking a workstation only if the hand sanitizer was used.

    • @wardprocter2371
      @wardprocter2371 3 роки тому

      I love this idea!! I made a comment earlier that I didn’t see an applicable use case for IOT but I stand corrected,

  • @spacewolfjr
    @spacewolfjr 3 роки тому +1

    I thought this was going to be about a ham sanitizer

    • @scottstevens7569
      @scottstevens7569 3 роки тому

      Aaaaggghhhh, Ham. Break out the emergency ham, Marge'

  • @Flapjackbatter
    @Flapjackbatter 3 роки тому

    You can fly to the _moon_ on 270 micro!

  • @Ender_Wiggin
    @Ender_Wiggin 3 роки тому

    Weird flex, 270 microamps CRAP! i tell you