Soil Moisture Sensor Nodes β Click to Toggle State
Vote Result
0
/
4
dry votes
Awaiting readings...
threshold
β₯2
votes to trigger
β₯2
votes to trigger
Actuator Status
Solenoid Valve (N.C.)
12V / latching relay
CLOSED
Sprinkler Head
pressure-driven scatter
STANDBY
Control Flow
β Soil Resistance Sensing
Porous ceramic probes measure soil conductivity
β‘ Analog Comparator Decision
LM393 threshold compare β dry/wet digital signal
β’ Mechanical Vote Adder
Relay series/parallel β majority-vote logic
β£ Valve Trigger
Latching relay opens valve β water pressure drives sprinkler
β€ Auto Shutoff on Recovery
Majority nodes wet β vote flips β valve closes
Vote Threshold
Dry nodes required to trigger
2 / 4
Current: spray activates when β₯2 nodes dry
Truth Table (4 nodes)
| S1 | S2 | S3 | S4 | Dry | Spray |
|---|
Sensor Circuit Schematic
// Single-node moisture detection
VCC(3.3V)
β
[10kΞ©] β pull-up resistor
β
ββββ LM393(+) comparator +in
β
[soil probes] β porous ceramic electrodes
β dry β 300kΞ©
GND wet β 5kΞ©
// Threshold setting (βin)
VCCβ[R1]β[R2]βGND
ββ LM393(-)
// Adjust R1/R2 ratio to
// set the moisture trigger point
output: HIGH=dry / LOW=wet
Vote Logic Implementation
// Relay majority vote (threshold=2)
// Option A: relay series counter
S1β[RLY1]ββ
S2β[RLY2]ββΌββ current adder
S3β[RLY3]ββ€ β
S4β[RLY4]ββ [threshold relay]
β
valve trigger signal
// Option B: pure mechanical lever sum
4 float weights stack up
β exceed spring preload force
β trigger valve open