QIK™ BY M/S. RIVANA INDUSTRIES — CONTROL SYSTEM REFERENCE

Smart RO Controller: System Architecture

A single-screen, two-tier electronics platform for the SM-379 vertical-membrane RO line — automatic backwash, live TDS/pH, flow, pump, antiscalant and membrane monitoring, built around Raspberry Pi + ESP32.

Raspberry Pi 4B/5 HMI ESP32 I/O controller RS-485 Modbus sensor bus FRP food-grade internals 1 raw-in · 2 out · 3-phase · 2 level pts
01

Two-tier architecture, not one

A single Raspberry Pi doing everything — HMI, sensor polling, relay switching — is the tempting design and the wrong one for an unattended appliance sitting next to a 3-phase pump. Split the job instead.

Tier 1 — Raspberry Pi 4B/5 (HMI & supervisor)

Runs the full-screen touch app only: live dashboard, TDS setpoint entry, alarms, history log, service reminders. It is the "brain for decisions," not the thing switching a contactor.

Tier 2 — ESP32 (real-time I/O controller)

Polls every sensor, drives every relay, and runs the actual backwash/pump-protection logic on its own — independently of the Pi. If the touchscreen freezes, reboots, or updates, the machine keeps running (or safely stops) on its own.

They talk over a simple UART link (JSON packets, ~1 Hz). The Pi never touches the pump directly. That single decision is what makes "unattended operation" — a claim already on your site for the SM-379 — actually true rather than aspirational, and it's the difference customers eventually notice as reliability.

02

Electronics & control schematic

Four bands, top to bottom: the wetted/process path, the field sensors reading it, the control electronics, and the electrical power section. Boxes are grouped by function, not by literal wire routing — your panel wiring diagram will fan out from here.

PROCESS / HYDRAULIC PATH FIELD SENSORS CONTROL SYSTEM ELECTRICAL POWER RAW WATER IN 1 inlet · to pre-filter PRE-FILTER Sediment / multimedia Backwash valves V1–V3 (ESP32 relay-driven) ANTISCALANT TANK + dosing pump HP PUMP 3-phase (vertical unit) RO MEMBRANE HOUSING Vertical, FRP food-grade Not backwashed — cleaned via CIP, see note below diagram PRODUCT / PERMEATE OUT outlet 1 of 2 REJECT / WASTE OUT outlet 2 of 2 · + backwash effluent field wiring bus — analog 4–20 mA · pulse · RS-485 LS2 · FEED LEVEL feed tank (assumed 2nd sensor) — dry-run guard FS1 · FLOW IN Hall-effect / paddlewheel LS1 · ANTISCALANT ultrasonic, non-contact PT1 · FEED PRESSURE membrane inlet PS1 · PUMP RUN contactor aux / CT clamp PT2 · REJECT PRESSURE → membrane ΔP / status FS2 · FLOW OUT product line AT1/AT2 · TDS + pH RS-485 online transmitters ESP32 I/O CONTROLLER in: RS-485 bus, 2× flow pulse, 2× 4-20mA pressure, 2× level out: contactor coil, valves V1–V3, buzzer/alarm relay real-time control loop, offline-safe UART · JSON · ~1 Hz RASPBERRY PI 4B/5 HMI supervisor dashboard · setpoints · alarms local log (SQLite) + optional Wi-Fi/4G remote monitoring TOUCHSCREEN PANEL 7"–10.1" capacitive all-in-one, panel-mount the one screen — no other buttons live here START / STOP (hardwired) only physical buttons on panel hardwired STOP — independent of firmware relay out 3-PHASE 415V AC IN single supply connection ISOLATOR + MCB panel main switch CONTACTOR + OVERLOAD + phase-failure relay → HP pump motor (band A) 24V / 5V DC SMPS control power for ESP32, relays, sensors, Pi process flow sensor / field wiring control / data link hardwired safety loop Box outline colour: teal = process equipment · amber = instrumentation · blue = electronics · red = mains power

