Automatic soap dispenser using arduino

Automatic soap dispenser using Arduino -

So hey guy's welcome back to a new article in this article we will make an Automatic soap dispenser using Arduino this soap dispenser is very easy to make In few steps you can make this Automatic soap dispenser at home without wasting any time let's see How to make automatic soap dispenser using Arduino.

Automatic soap dispenser using arduino

Needed Components:

  1. Arduino Uno:  https://amzn.to/2QAhDYw
  2. Proximity Sensor: https://amzn.to/398IMbq
  3. Servo Motor: https://amzn.to/2UraQBy

Introduction: 

Today in this article we are going to make DIY (Do It Yourself) automatic soap dispenser To make this automatic soap dispenser I am using a proximity sensor to detect motion and Servo Motor ( Use a metal servo motor, he will be able to push comfortable) and the brain of this project is Arduino UNO you can also use Arduino nano they will take less space recently I have no audio nano so that's why

I am using Arduino UNO but you can also use Arduino nano as I said they will take less space using three components we made it automatic soap dispenser And the circuit segment is very easy and Code I will give you then you can just copy and paste it.



And if you are having any problem in making it, then you can ask me by commenting. Now before wasting any time now, let's see step by step how to make this smart soap dispenser.

Watch YouTube Video: 

Here is a video about automatic soap dispenser watch the video till the end you will understand everything.


 



Circuit Schematics: I Have Made the circuit diagram on offline software in fritzing 

Automatic soap dispenser using arduino

Another circuit schematics:
Automatic soap dispenser using arduino

Code:



Steps for making the automatic soap dispenser:

Step 1: 

Connect a female jumper wire in the Proximity sensor.

Automatic soap dispenser using arduino

  • After connecting female jumper wires in proximity sensor then connect to the Arduino Uno board.

Automatic soap dispenser using arduino


Step 2:

Now take a Servo Motor and here you can see wire pinout details of a servo motor.

Automatic soap dispenser using arduino

  • After taking a servo motor now connect the male wire to a servo motor.

Automatic soap dispenser using arduino

  • After connecting a male wire to the servo motor then connect to the Arduino Uno board In the image I have made an arrow so that you will be able to understand it easily.


Automatic soap dispenser using arduino




Step 3: 

Now you can see all the connection is done in the image, now you have to upload the code in the Arduino board.


Automatic soap dispenser using arduino


  • After uploading the code here you can see on the Image our circuit is properly working.


Automatic soap dispenser using arduino


Step 4: 

To attach a servo motor I am using a Hot glue gun you can also use super glue.

Automatic soap dispenser using arduino


  • After attaching a servo motor take a copper wire and put it on the hole as you can see on the image.


Automatic soap dispenser using arduino



  • And tie a knot in the servo motor.


Automatic soap dispenser using arduino


After tying a knot in the servo motor, now attach the proximity sensor and Arduino using Hot glue gun.



  • After attaching here you can see on the Image our Automatic soap dispenser is properly working.





Testing:

Here you can see our " Automatic soap dispenser " is properly working If you have any queries related to this article then comment below I will try to answer your question. and I will highly suggest you watch a Youtube video.

Automatic soap dispenser using arduino

Watch YouTube Video: 

           



7 Comments

  1. Replies
    1. Now the code is available now you can download the code from my our artical.

      Delete
  2. I don't have the proximity sensor, can you share the code if I were to use a ultrasonic sensor?

    Thanks

    ReplyDelete
  3. I tried it but doesn't work. The servo just turns in revolutions until it remove obstacle from sensor.

    ReplyDelete
  4. are you able to write the codes in python ?

    ReplyDelete
    Replies
    1. can you write the python format for this ? Thank you!

      Delete
  5. Code : https://github.com/diyelectronic143/ArduinoProjects/blob/master/smart_hand_wash.ino

    ReplyDelete

Post a Comment