• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Hire Me | Contact | Calculators-online
You are here: Home / Water Controller / Simple Automatic Plant Watering Circuit for Monitoring Soil Moisture

Simple Automatic Plant Watering Circuit for Monitoring Soil Moisture

Last Updated on January 2, 2024 by Swagatam 177 Comments

This automatic plant watering circuit can be used for automatically sensing soil humidity and triggering a water pump when the ground gets parched below a predetermined level (adjustable).

Table of Contents
  • Circuit Operation
    • Circuit Diagram
      • Parts List
    • Soil Moisture Sensor with Automatic Water Sprayer
  • Technical Specifications
    • Circuit Diagram
    • The Design
      • Selecting Bar Mode and Dot Mode
    • Simple Transistorized Soil Watering System
  • Using Water Control Valve
    • Corrosion Free Automatic Plant Watering Circuit

Circuit Operation

The circuit is rather straightforward and uses a single IC 555 as the main active component.Referring to the automatic plant irrigation circuit shown below we can see the IC 555 is wired in a completely unique and in the quickest possible mode.

Here it's configured as a comparator, and works better than an opamp because the IC 555 has built in opamps which are at par with any single opamp and also the output of a 555 IC is able to sink sufficient current in order to drive a relay without a transistor driver stage.

The above features particularly makes the above design very simple, low cost and yet too effective with its functions.

The pin#2 here becomes the sensing pinout of the IC, and is held at ground level via R2 which must be calculated as per the desired soil humidity triggering threshold.

The points A and B can be seen fixed inside the soil which needs to be monitored for the intended automatic watering from the water pump.

As long as the points A and B senses some level of humidity corresponding to a resistance value which may be lower than R2, the IC 555 output is held low, which in turn keeps the relay deactivated.

However as the soil tends to get dryer, the resistance across the probes starts getting higher and at some moment of time it becomes higher than R2, creating a potential below 1/3rd supply voltage at pin#2 of IC555.

The above situation instantly prompts pin#3 of the IC to become high, triggering the connected relay.

The relay activation switches ON the water pump which now starts pumping water to the particular area of the soil via a distributing water channel.

As this happen, the soil gradually gets wetter and as soon as the predetermined level is reached, the probes immediately sense the lower resistance and revert the IC ouput pin#3 to a low again switching OFF the relay and the water pump consequently.

C1 ensures a slight hysteresis in the operations ensuring that the relay triggering is not sudden or abrupt, rather it switches only after sensing a genuine response from the soil conditions.

Circuit Diagram

The above explained automatic plant irrigation circuit was successfully built and tested by Mr. Ajay Dussa.

The following images show the prototype unit and the PCB design built by Mr. Ajay.

PCB Design


FOR A 741 OP AMP BASED CIRCUIT, YOU CAN REFER TO THIS ARTICLE.


Parts List

All resistors are 1/4 watt 5% CFR

  • R1 = 10K
  • R3 = 2M2
  • R4 = 100K
  • R2 = 1M preset or cermet
  • C1 = 1uF/25V optional for creating delay effect on the relay
  • Relay = 12V, 400 ohm SPDT
  • Supply input = 12V/500mA DC

Another version of the PCB design is shown below. It was designed an contributed by: Alireza Ghasemi

Soil Moisture Sensor with Automatic Water Sprayer

The next article explains a 10 stage soil moisture sensor circuit with an integrated automatic water sprayer mechanism for restoring  the critical condition of the soil. The idea was requested by Mr. Remy.

Technical Specifications

I come today asking for help making an automatic watering circuit to water my tomatoes for me.

I am requesting the use of a soil moisture sensor (cheap eBay style) to sense the moisture of the soil.

Then the moisture value is compared to a set value from a potentiometer maybe. If level is too low then a relay is turned on for a settable amount of time. After a shower the soil is measured again.

Rise repeat.

The ability to daisy chain many together would be a great help.

For wow factor I was thinking that having a few(3) leds light up as a scale to indicate the current moisture level would work well. Thank you for your time and experience.

I have learned much from you and hope to add this to my knowledge.

Remy

Circuit Diagram

The Design

Referring to the given schematic we see a simple yet highly accurate soil moisture sensor circuit with an automatic preset water shower system for restoring the soil moisture level to optimum points.

