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.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
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 - วิทยาศาสตร์และเทคโนโลยี
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!
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..😀❤️
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.
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.
Thank you so much.
Is there any way to make the angle of the servo motor for it to move more?
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.
hi bro... can we use sg90 servo motor instead of mg996 servo motor?
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.
Which gel is used to attach the components with sanitizer??
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.
Which gum (fevical) you used ?
@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..
Arduino code is not working pls send it
how do i make the servo rotate more i am using the normal servo
pls help i need to submit tommorrow
@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.
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?
Hi friend. Is the servo motor arm rotating when you are bringing your hand near the ultrasonic sensor?
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?.
@@Science_4U_ yes.. it is the pumping problem. We tried many things... any solution for this??
@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.
@@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
Will arduino uno r3 work as well?
Yes friend. Definitely. All the connections will be same.
please. When I install, the servo moves four to five revolutions or more. What is the solution?
I want to deliver it to the university on Wednesday
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.
Heyy , i cant download the code link using wps office , which app can i download it?
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..
sir what are the jumper wires? male to male / female to female or male to female, thankyou for response❤
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.
Servo motor is rotating just somewhat not rotating fully to pump the santizer tomorrow is our submission pls reply what can we do now??
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.
Please change the code accordingly and upload. Please see if this solves the problem..
Now it worked thank you so much 😊
@@venunuvvula5383 okay friend..happy to know that..🙂
Heyy can please share the diagram of connection
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
Brilliant idea ❤
Thanks🙂
bro that code is not working and Servo motor rotating continuously can you change the code
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..
Keep going bro ❤
Thank you bro..🥰💓👍
Can u list the components which are required to this ??
Hi friend. The list of items required and their purchase links too are given in the description box just below the video...🙂
which software is required to run the code
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
hi, we have constructed the device. but it is not working.
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?
Hi, We have connected the components exactly like yours.. But the servo motor is not at all rotating...please give me some suggestions
Hi friend. Either the servo motor could be faulty or ultrasonic sensor may not be working correctly to detect your hand near it.
You have to test servo motor and ultrasonic sensor separately and find out which is having problem.
@@Science_4U_ can i replace the servo motor with sg90 ? Will that work?
@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.
@@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..
How i can download the code for it ...plz suggest
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
Thanksss bro.
You are welcome dear friend..❤️🙂
The code isn't downloading what to do kindly tell me hurry tomorrow is my exam
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
hi can i have the code.pls
Hi friend. Sure. The code can be downloaded from the google drive link given in the description box below the video.
Innovative.
Thank you so much friend..💓🙂
So useful👌
Thank you..🙂🥰
can i have the code?
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
And l have project tomorrow
Super😊👌
Thank you..🙂🥰
I didn’t get the code
The code will be small size only but will have an extension .ino
Bro how many times are you gonna sanitize 😂😂
😂To ensure 100% disinfection😂😂
Means it shows no preview available
Hi friend.. I didn't understand the question. What is the preview you are referring to?
Sir if we try to download the arduino code it shows no preview available
please send that Arduino code
@@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.
@@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
Simply coming 1KB and not showing nothing
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
@@Science_4U_ Link to arduino code : No preview available?
@@jayniv6345 No preview is available friend. You have to download it and then open in IDE software.
How much did you take it to make this?
It took around 20 dollars to make this..
Arduino UNO board - 10 dollars..
Servo motor - 4 dollars
Ultrasonic sensor - 4 dollars
And other items like battery, switch and jumper wires - 2 dollars..
@@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?
@@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
@@JohnSmith-kc7fi It is a rather easy project. It takes just 3-4 hours to complete this project🙂.