Note on "backwash": spiral-wound RO membranes themselves generally aren't backwash-tolerant — the automatic backwash cycle applies to the sediment/multimedia pre-filter stage ahead of the membrane, with effluent routed to the same waste line. If your SM-379 uses a backwashable UF or capillary stage instead, the same V1–V3 solenoid + timer/ΔP logic applies unchanged — worth confirming with your mechanical drawing so the trigger (timer vs pressure-drop) is set correctly.

03

Sensor & actuator map

One row per feature you listed. "Interface" is what actually lands on the ESP32 — RS-485 for the two parameters customers read most closely (TDS, pH), simple pulse/analog for the rest.

FeatureSensor / transmitterInterfaceMounts at
Live TDS + setpointOnline EC/TDS transmitterRS-485 Modbus RTUPermeate (product) line
Automatic pH outputOnline pH transmitterRS-485 or 4-20mAPermeate (product) line
LPH inHall-effect paddlewheel flow sensorPulse (interrupt)Raw water inlet
LPH outHall-effect paddlewheel flow sensorPulse (interrupt)Permeate outlet
Pump statusContactor aux contact (+ optional CT clamp)Opto-isolated digital inPump contactor
Antiscalant levelWaterproof ultrasonic (non-contact)Analog / trigger-echoDosing tank lid
Membrane status2× pressure transducer (feed + reject), ΔP computed4-20mA or RS-485Membrane housing inlet/outlet
Automatic backwash3× solenoid valve (V1–V3) + timer or pre-filter ΔP switchRelay out (ESP32)Pre-filter manifold
Feed-tank level (2nd sensor, assumed)Float switch or ultrasonicDigital / analogRaw feed tank

Reject/waste flow isn't in your list of two flow points — it's cheap to derive as (LPH in − LPH out) for display, or add a third paddlewheel sensor on the waste line if you want a true, independently-measured recovery % on the HMI. Recovery % is a strong "premium" number to show a customer that a base fabricated unit can't.

04

Control logic

This is the loop that runs on the ESP32 — the Pi only observes and displays it. Pump start is gated on level interlocks; backwash interrupts filtration on its own schedule; any fault de-energizes the pump and returns to idle.

flowchart TD
    A[Power ON] --> B[ESP32 self-test: sensors, relays, comms]
    B --> C{Fault found?}
    C -- Yes --> D[HMI shows fault code · pump locked out]
    C -- No --> E[Idle — waiting for START]
    E --> F{START pressed?}
    F -- No --> E
    F -- Yes --> G{Antiscalant OK AND feed-tank level OK?}
    G -- No --> H[HMI alert: low level · pump does not start]
    H --> E
    G -- Yes --> I[Energize pump contactor]
    I --> J{Run-feedback received within 3s?}
    J -- No --> K[Trip: pump fault · de-energize · alarm]
    K --> E
    J -- Yes --> L[Filtering — stream TDS, pH, flow, pressure to HMI]
    L --> M{Backwash due? timer or pre-filter ΔP}
    M -- Yes --> N[Pause filtration · run backwash sequence]
    N --> L
    M -- No --> O{Alarm? high TDS / high membrane ΔP / low antiscalant / STOP}
    O -- No --> L
    O -- Yes --> P[De-energize pump · close valves · log event]
    P --> E
  
05

Automatic backwash sequence

Two valid triggers — pick one, or offer both as a setting:

Timer-based

Simplest, cheapest — no extra sensor. ESP32 counts pump run-hours and fires backwash every N hours, configurable from the HMI. Predictable, but wastes water/time if the feed is unusually clean, or under-cleans if it's unusually dirty.

ΔP-triggered