The design is based on a single voltage sensor/LED driver IC LM3914 or a LM3915. The shown sensor pins which are basically two brass rods are configured as voltage sensors across the critical soil area where it may be inserted.

The voltage across these pins depend upon the level of moisture present across that particular soil area. This sensed voltage proportionate to the soil moisture level is applied across pin5 of the IC for the required comparison with an in-built reference voltage level.

The threshold level at which the shower pump is supposed to be switched ON is set by P1.

Depending upon this setting, the IC internal circuitry senses the soil moisture and produces a shifting sequential low logic across the shown 10 outputs starting from pin1 to pin10.

This sensed output across the relevant IC outputs are indicated by 10 respective LEDs which light up in sequence in response to the rising or depleting soil moisture levels.

Selecting Bar Mode and Dot Mode

The LED illumination sequencing style could be selected to simulate a bar mode or a dot mode by appropriately positioning the pin9 switch of the IC to either ON or OFF.

The stage comprising BC547 and BC557 constitute the relay driver stage for controlling the motor pump switching as per the user preference.

The base of the PNP transistor is appropriately integrated with any of the output pins of the IC depending at what moisture threshold the user wants the motor to be started or stopped.

For example suppose pin15 determines a particular moisture threshold level of the soil and the user feels it to be the unsafe level at which the motor needs to be started in order to restore the soil moisture, then this pinout could be chosen and hooked up with the base of the BC557 transistor for the discussed motor switching.

Once the motor is switched ON the soil is showered until its moisture level is restored to the desired level and this prompts the IC to revert its sequence from pin15 to pin14 and toward pin10, switching OFF the motor and the shower.

The above process keeps repeating making sure that the soil moisture level never goes down below the undesired parched condition.

Simple Transistorized Soil Watering System

Here's another automatic soil watering system that you can build. Its working mode is mainly the nonstop checking of soil moisture, and then responding to a drop beneath a preadjusted degree to set off the plant watering action. This design consists of a straightforward trigger circuit, that switches ON the relay RL for a degree of moisture in the soil and its conductivity which may be beneath the fixed level as adjusted by the 5 k preset.

The conductivity inside the soil or mud is detected through a pair of probes coupled to the terminals as indicated in the diagram. The idea really is easy and very reliable, and will can work by using any supply voltage between 6 and 12 volts or even more, only if the supply voltage is perfectly compatible with the working voltage spec of the relay.

The relay contacts can be appropriately wired with a water pump or a water sprayer device for initiating the required automatic watering of the plant, each time a dry soil is detected and the relay is switched ON.

Using Water Control Valve

In the circuit below, whenever the amount of soil moisture exceeds a certain threshold, an electric water valve is shut off. One of the probes is attached to a positive 12-volt supply, while the other probe is hooked to the base of Q1.

The sensitivity is adjusted using resistor R4.

Once the moisture level falls below the predetermined level, Q1 switches off and Q2 switches on, turning ON the relay and supplying power to the water valve.

The water valve begins pouring water into the soil. When this happens the resistance between the two probes starts reducing as the amount of moisture around the probes rises.

Eventually significant current starts passing into the base of Q1 to switch it on and switch off Q2. As a result the relay turns off and the valve loses power. This instantly stops any further flow of water into the soil.

Corrosion Free Automatic Plant Watering Circuit

If the probes are not constructed from high-quality materials, electrolysis may happen and eventually impact how the circuit functions. Cleaning the probes frequently or using a circuit that uses an AC voltage on the probes are two solutions toward this issue.

anti corrosion, or corrosion free automatic plant watering circuit for gardens and pots

The diagram above displays an AC probe automatic plant watering valve control circuit with corrosion free probes. A 12-0-12V center tapped transformer is wired into an AC bridge circuit.

The soil or mud resistance between the probes along with R2 functions as a couple of variable components of the bridge circuit, with each half secondary winding of the transformer operating as one of the two fixed components.

In order to ascertain the magnitude of a component, such as resistance, inductance, or capacitance, an AC bridge circuit typically balances the bridge with the adjustable component and reads the component's magnitude at balance on the scale.

The output would be an AC signal which is 180 degrees out of phase and equivalent in amplitude on each side of balance.

