Automatic Watering System for Plants Using Arduino
by Ur Circuits Hub in Circuits > Arduino
278 Views, 1 Favorites, 0 Comments
Automatic Watering System for Plants Using Arduino
Hey Guys, the objective of this project is to primarily save water, and it saves time as well. So when the sensor senses dry soil, it will pass a signal to arduino which will switch ON the relay, as a result the pump will operate and will water the plants.
Also do watch the complete tutorial on YouTube!
Supplies
- Pliers
- Scissors
- Screwdriver
- Heat Shrink Sleeve/ Electrical Insulation Tape
- BC547 (NPN Transistor)
- 220Ω (Resistor)
- 1N4007 (Diode)
- Jumper Wires
- Breadboard
- 5V Relay
- Soil Moisture Sensor
- Arduino Uno
- Submersible Pump
Upload the Code
The code can be found here
Place the BC547 (Transistor) on the breadboard.
Connect the 220Ω resistor's one leg to the base of transistor and the other leg to an empty hole on the breadboard.
Connect the anode of 1N4007 (Diode) with emitter of transistor and cathode (grey band's side) to an empty hole on the breadboard.
Connect a jumper wire from transistor's collector to GND of Arduino Uno's Power Section.
Connect a jumper wire from resistor's vacant leg to GND of Arduino Uno's digital (PWM) section.
Connect the (sensor's) main board VCC to diode's cathode, the GND to GND of Arduino Uno's power section and DO to 8 of Arduino's digital (PWM) section.
Connect cathode of the diode with the 5V of Arduino's power section using a jumper wire.
Connect the relays' coil terminals to diodes' cathode and anode respectively.
Connect one wire of the submersible pump with the neutral of AC mains(220V).
Connect the live wire (220 V AC) with the common leg of the relay.
Connect the submersible pump's other wire with the relay's normally open(N/O) leg.