Hey everyone!
After washing your hands, place your hand in front of the IR tracking sensor. The IR sensor sends a LOW signal when an object is detected within 2cm. The LOW signal makes the servo motor to rotate 90° and open the door (in this model). The door will automatically close after 10 seconds.
Today I will be explaining about my new project. I have made a touchless faucet with door control system. COVID-19 is a serious pandemic at this moment. The coronavirus is spreading quickly and easily between humans. There are ways to curb the spread of this virus and one way is to wash hands using soap for at least 20 seconds. Sometimes, if the person carelessly touches the faucet - which could be contaminated - after washing his/ her hands, he/she has a higher chance of contracting this coronavirus disease. If you go out, it is safe to wash your hands before entering your premises. You do not have to touch the door handle because the door lock system is automated. In my project, a person will only be granted access once he/ she washes his/ her hands.
In this project, I have made a prototype to wash hands safely with automatic door control system. I have made an automatic faucet so that you do not have to touch the surface of the faucet. The prototype is cheap and easy to make. This faucet is automatic and could also prevent wasting water when not in use.
I made this prototype using the resources at my home as I could not go out due to the lockdown in my country. You are allowed to remake this project or even improve it, but you could also try to convert any container of water into a faucet. I would suggest you to use a solenoid water valve instead of the submersible water pump. The tube is modelled as the faucet in this prototype. This model could be used in malls, offices and your home. This model could be used in places with automatic sliding doors or automatic door system, by replacing the single channel relay module with solid state relay module.
This prototype could also be used as an automatic alcohol-based hand sanitizer dispenser, but when using the hand sanitizer, the container should be closed as the alcohol could evaporate.
Hardware components used in this project
- Arduino Uno
- USB Type A/ B cable (for Arduino Uno)
- Solderless Breadboard - Half + (You will only be needing the power rail)
- Ultrasonic sensor module (HC-SR04)
- IR tracking sensor module
- Towerpro Micro servo motor - SG90
- Relay module - 5V single channel
- LCD display module with I2C interface - 16x2
- Submersible water pump - 5V (You could also use a solenoid water valve instead of this)
- Male-to-Male Jumper wires
- Female-to-Male Jumper wires
Hardware setup
Connections
Ultrasonic sensor
- VCC - 5V
- Trig - D5
- Echo - D4
- GND - Ground
Relay module
- S - D6
- (+) - 5V
- (-) - Ground
16x2 LCD display module with I2C interface
- VCC - 5V
- GND - Ground
- SDA - A4
- SCL - A5
IR tracking sensor module
- S - D3
- (+) - 5V
- (-) - Ground
Servo motor (SG-90)
- S (Yellow/ Orange wire) - D9
- (+) (Red wire) - 5V
- (-) (Black/ Brown wire) - Ground
Coding
If you want to wash your hands, place your hands within 15 cm from the ultrasonic sensor. According to my Arduino program, this will switch on the relay module. The submersible water pump is connected to the relay module and an external power supply. The external power supply can be adjusted to provide the appropriate voltage. The water pump is switched on and the water is pumped from the container to your hands through a tube, which is modelled as the faucet in this prototype.After washing your hands, place your hand in front of the IR tracking sensor. The IR sensor sends a LOW signal when an object is detected within 2cm. The LOW signal makes the servo motor to rotate 90° and open the door (in this model). The door will automatically close after 10 seconds.
If you place your hand in front of the IR tracking sensor without washing your hands, the door will not open and the LCD display module will show a message asking you to wash your hands.
If anyone has any questions with the codes, please feel free to comment below.
Final Look
If anyone has any questions or suggestions about this project, please feel free to comment below or send me an email at arduinoprojectsbyr@gmail.com.
bro the code is unclear
ReplyDeleteCheck the codes from my Instructables page:
Deletehttps://www.instructables.com/id/Touchless-Faucet-With-Door-Control-System-for-COVI/
hello..... can i have a look inside the prototype house..... i want to see how that door can open nd closed automatically.
ReplyDeleteHi ,
ReplyDeleteThe relay module is not working with arduino for your project so does we have to provide external supply for relay module or to connect it with arduino only ?
it be better to gave external battery supply of about 5v to both relay module and servo motor.. and where as u can connect your display module to board of 5v supply
Delete