If a typical AC bridge circuit had been employed for the anti-corrosion soil moisture detector, it would simply show when the ground resistance was close to the preset value of R4. The water valve would shut off once the bridge was balanced, but the water would still percolate into the ground, reducing the resistance between the probes.

As a result, the bridge would become unbalanced, reopening the water valve and flooding the plant soil. Not good at all.

The aforementioned circuit solves the issue by evaluating the bridge's output phase to the secondary of T1's "A" side. The relay would be activated and water would start flowing if the probes were first placed in dry soil with resistance values significantly greater than R4's predetermined resistance value.

It is because:
The voltage is provided to the relay via a 1N4007 diode and the LED whenever the "A" secondary winding of T1 changes from negative to positive.

Due to the resistance value of R4 being significantly smaller than the soil resistance, current is supplied via R3 and D1 to the base of Q1, switching it on.

However, at the same time the output at "C" is also starts becoming positive. Due to this Q2 turns on, switching ON the relay and turning on the water valve.

The bridge becomes balanced and the output voltage at "C" is zero as soon as the resistance across the probes reaches the predetermined value specified by R4. Transistors Q1 and Q2 now switch off, turning off the relay and blocking the water flow through the water control valve.

The bridge turns unstable in the opposite direction as the water seeps into the soil, however the relay is never switched ON.

It is because: Current is able to flow into the base of Q1 whenever the "B" secondary winding of T1 is positive, however no collector current is able to flow since the "A" secondary winding's voltage is 180 degrees out of phase and negative. D2 prevents that negative voltage from getting to the relay and transistor circuits.

The water valve won't turn on until the resistance measured across the probes is less than R4's value. To prevent the relay from stuttering, capacitor C1 is used to smooth out the oscillating DC power supply. Whenever the water valve is switched on, the LED flashes.

You'll also like:

  • Two Pipe Water Pump Valve Controller Circuit
  • remote control water level controlRemote Controlled Wireless Water Level Controller Circuit
  • SMS based Water notification schematicSMS Based Water Supply Alert System
  • 5 Simple Water Level Controller Circuits

Filed Under: Water Controller Tagged With: Automatic, Monitoring, Plant, Simple, Soil, Watering

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!



Previous Post: « 12V, 5 Amp SMPS Battery Charger Circuit
Next Post: How to Make Car LED Bulb Circuit »

Reader Interactions

Discussion & Solutions

Total Posts: 177
Newest Oldest
Ajay Dusa
March 5, 2014 • 12 years ago #20342

Oh!!!!Thank you for this circuit.Was waiting for this one.also I had sent you a mail on hitman2008@live.in regarding water controller.Please check that out.Also can you mention the value of R2…..I think it's missing….

Reply
SwagatamAdmin
March 6, 2014 • 12 years ago #20352

You are welcome Ajay!
I have replied to your email, pls check it.
R2 can be replaced with a 2M2 pot for setting the soil moisture detection threshold.

Reply
sham kumar
March 8, 2014 • 12 years ago #20392

Hi Mr swagatam,
i am new to your website and happy that there are so many good circuts,
I am in a instrumentation field, presently on some small project which need a 3.7vdc 750mAh lithium ion rechargable battery as a back up power, so kindly let me know the one good working circuit for 1)overcharge protection 2)immediate change over 3)low battery indication. As the one like yours Automatic micro UPS circuit.but now its for 3.7vdc

Reply
SwagatamAdmin
March 19, 2014 • 12 years ago #20631

Bro, The input is not 3.7V, the requested circuit is for charging the 3.7v cells….

for charging 3.7v cells the input has to be 5v,

the diode cathode will obviously connect with the positive of the cell.

Reply
Fareed
March 21, 2014 • 12 years ago #20710

o o thanks bro.
how can i make battery indicator of 5 leds for 12v battery.

Reply
SwagatamAdmin
March 22, 2014 • 12 years ago #20723

….you can refer to this article, it's a 10 LED circuit:

https://www.homemade-circuits.com/2013/08/make-this-10-step-battery-voltage.html

Reply
sskopparthy
May 15, 2014 • 12 years ago #22488

This is a very useful circuit sir, just made and installed it in my house, works very great. I've seen other circuits online…..but as always the best circuit with more affordability and durability is here….thank you for your innovative innovations….:-)

Reply
SwagatamAdmin
May 15, 2014 • 12 years ago #22505

