Hand Sanitizer Simulation Using Arduino

                                                    Hand Sanitizer Simulation Using Arduino


In this post, we learn how to make Hand Sanitizer Using Arduino UNO and PIR sensor. The PIR sensor detects the hand and sends the signal to the Arduino pin A0 (which is connected to the PIR sensor and used to take as an output). Then Arduino sends the Signal to the Hand Sanitizer so hand sanitizer work. The Arduino pin 7 we use as output and A0 we use as input. 

First of all, you need to download the PIR Sensor and hand sanitizer library. After downloading copy the  TEP.IDX and TEP.LIB files then go to drive C open and the folder whose name is  PROGRAM FILES (x86) then open the folder name LABCENTER  ELECTRONICS in that folder open the file name DATA then search the folder library paste those files in the library folder then run your proteus. 


NAME OF THE COMPONENTS THAT WE USE:


  • Arduino

Arduino UNO
  • PIR Sensor

PIR Sensor
  • Hand Sanitizer

Hand Sanitizer
  • Relay

Relay
  • Button

Button
  • LOGICSTATE

Logicstate



CIRCUIT DIAGRAM:



Connect the PIR sensor pin (OUT) to the Arduino board with the analog pin A0. we use a PIR sensor to take input and then give the signals to the Arduino board. Connect the Hand Sanitizer pin SIG with logicstate. 

Arduino pin 7 is used as output, connecting it with the relay setting the relay to the 5V, also connecting it with the ground, and then connecting the relay with the DC, setting the first DC to 12V and the second to 1v. Connecting the relay with the Hand Sanitizer, setting the hand sanitizer to 12V, also connecting it with the ground. 



CODE:



HERE YOU CAN DOWNLOAD THE ARDUINO LIBRARY
HERE YOU CAN DOWNLOAD THE PIR SENSOR LIBRARY 


FOR HELP CONTACT US

logo by alejandro_velasquez (@pixabay)