Call Phone +8618073152920 Hotline: +8618073152920
Call Phone +8618073152920
English
CONTACT US/ CONTACT US
Consumer hotline +8618073152920
Changsha Zoko Link Technology Co., Ltd.

Email:Arvin@niubol.com

WhatsApp:+8615367865107

Address:Room 102, District D, Houhu Industrial Park, Yuelu District, Changsha City, Hunan Province, China

Position:Home >> Blogs >> Product knowledge

Product knowledge

Smart Irrigation Using Arduino: Prevent Valve Chatter from Soil Readings

Time:2026-08-23 09:03:00 Popularity:246

Smart irrigation using Arduino should not switch a valve whenever one soil reading crosses one number. Near a threshold, small fluctuations can repeatedly start and stop watering. Use separate start and stop conditions, valid-reading checks and a defined irrigation cycle so the controller responds to root-zone behavior rather than every new sample.

NBL-S-WPS soil water potential sensor using kPa rather than moisture percentage

First distinguish a noisy point from an unsuitable control rule

Plot the unfiltered soil measurement beside valve commands and, where available, actual flow. If the valve alternates while moisture stays close to one boundary, inspect the decision logic. If readings jump when the valve coil operates, also investigate power disturbance, wiring and probe communication. Adding a wider control band will not repair an electrical fault.

Probe placement remains important. Maintain firm soil contact at a documented active-root depth, protect the cable exit and avoid a locally saturated pocket that does not represent the managed bed. A probe immediately beside a dripper may become wet quickly while much of the root zone has not yet responded.

The NBL-S-WPS pictured above measures water potential in kPa. Its -1500 to -10 kPa range is not a moisture-percentage scale. A less negative reading indicates wetter conditions within that range; percentage-based logic cannot be copied into a water-potential channel without changing its interpretation.

Use hysteresis, then define the rest of the cycle

Hysteresis uses different boundaries for starting and stopping. As a software illustration only, a moisture controller might qualify a start below 24% and stop at 28%. Between those values it retains the appropriate existing state. These numbers are not crop recommendations, and a four-percentage-point gap is not a demonstrated error margin for every probe or soil.

Choose the actual limits from observed wetting and drying, soil properties, crop needs and the selected sensor's performance. Record whether a boundary requires several valid observations or a continuous qualifying period. Specify how an invalid observation interrupts qualification rather than silently counting it as dry soil.

Control statePermitted behaviorExit condition to define
ReadyRead the point without starting a new event prematurely.Valid dry condition persists for the chosen qualification period and watering is permitted.
WateringCommand the approved output and monitor the event.Defined moisture, volume or duration limit, or a higher-priority protective condition.
Soak or reassessmentAllow water redistribution before authorizing another event.The selected interval has elapsed and valid root-zone data is available.
Fault or inhibitedApply the project's defined output state and identify the reason.Approved recovery conditions are met; a fresh reading alone need not authorize an automatic restart.

A minimum off-time can prevent immediate restarting, while a maximum event duration can limit unintended continuous watering. They solve different problems. A minimum run-time must not override a dry-run, leak or other required protective stop. Establish the priority of these conditions before implementing the controller.

A portable USB soil tester is useful for investigating variation across beds. It is not automatically a fixed Modbus control probe; verify the actual interface rather than treating its phone connection as a permanent controller input.

Portable USB soil tester for investigating differences between irrigation beds

Do not make filtering a substitute for event timing

A moving average can suppress short fluctuations, but also delays the apparent response after watering. If the averaging window is long, the controller may continue watering after the local soil has already changed. Test the filter and the irrigation cycle together using timestamped raw and processed values.

Differentiate the sensor update, polling interval, decision interval and watering duration. Polling faster does not necessarily produce an independent new soil observation. Conversely, a long blocking operation in the controller must not prevent the event timer or fault checks from running. The firmware design needs a verified timing path, not only a threshold comparison.

Multi-depth observations can help determine whether water reaches the intended roots, but a demonstration system still needs a defined decision rule. Do not let whichever depth reports last control the valve by accident. Assign each channel a role, such as initiating a review, confirming wetting or imposing an upper constraint.