Thank you SS, I appreciate it a lot!
By the way I have published the phase neutral indicator circuit, but it's not as efficient as the original, because due to lack of time I couldn't experiment enough with it.
Nevertheless the results from it would be perfect.

Reply
sskopparthy
May 16, 2014 • 12 years ago #22518

Dear sir, thank you very much…….I've seen the circuit……no problem………you may design the the buzzer indication circuit when you are free and hav time….designing this circuit for me is not as important as doing your works…..but you're more concerned about others…….you're a boon to the electronics society all over the world…..and to people like me….
thank you very much,
ss.

Reply
sskopparthy
May 16, 2014 • 12 years ago #22519

Sir, by the way, I wanted to use a transformerless power supply for this circuit, can I do so sir,…? I would be happy if you could suggest a transformerless power supply circuit from this blog…also please tell me the current consumption of this circuit…….thank you sir……

Reply
SwagatamAdmin
May 16, 2014 • 12 years ago #22531

Sure SS, as soon as I am free I'll upgrade the circuit appropriately:) I appreciate your involvement very much.

Reply
SwagatamAdmin
May 16, 2014 • 12 years ago #22532

SS, it would be better to buy a 12v/1amp smps adapter from the market, a capacitive transformerless power supply could carry lethal mains AC due to its non-isolated topology.

for reference you can see the following design:

https://www.homemade-circuits.com/2011/12/cheap-yet-useful-transformerless-power.html

Reply
Sanele Miya
May 16, 2014 • 12 years ago #22536

Hi sir can you help me how to calculate R2 in the circuit dry soil=1.7M ohms and wet soil=0.7M ohms and what should I include in my design report I was designing the soil moisture sensor.Thank you your circuit is very useful

Reply
SwagatamAdmin
May 17, 2014 • 12 years ago #22563

Hi Sanele,
you can use a 2M preset for R2, connect the probes in a wet soil and adjust this preset until the LED and the relay just switch OFF

Reply
sskopparthy
May 18, 2014 • 12 years ago #22593

Oh…! Ok….thamk you sir…could you tell me the current consumption of the circuit sir,….thank you very much…..

Reply
SwagatamAdmin
May 19, 2014 • 12 years ago #22627

it would be equal to relay current + 5mA

Reply
sskopparthy
May 19, 2014 • 12 years ago #22644

Dear sir,thank you very much, i followed your advice……and used 12v 1amp adapter(looked safer and better….:))….by the way, ive seen the circuit "earth leakage indicator circuit….thank you very very much sir…..ill make the circuit soon and give you the photos………….
thanks and regards..
ss.

Reply
SwagatamAdmin
May 20, 2014 • 12 years ago #22668

Thank you dear SS, I appreciate it.

Reply
sankar don
August 4, 2014 • 12 years ago #24794

hye,sir

im electrical engneering student.

Im interested to do this project as my final project.

please send me information, complete project detail and programming details.

sankancu1724@gmail.com

Reply
SwagatamAdmin
August 5, 2014 • 12 years ago #24811

Hi sankar, everything's explained in the article and the diagram, please click the diagram to enlarge for getting a clearer view.

Reply
iskandar baharudin
September 15, 2014 • 12 years ago #25665

can I know this circuit used microcontrolled(PIC) or not to control the time process?

Reply
SwagatamAdmin
September 16, 2014 • 12 years ago #25680

there's no time factor here, and no microcontroller used.

Reply
Sonny De Castro
October 10, 2014 • 12 years ago #26348

hello sir, may i know whats the use of resistor connected between pin 5 and 7?

Reply
SwagatamAdmin
October 11, 2014 • 12 years ago #26375

hello sonny, it's for creating some degree of hysteresis in the IC functioning…

Reply
Elluru Anand
October 20, 2014 • 12 years ago #26637

Hii
I want to know all the components which are in the circuit.
At the output I am not knowing the components which are used.
Please tell me which components are used.

Reply
SwagatamAdmin
October 21, 2014 • 12 years ago #26647

Hi Please click the diagram to enlarge, all the components are appropriately listed in the diagram itself.

The relay is a 12V SPDT

Reply
Elluru Anand
October 27, 2014 • 12 years ago #26812

Hiii
In my place the single winded auto transformer is not available. So is there any option which I can replace instead of that.

