How to make Automatic Hand Sanitizer || Say" NO" to CoronaVirus || Arduino Project

Поділитися
Вставка
  • Опубліковано 6 січ 2023
  • Hello friends,
    Hope you are all doing good. Today, I am showing you how to convert a normal hand sanitizer bottle to an automatic hand sanitizer dispenser machine. This is done using arduino uno, a stepper motor MG 996R and an ultrasonic sensor HC-SR04. The ultrasonic sensor detects the presence of hand near and and triggers a servo motor. The motor arm pushes and dispenses the hand sanitizer.
    Link to purchase items
    1. Arduino Uno: amzn.to/3RPzXw8
    2. 9V battery with connector: amzn.to/3L8Opfe
    3. Servo motor MG 996 : amzn.to/3xG6Vbs
    4. Ultrasonic sensor HC-SR04 : amzn.to/3XFNCd4
    5. Rocker switch : amzn.to/4eOuCiO
    6. jumper wires : amzn.to/3xG4FB0
    Link to Arduino code:
    drive.google.com/file/d/17qf-...
    Alternate link to download code
    www.mediafire.com/file/r9jh7n...
    Link to download Circuit Diagram:
    drive.google.com/file/d/1Tqoo...
    Please do watch the video .Thank you...
    Please share the video if you like it.
    ❤❤❤~~PLEASE SUBSCRIBE TO THE CHANNEL TO SEE MORE SUCH INTERESTING VIDEOS & MAKE LEARING SCIENCE FUN~~❤❤❤
    #arduino #scienceprojectideas #scienceexhibition #diyprojects #scienceproject #electronics #arduinoproject #projectforkids
    #automatichandsanitizer #arduino #arduinoproject #scienceproject
  • Наука та технологія

