Posts

Showing posts from October, 2017

how to make an automatic faucet

Image
Now you will not forget to close your faucet or waste water when you pick a soap to wash your hand or face. This project shows you how to make an automatic faucet, you can even use the faucet that water valve damage because of this circuit use solenoid valve to control water. Electronic components you need: 1 Arduino Uno R3 1 TR1 = IRF 540n N channel MOSFET 1 Sensor1 = IR sensor 1 IR1 = IR led R1 = 10 kilo-ohms R2 = 100 ohms R3 = 4.7 kilo-ohms 1 12 volts solenoid valve 12 volts 1 Ampere adapter The Arduino code is very simple and you don't need to load any special module to make this project works  created 29 Dec. 2008  modified 9 Apr 2012  modified 20 Oct 2017 by easyandworkproject.xyz  by Tom Igoe  This example code is in the public domain.  */ // These constants won't change.  They're used to give names // to the pins used: const int analogInPin = A0;  // Analog input pin that the ir sensor is attached to const int analogOutPin = 9;