Reply
SwagatamAdmin
October 28, 2014 • 12 years ago #26821

Hi, there's no auto transformer used in the above explained circuit, so I am not sure where you intend to use it and why?

Reply
Elluru Anand
October 28, 2014 • 12 years ago #26824

Above the input
It is acting as a switch N/C
What is the device used there.
There is winding near N/C what is that winding sir.

Reply
Elluru Anand
October 28, 2014 • 12 years ago #26825

There is a winding near diode.
There is a switch.
What is that winding near the diode sir..

Reply
Elluru Anand
October 28, 2014 • 12 years ago #26826

Near the diode there is a winding.
Is it inductor and there is a switch alsoo.

Reply
SwagatamAdmin
October 28, 2014 • 12 years ago #26827

that's a relay. the inductor is the relay-coil, and the NC is one of its contacts

Reply
iskandar baharudin
January 11, 2015 • 12 years ago #28099

Motor ac or dc?

Reply
iskandar baharudin
January 11, 2015 • 12 years ago #28100

Motor ac or dc???

Reply
iskandar baharudin
January 11, 2015 • 12 years ago #28101

For C1 1u 25V ,can we change capacitor to 1u but 50V.does it effect to this circuit???

Reply
SwagatamAdmin
January 13, 2015 • 12 years ago #28130

AC

Reply
SwagatamAdmin
January 13, 2015 • 12 years ago #28131

It will do.

Reply
SwagatamAdmin
January 16, 2015 • 11 years ago #28188

The phase goes to the relay contact….neutral directly with motor

Reply
Josh Swan
January 21, 2015 • 11 years ago #28291

Hey love the circuit, my only question is are both the diodes in the schematic zener diodes, also I have a 1n4004 and 1n4001 diode will they work

Reply
Josh Swan
January 21, 2015 • 11 years ago #28292

Are both the diodes in the scematic the same? And are the zener diodes? Also I have a 1n4004 and a 1n4001 will the work?

Reply
Josh Swan
January 21, 2015 • 11 years ago #28293

The cap is not polarity sensitive correct?

Reply
SwagatamAdmin
January 22, 2015 • 11 years ago #28306

Thanks Josh, the red one is an LED, the black diode can be a 1N4007

Reply
SwagatamAdmin
January 22, 2015 • 11 years ago #28307

yes that's correct

Reply
SwagatamAdmin
January 22, 2015 • 11 years ago #28308

1n4004 will also do instead of 1N40007

Reply
Josh Swan
January 23, 2015 • 11 years ago #28330

damn, i cant find a 1uF Cap is there anything else

Reply
SwagatamAdmin
January 23, 2015 • 11 years ago #28347

it's not critical any closer value would do, it's just for providing the IC some time delay before it responds to the soil conditions..

Reply
Josh Swan
January 24, 2015 • 11 years ago #28383

hey sorry for all the questions but i could not get it working, i think my ic555 chip was defected so i build a circuit to test this other chip i had and it seems to be working!. soo im going to try once more. im confused on replacing r2 for the pot where to i place the wiper and what value of red led is that 3v?

Reply
SwagatamAdmin
January 25, 2015 • 11 years ago #28391

use a 1M pot for R2, use only its center and any of the outer leads, the third lead can be left open.

the LED can be any ordinary 5mm/20mA/2V type

Reply
faizan akram
February 7, 2015 • 11 years ago #28672

hello sir my circuit work perfectly but it soil moisture sensitivity is to high when soil moisture is less then 10% then it will be work help me i want when soil moisture is 40 % then it will work i use 6vdc relay

Reply
SwagatamAdmin
February 8, 2015 • 11 years ago #28674

hello faizan, increase the value of R2 to some higher level, keep increasing and checking the results until you have found the right value for R2.

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



My Youtube Channel

Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (88)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets and Earth (40)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (99)
  • Lamps and Lights (162)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (45)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Recent Comments

  • Swagatam on 5 Useful Power Failure Indicator Circuits Explained
  • Swagatam on Simple 20 watt Amplifier Circuits
  • David Lloyd on 5 Useful Power Failure Indicator Circuits Explained
  • Dale on Simple 20 watt Amplifier Circuits
  • Swagatam on Blood Electrification Circuit: Explanation And Working Principle

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

© 2026 · Swagatam Innovations