A third pressure point (or a simple differential-pressure switch) across the pre-filter fires backwash only when it's actually fouled. Slightly more hardware, meaningfully smarter — and it's a genuine "intelligent automation" talking point, not just a marketing phrase.

  1. Pause normal filtration — de-energize (or bypass) the feed path to the membrane.
  2. Open drain-path solenoid(s), reverse flow direction through the pre-filter media.
  3. Run for a fixed duration (typically 1–3 min, tune on commissioning).
  4. Close backwash valves, re-open normal flow path.
  5. Resume filtration; log the event with timestamp and trigger reason for the service history screen.
06

Bill of materials — two tiers

Figures are indicative single-unit market prices in India (Sept 2026) gathered for planning, not a quote — get formal pricing from your electrical BOM supplier at your volumes before costing the product. Essential = lowest defensible cost for the full feature set. Pro = what actually justifies a premium price tag next to a "just automatic start/stop" competitor.

ItemEssential (₹)Pro (₹)Why upgrade
Compute + HMIPi 4B 4GB — ~5,500Pi 5 4GB — ~6,700Headroom for cloud dashboard / richer UI
Touchscreen7" HDMI capacitive — ~5,500–7,0008"–10.1" all-in-one industrial panel (alloy case, Pi included) — ~20,000–30,000Bolts straight into a panel door; IP-rated front
I/O controllerESP32-WROOM-32 DevKit — ~500Same module on custom PCB at volume — ~150–250/unitVolume manufacturing, not hobby boards
RS-485 transceiverMAX485 module — ~60Built into Pro transmitters below
TDS / ECAnalog module + ADS1115 ADC — ~700RS-485 Modbus online transmitter — ~4,000–7,000EMI-immune near a 3-phase pump, auto temp-comp
pHAnalog board + glass probe — ~1,500RS-485/4-20mA industrial transmitter — ~6,000–12,000Far longer calibration interval, less drift
Flow ×2 (in/out)Hall-effect paddlewheel — ~400 eachIndustrial RS-485/4-20mA paddlewheel — ~3,500–8,000 eachAdd a 3rd on waste line for true recovery %
Pressure ×2 (membrane ΔP)0–16 bar 4-20mA transducer — ~1,500 eachRS-485 variant — ~3,000 eachSame wiring bus as TDS/pH
Antiscalant levelUltrasonic JSN-SR04T — ~3504-20mA ultrasonic transmitter — ~3,500Panel-mount, longer service life
Feed-tank levelFloat switch — ~250Ultrasonic (shared spec as above) — ~3,500
Pump run feedbackAux contact + opto-isolator — ~150+ CT clamp (dry-run/overload data) — ~900Real current sensing, not just "we sent a command"
Relay outputs4-ch opto relay module — ~300DIN-rail interposing relays — ~200/chPanel-standard, easier field service
Solenoid valves ×3 (backwash)12/24V DC generic — ~800 eachBranded, food-grade — ~2,000 eachDuty-cycle life, warranty story
Contactor + overload + phase-failure relay~2,000 (per pump HP)Branded (Siemens/Schneider/L&T) — ~4,500Recognisable brand on the BOM sheet you show customers
Control SMPS 24V/5V~700Branded DIN-rail — ~2,000MTBF, panel-inspector friendly
Enclosure, DIN rail, glands, wiring~2,000~4,000Finish quality matches your "unibody" positioning

Rough incremental electronics BOM: Essential ≈ ₹20,000–24,000 per unit · Pro ≈ ₹58,000–78,000 per unit, before your usual margin — heavily dependent on pump HP (drives contactor size) and whether you pick the all-in-one industrial touch panel.

07

Safety & panel-build notes

08

HMI screen set

One kiosk app, full-screen, no OS chrome exposed. Suggested screens:

09

Where the margin actually comes from

Don't cost-cut the two parameters a customer reads with their own eyes — TDS and pH. Putting both on real RS-485 transmitters instead of hobby analog boards is a small BOM delta (a few thousand rupees) against a control system that already runs into tens of thousands; it's the cheapest credibility you'll buy. Flow and level, by contrast, are where the Essential tier is genuinely fine — the customer sees a number on screen either way and won't know or care which sensor produced it.