The portable eight-parameter soil tester can support a field survey. Use consistent locations, depths and contact when comparing its spot observations with a fixed monitoring point.

Portable eight-parameter soil tester for consistent field spot observations

A fixed soil probe for smart irrigation using Arduino

The NiuBoL NBL-S-TM provides soil temperature and volumetric moisture through RS485 Modbus RTU. It requires a compatible external RS485 interface and a suitable power supply; do not connect RS485 bus wires directly to a board's logic-level serial pins.

ItemNBL-S-TM valueControl implication
Moisture channelFDR; 0-100% volumetric moisture; 0.1% resolution; stated accuracy +/-5%Confirm accuracy conditions and evaluate field variation before selecting a narrow control band.
Temperature channel-40 to 80 C; +/-0.5 CKeep temperature and moisture units separate in the firmware.
Supply5-24 V DC; some configurations 12-24 V DCConfirm the delivered version; do not infer its supply from the controller board.
InterfaceRS485 Modbus RTUVerify address, serial format, register scaling and failed-read handling.
InstallationIP68 probe; 5 m standard cable, customizable; epoxy-sealed bodyProtect external joints and provide mechanically secure cable routing.

Before connecting the real valve, test the state changes with an unloaded or otherwise safely isolated output arrangement. Exercise threshold oscillation, one missing response, persistent communication loss, restart during watering and the maximum duration. Test the field output and water delivery separately under supervision; a successful relay command does not prove that water arrived.

NBL-S-TM fixed FDR moisture and temperature probe for defined irrigation logic

Project Decision FAQ

Q1. Should the controller use one threshold or two?

Separate start and stop conditions are useful where readings fluctuate near a boundary. They still need qualification, event limits and a defined recovery rule. Two arbitrary percentages alone do not make irrigation reliable.

Q2. Can a missing Modbus reply count as zero moisture?

No. Zero is a possible numeric value, whereas a failed reply is an unavailable observation. Preserve validity and age separately from moisture, and apply the specified fault behavior rather than initiating watering from a substituted zero.

Q3. How wide should the hysteresis band be?

Use observed fluctuations, sensor performance and agronomic limits to establish it. A wider band can reduce switching but may allow a larger moisture excursion. Verify the resulting wetting and drying cycle at the installed depth.

Q4. Does IP68 make the whole controller suitable for burial?

No. The rating applies to the probe. The board, RS485 interface, valve driver, power supply and external connections require their own installation and protection assessment.

Q5. When should an integrator use a complete irrigation controller?

Consider one when the project needs maintained field outputs, pump coordination, documented fault handling and service support beyond the prototype team's scope. Evaluate those functions directly rather than assuming that a working soil-reading demonstration already provides them.

The NBL-S-THR TDR probe is another fixed moisture and temperature option, with RS485 and selected analog versions. Match its actual output and measurement interpretation before substituting it in an existing control channel.

NBL-S-THR TDR soil moisture and temperature probe with selectable output versions

Summary

Smart irrigation using Arduino needs a controlled watering cycle, not a relay that follows every soil sample. Combine representative installation with hysteresis, valid-data checks, reassessment and tested event limits. For NiuBoL probe selection, provide the soil quantity, depths, supply and interface together with the intended control sequence.

Related recommendations

Sensors & Weather Stations Catalog

Agriculture Sensors and Weather Stations Catalog-NiuBoL.pdf

Weather Stations Catalog-NiuBoL.pdf

Agriculture Sensors Catalog-NiuBoL.pdf

Water Quality Sensor Catalog-NiuBoL.pdf

Related products

Tell us your requirements, Let's discuss more about your project.we can do more.

Name*

Tel*

Email*

Company*

Country*

Message


online
Contacts
Email
Top
XSmart Irrigation Using Arduino: Prevent Valve Chatter from Soil Readings-Product knowledge-Automatic Weather Stations_Industrial, Agricultural, Water & Environmental IoT Monitoring Solutions—NiuBoL

Screenshot, WhatsApp to identify the QR code

WhatsApp number:+8615367865107

(Click on WhatsApp to copy and add friends)

Open WhatsApp

The WhatsApp ID has been copied, please open WhatsApp to add consultation details!
WhatsApp