КОМЕНТАРІ • 143

  • @viviendaso6077
    @viviendaso6077 7 місяців тому +2

    I tried making it for a school project and it works perfectly! This is one of the easiest Arduino UNO tutorials to follow. Thank you Science for U!

    • @Science_4U_
      @Science_4U_  7 місяців тому +2

      Thank you so much dear friend. Words of appreciation like these are the motivation to make more such projects and share with everyone. Thank you once again..😀❤️

  • @user-mj1dv2lh2m
    @user-mj1dv2lh2m 8 місяців тому +1

    Hi is there a specific Arduino Uno for this project? Because when I was trying to buy there is Arduino Uno DIP and Arduino Uno CH340G. I'm not quite sure which to buy.

    • @Science_4U_
      @Science_4U_  8 місяців тому +2

      Both will work friend..🙂There are only minor differences between them in term of speed. Also in DIP the chip is removable . But both boards are fundementally the same.

    • @user-mj1dv2lh2m
      @user-mj1dv2lh2m 8 місяців тому

      Thank you so much.

  • @laurenlucero148
    @laurenlucero148 3 місяці тому +1

    Is there any way to make the angle of the servo motor for it to move more?

    • @Science_4U_
      @Science_4U_  3 місяці тому +2

      Yes friend..Sure!!!!..You can make the following changes in the code to change the rotating angle of the servo motor. Please find the below lines in the code..
      for(pos=0;pos=0;pos--)
      {
      Myservo.write(pos);
      delay(15);
      1. In the above codes 0° is the initial position and 20° is the final position of the servo motor. Increase the pos=20° to a higher number like 30° in both the 'for' commands to get more angle of rotation and hence more pressing of the arm..
      2. Also please find the command delay(15). That is the delay in milliseconds for each degree turn of the motor. Reducing the number will make rotation faster. You can type 0 to make the fastest rotation.

  • @user-ht5pc9so7d
    @user-ht5pc9so7d 6 місяців тому +1

    hi bro... can we use sg90 servo motor instead of mg996 servo motor?

    • @Science_4U_
      @Science_4U_  6 місяців тому +2

      Hi friend. You can use SG90 servo motor also. But its torque is way lesser than MG996 motor. MG996 motor produces 11 kgcm torque whereas SG 90 produces only 1.6 kgm torque, i.e. almost 7 times lower. So SG90 pushing force will be less, but it will just work I think.

  • @4aidsmker172
    @4aidsmker172 9 місяців тому +1

    Heyy , i cant download the code link using wps office , which app can i download it?

    • @Science_4U_
      @Science_4U_  9 місяців тому +1

      Just goto google drive link and click on download button. The code will be downloaded to PC. Then you can use arduino IDE software for opening the code..

  • @TenTrillionMs
    @TenTrillionMs 5 місяців тому +1

    how do i make the servo rotate more i am using the normal servo

    • @TenTrillionMs
      @TenTrillionMs 5 місяців тому +1

      pls help i need to submit tommorrow

    • @Science_4U_
      @Science_4U_  5 місяців тому +1

      @dxrkshadows Hi friend..Don't worry..You can make the following changes in the code to change the rotating angle of the servo motor. Please find the below lines in the code..
      for(pos=0;pos=0;pos--)
      {
      Myservo.write(pos);
      delay(15);
      1. In the above codes 0° is the initial position and 20° is the final position of the servo motor. Increase the pos=20° to a higher number like 30° in both the 'for' commands to get more angle of rotation and hence more pressing of the arm..
      2. Also please find the command delay(15). That is the delay for each degree turn of the motor. Reducing the number will make rotation faster. You can type 0 to make the fastest rotation.

  • @pxlxx2706
    @pxlxx2706 Місяць тому +1

    Hey ! Thanks for the guidance. But i am facing a problem. When i connect the board with laptop, the code works perfectly fine and servo motor also rotates but when disconnected from the laptop and operated on battery only the servo motor does not rotate at all. Can you suggest what the problem might be?

    • @Science_4U_
      @Science_4U_  Місяць тому +1

      Hi friend. It is definitely due to the battery not powerful enough to rotate the servo motor. When uno is directly connected to laptop, there is adequate power available from the UDB port. Hence no shortage of power and it works correctly. But when uno is disconnected from laptop, the board, sensor and servo motor has to be powered by the battery only. So if it is not powerful enough or discharged, it cannot rotate the servo motor. Servo motor consumes large amount of current during operation.

    • @Science_4U_
      @Science_4U_  Місяць тому +1

      Which battery are you using friend?

    • @pxlxx2706
      @pxlxx2706 Місяць тому +1

      @@Science_4U_ i am using a 9V battery, the same as u used

    • @Science_4U_
      @Science_4U_  Місяць тому +1

      @@pxlxx2706 hmm..okay friend. This 9V battery is good enough. But i think it may be discharged. Is it a new one that you are using?

    • @pxlxx2706
      @pxlxx2706 Місяць тому +1

      @@Science_4U_ Yes it is !

  • @shreyasvh6569
    @shreyasvh6569 7 місяців тому +1

    Arduino code is not working pls send it

  • @venunuvvula5383
    @venunuvvula5383 8 місяців тому +2

    Servo motor is rotating just somewhat not rotating fully to pump the santizer tomorrow is our submission pls reply what can we do now??

    • @Science_4U_
      @Science_4U_  8 місяців тому +2

      Hi friend..Don't worry..You can make the following changes in the code to change the rotating angle of the servo motor. Please find the below lines in the code..
      for(pos=0;pos=0;pos--)
      {
      Myservo.write(pos);
      delay(15);
      1. In the above codes 0° is the initial position and 20° is the final position of the servo motor. Increase the pos=20° to a higher number like 30° in both the 'for' commands to get more angle of rotation and hence more pressing of the arm..
      2. Also please find the command delay(15). That is the delay for each degree turn of the motor. Reducing the number will make rotation faster. You can type 0 to make the fastest rotation.

    • @Science_4U_
      @Science_4U_  8 місяців тому +3

      Please change the code accordingly and upload. Please see if this solves the problem..

    • @venunuvvula5383
      @venunuvvula5383 8 місяців тому +2

      Now it worked thank you so much 😊

    • @Science_4U_
      @Science_4U_  8 місяців тому +2

      @@venunuvvula5383 okay friend..happy to know that..🙂

  • @Ki77mo66
    @Ki77mo66 5 місяців тому +1

    please. When I install, the servo moves four to five revolutions or more. What is the solution?

    • @Ki77mo66
      @Ki77mo66 5 місяців тому +1

      I want to deliver it to the university on Wednesday

    • @Science_4U_
      @Science_4U_  5 місяців тому +1

      Hi friend. You are using a continous rotation servo. But you have to use a positional servo motor which can rotate only 180 degrees. Both infact looks the same so it is difficult to differentiate. Positional servo motor only remembers the reference and turns a fixed angle from reference point everytime command is given.

  • @Branded...
    @Branded... 7 місяців тому +1

    Which gel is used to attach the components with sanitizer??

    • @Science_4U_
      @Science_4U_  7 місяців тому +1

      Hi friend. I have just used some handwash for the project. Sanitizer also will work. There are so many gel like sanitizers which will work best with this project.

    • @Branded...
      @Branded... 7 місяців тому +1

      Which gum (fevical) you used ?

    • @Science_4U_
      @Science_4U_  7 місяців тому +2

      @Branded... ooh..you mean gum..I first used normal glue gun and gluestick for sticking the components to the sanitizer. For the servo motor alone, Since large force acts on it, I applied some feviquick also..

  • @Foot_EditzX
    @Foot_EditzX Місяць тому +1

    Hey bro can I make this with normal blue small servo motor

    • @Science_4U_
      @Science_4U_  Місяць тому +2

      Yes friend. The blue motor that you are telling is an SG 90 servo motor. That will also work. I have seen many videos of similar project with that motor as well.

    • @Foot_EditzX
      @Foot_EditzX Місяць тому +1

      Thanks

  • @joeljaswanth6490
    @joeljaswanth6490 7 місяців тому +1

    bro that code is not working and Servo motor rotating continuously can you change the code

    • @Science_4U_
      @Science_4U_  7 місяців тому +2

      Hi friend. The code is correct only. Many have done this project also succesfully with this code. I think the servo that you have is a continous rotation servo. You need a stadard servo motor with around 180 degree rotation to work correctly. Both are different type of servo motors. You can search in internet..

  • @JulminJanudi
    @JulminJanudi 2 місяці тому +1

    Why can't I download the link for the Arduino Uno code? Can you drop the code for me?

    • @Science_4U_
      @Science_4U_  2 місяці тому +1

      Hi friend. Have you tried downloading code from the following mediafire link also?
      www.mediafire.com/file/r9jh7nd4nip6kga/automatic_sanitizer.ino/file

  • @eline_111
    @eline_111 10 місяців тому +1

    hi, me and my friend tried doing this. We bought all the equipment needed and tried the code given, it did not pump. any suggetions on what to do right now?

    • @Science_4U_
      @Science_4U_  10 місяців тому +1

      Hi friend. Is the servo motor arm rotating when you are bringing your hand near the ultrasonic sensor?

    • @Science_4U_
      @Science_4U_  10 місяців тому +2

      Or is it just a pumping problem?. Like the arm is moving when hand is brought near the ultrasonic sensor, but the sanitizer is not coming out of the bottle?.

    • @eline_111
      @eline_111 10 місяців тому +2

      @@Science_4U_ yes.. it is the pumping problem. We tried many things... any solution for this??

    • @Science_4U_
      @Science_4U_  10 місяців тому +1

      @eline_3 Is the sanitizer coming out by pressing with hand. Normally it takes a few presses initially for the sanitizer to come out. Also, are you using just alcohol sanitizer which flows like water?. You can use some thicker alcohol based sanitizer fluids which will be easy to come out with a press. You can try with handwash also and see if that works.

    • @eline_111
      @eline_111 10 місяців тому +2

      @@Science_4U_ the sanitizer is coming out by using hand. thanks for the solution!
      it is liquidy...and we are using an ethyl alcohol based sanitizer

  • @user-on5rt1vg9h
    @user-on5rt1vg9h 3 місяці тому +1

    hi, we have constructed the device. but it is not working.

    • @Science_4U_
      @Science_4U_  3 місяці тому +1

      Okay friend. I guess the ultrasonic sensor is faulty. It is not detecting your hand and that is why it is not working. Is the sensor a new one or have you already used it before and working?

  • @riddhipatil5618
    @riddhipatil5618 5 місяців тому +1

    which software is required to run the code

    • @Science_4U_
      @Science_4U_  5 місяців тому +1

      Hi friend..It is called IDE software. IDE stands for Integrated Development Environment..it can be downloaded from internet for free..I will give the download link below..
      www.arduino.cc/en/software

  • @hruthikanp6337
    @hruthikanp6337 2 місяці тому +1

    If im running the code qith only a arduino uno. It is showing some error

    • @Science_4U_
      @Science_4U_  2 місяці тому +1

      Hi friend. What is the error that it is showing?

    • @hruthikanp6337
      @hruthikanp6337 Місяць тому +1

      @@Science_4U_ hey it worked well, sry for the late reply. I presented well for my exhibition thankss

    • @Science_4U_
      @Science_4U_  Місяць тому +1

      @hruthikanp6337 okay friend. Glad to know that it worked well for your exhibition..🥰❤️🙂

  • @laurenlucero148
    @laurenlucero148 4 місяці тому +1

    Will arduino uno r3 work as well?

    • @Science_4U_
      @Science_4U_  4 місяці тому +2

      Yes friend. Definitely. All the connections will be same.

  • @kimzueyt8005
    @kimzueyt8005 5 місяців тому +1

    sir what are the jumper wires? male to male / female to female or male to female, thankyou for response❤

    • @Science_4U_
      @Science_4U_  5 місяців тому +2

      Hi friend. I have use the following. 4 numbers male to female jumper wires for connecting ultrasonic sensor to arduino. 3 Nos. of jumper wires male to male for connecting servo motor to arduino.

  • @hruthikanp6337
    @hruthikanp6337 2 місяці тому +1

    Thanksss bro.

    • @Science_4U_
      @Science_4U_  2 місяці тому +1

      You are welcome dear friend..❤️🙂

  • @veergamer7434
    @veergamer7434 8 місяців тому +1

    Can u list the components which are required to this ??

    • @Science_4U_
      @Science_4U_  8 місяців тому +1

      Hi friend. The list of items required and their purchase links too are given in the description box just below the video...🙂

  • @easy_notes19
    @easy_notes19 Рік тому

    How i can download the code for it ...plz suggest

    • @Science_4U_
      @Science_4U_  Рік тому

      Hi friend, the code can be downloaded from the google drive link that I have given in the description section.
      Iam giving the link to download code below also..
      drive.google.com/file/d/17qf--8l59exZo_DeykKACKy51wdMksMC/view?usp=share_link

  • @user-xv1fg7xy9m
    @user-xv1fg7xy9m 4 місяці тому +1

    Hi, We have connected the components exactly like yours.. But the servo motor is not at all rotating...please give me some suggestions

    • @Science_4U_
      @Science_4U_  4 місяці тому +1

      Hi friend. Either the servo motor could be faulty or ultrasonic sensor may not be working correctly to detect your hand near it.

    • @Science_4U_
      @Science_4U_  4 місяці тому +1

      You have to test servo motor and ultrasonic sensor separately and find out which is having problem.

    • @user-xv1fg7xy9m
      @user-xv1fg7xy9m 4 місяці тому +1

      @@Science_4U_ can i replace the servo motor with sg90 ? Will that work?

    • @Science_4U_
      @Science_4U_  4 місяці тому +1

      @user-xv1fg7xy9m Yes sure friend. That will also work. If that servo motor is also not working, most likely the ultrasonic sensor is faulty. It is not detecting you hand and hence the sevo motor is not rotating.

    • @user-xv1fg7xy9m
      @user-xv1fg7xy9m 4 місяці тому +1

      @@Science_4U_ No we've checked the sensor.. it's working perfectly.. Still don't understand where the problem is.. we have tried to do exactly the way you have shown in the video..

  • @user-kz1mp9pv2c
    @user-kz1mp9pv2c 5 місяців тому +1

    The code isn't downloading what to do kindly tell me hurry tomorrow is my exam

    • @Science_4U_
      @Science_4U_  5 місяців тому +1

      Hi friend. Don't worry. I have uploaded the code in mediafire site also. Can you try downloading the code from the below link?
      www.mediafire.com/file/r9jh7nd4nip6kga/automatic_sanitizer.ino/file

  • @lc_electric
    @lc_electric Рік тому +3

    Keep going bro ❤

  • @santoshgodawale-sy4ep
    @santoshgodawale-sy4ep 9 місяців тому +1

    Heyy can please share the diagram of connection

    • @Science_4U_
      @Science_4U_  9 місяців тому +1

      Yes sure friend. I made the circuit diagram now & it can be downloaded from the following link :
      drive.google.com/file/d/1TqooN2gKNmgrDdJC0sjF-hJeRgPpGmvY/view?usp=sharing

  • @loktale6483
    @loktale6483 Рік тому +2

    Brilliant idea ❤

  • @Criz-rd5ti
    @Criz-rd5ti 4 місяці тому +1

    hi can i have the code.pls

    • @Science_4U_
      @Science_4U_  4 місяці тому +1

      Hi friend. Sure. The code can be downloaded from the google drive link given in the description box below the video.

  • @EDUARDOOMANDAM
    @EDUARDOOMANDAM 2 місяці тому +1

    can i have the code?

    • @Science_4U_
      @Science_4U_  2 місяці тому +1

      Yes friend..sure.. The link to download code is already given in the description box below every video. I am giving links here also.
      Link to Arduino code:
      drive.google.com/file/d/17qf--8l59exZo_DeykKACKy51wdMksMC/view?usp=share_link
      Alternate link to download code
      www.mediafire.com/file/r9jh7nd4nip6kga/automatic_sanitizer.ino/file

  • @VinKrishSolutions
    @VinKrishSolutions Рік тому +1

    Super😊👌

  • @leejaj
    @leejaj Рік тому +2

    So useful👌

  • @funwithrakshanraj9262
    @funwithrakshanraj9262 4 місяці тому +1

    And l have project tomorrow

  • @funwithrakshanraj9262
    @funwithrakshanraj9262 4 місяці тому +1

    I didn’t get the code

    • @Science_4U_
      @Science_4U_  4 місяці тому

      The code will be small size only but will have an extension .ino

  • @quicklookkarthik
    @quicklookkarthik Рік тому +1

    Innovative.

    • @Science_4U_
      @Science_4U_  Рік тому +1

      Thank you so much friend..💓🙂

  • @larryhull2752
    @larryhull2752 11 місяців тому +1

    Bro how many times are you gonna sanitize 😂😂

    • @Science_4U_
      @Science_4U_  11 місяців тому +1

      😂To ensure 100% disinfection😂😂

  • @shreyasvh6569
    @shreyasvh6569 7 місяців тому +1

    Means it shows no preview available

    • @Science_4U_
      @Science_4U_  7 місяців тому +1

      Hi friend.. I didn't understand the question. What is the preview you are referring to?

    • @shreyasvh6569
      @shreyasvh6569 7 місяців тому +1

      Sir if we try to download the arduino code it shows no preview available

    • @shreyasvh6569
      @shreyasvh6569 7 місяців тому +1

      please send that Arduino code

    • @Science_4U_
      @Science_4U_  7 місяців тому +1

      @@shreyasvh6569 It will show no preview available. But there will be a download button also in google drive. By clicking on it, the file will get downloaded.

    • @shreyasvh6569
      @shreyasvh6569 7 місяців тому +1

      @@Science_4U_ there will be download button but once it downloaded I will make try to open it but file can't open that's would you plss send me the code

  • @funwithrakshanraj9262
    @funwithrakshanraj9262 4 місяці тому +1

    Simply coming 1KB and not showing nothing

    • @Science_4U_
      @Science_4U_  4 місяці тому +1

      Hi friend..You can try downloading the code from the following links..
      Link to Arduino code:
      drive.google.com/file/d/17qf--8l59exZo_DeykKACKy51wdMksMC/view?usp=share_link
      Alternate link to download code
      www.mediafire.com/file/r9jh7nd4nip6kga/automatic_sanitizer.ino/file

    • @jayniv6345
      @jayniv6345 2 місяці тому +1

      ​@@Science_4U_ Link to arduino code : No preview available?

    • @Science_4U_
      @Science_4U_  2 місяці тому +1

      @@jayniv6345 No preview is available friend. You have to download it and then open in IDE software.

  • @JohnSmith-kc7fi
    @JohnSmith-kc7fi Рік тому +2

    How much did you take it to make this?

    • @Science_4U_
      @Science_4U_  Рік тому

      It took around 20 dollars to make this..

    • @Science_4U_
      @Science_4U_  Рік тому

      Arduino UNO board - 10 dollars..
      Servo motor - 4 dollars
      Ultrasonic sensor - 4 dollars
      And other items like battery, switch and jumper wires - 2 dollars..

    • @JohnSmith-kc7fi
      @JohnSmith-kc7fi Рік тому +1

      @@Science_4U_ thanks for this can you please name all the equipments you used in this project and how much time diit take to do it?

    • @Science_4U_
      @Science_4U_  Рік тому +1

      @@JohnSmith-kc7fi Yes sure. Please find below the items used for this project and the purchase links too.
      1. Arduino Uno: amzn.eu/d/5IlDq9r
      2. 9V battery: amzn.eu/d/34SPqIR
      3. Servo motor MG 996 : amzn.eu/d/fcIwdMR
      4. Ultrasonic sensor HC-SR04 : amzn.eu/d/8Qi1WuQ
      5. Rocker switch : amzn.eu/d/1BBajCn
      6. jumper wires : amzn.eu/d/7uemocG
      7. Connector for 9V battery : amzn.eu/d/gXdNQt6

    • @Science_4U_
      @Science_4U_  Рік тому +1

      @@JohnSmith-kc7fi It is a rather easy project. It takes just 3-4 hours to complete this project🙂.