The bigger lever isn't the BOM at all — it's reuse. Build one ESP32 firmware image and one Pi HMI app, and ship it across the whole 1000/2000/3000/4000+ LPH range with only calibration constants (flow K-factor, pressure range, pump HP) changing per model. That's one engineering effort amortised over your entire product line, which is what actually moves margin at scale — not which brand of pressure transducer you pick.

And the electronics you're building here is also a second revenue line on its own: remote monitoring / AMC-as-a-subscription, sold against the same Wi-Fi/4G hook already sitting on the Pi. That's recurring revenue on top of the one-time unit sale, and it's a natural extension of "Automatic Fault Diagnostics" and "Nationwide Service Support," which are already on your site.

10

Open items to confirm against your mechanical design

Second level sensor. Refined in the mechanical schematic (§11): LS-1 is the antiscalant dosing tank; LS-2 is now shown as an internal break/surge tank between the pre-filter and the HP pump — standard practice in a compact unibody skid, and it keeps both level points inside your stated 3-pipe boundary rather than assuming an external customer tank. If your actual design differs, the ESP32 has spare analog/digital inputs to accommodate it either way.
Backwash target. The diagram assumes backwash acts on a sediment/multimedia pre-filter stage, since spiral-wound RO membranes typically aren't backwash-tolerant. Confirm against your actual pre-treatment train so the valve manifold and trigger logic are wired to the right stage.
Pump HP range across your 1000–4000+ LPH lineup. This decides contactor/overload sizing and whether a single control-panel design covers the whole range or needs two panel sizes.
Remote monitoring — v1 or v2? The Wi-Fi/4G hook is cheap to include in the BOM now even if you don't launch the subscription feature immediately; retrofitting it into fielded units later is far more expensive.
11

Mechanical schematic — 1000 LPH vertical-membrane skid

The process/piping layout of the SM-379 itself, separate from the electronics diagram above: what's physically on the skid, how it's plumbed, and where each of the seven monitored points sits.

On the qikhq.com photo

I pulled your site again and tried fetching the actual product photos (the SM-379 hero shot and the tall vertical unit shot) directly — my fetch tool can retrieve the page text but can't process image files, so I couldn't visually trace your real housing count or panel layout from it. What's below is built from what the page states outright (vertical membrane, unibody, compact, stable foundation, single raw-water inlet) plus standard practice for a packaged vertical-membrane RO skid at 1000 LPH. If you drop the actual photo or GA drawing into the chat as a file, I can re-align the housing count, spacing and panel position to match it exactly.

QIK SM-379 — 1000 LPH UNIBODY SKID · compact vertical-membrane design RAW WATER IN 1 of 3 pipes FI-1 PRE-FILTER Sediment/multimedia Backwash V1–V3 → waste line ANTISCALANT TANK + dosing pump LS-1 BREAK TANK (internal surge) dry-run guard LS-2 HP PUMP 3-phase · vertical unit contactor: see §02 3-PHASE POWER IN 1 of 1 connection PT-1 feed → PT-1 3× VERTICAL RO MEMBRANE HOUSINGS — FRP, food-grade (count illustrative) H1 membrane vessel H2 membrane vessel H3 membrane vessel FI-2 TDS pH PRODUCT / PERMEATE OUT 1 of 3 pipes PT-2 REJECT / WASTE OUT 2 of 3 pipes · + backwash drain CONTROL PANEL mounted on skid frame HMI TOUCHSCREEN START STOP full wiring: see §02 BASE FRAME / STABLE FOUNDATION process equipment field instrument control panel mains power Housing count and exact port arrangement are illustrative for 1000 LPH duty — confirm against your GA drawing.

Instrument tags follow the same names used in §03's sensor map (FI = flow, PT = pressure, LS = level) so the two diagrams read as one system: this one shows where each device physically sits on the skid, §02 shows how it's wired.