๐Ÿ”’
AUTHORISED QIK ENGINEER
ACCESS ONLY

Sensitive, patent-pending engineering blueprints.
Enter the 6-digit access code to continue.

Incorrect code โ€” try again.
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.

HOW THE SMART CONTROLLER WORKS RAW WATER IN The single inlet pipe from your water supply. PRE-FILTER โ— FI-1 โ€” flow sensor Strains out sediment & silt. Cleans itself automatically (auto-backwash). ANTISCALANT DOSING โ— LS-1 โ€” level sensor Adds a protective chemical so the membrane doesn't scale up over time. HIGH-PRESSURE PUMP โ— Pump ON/OFF sensor 3-phase motor pushes water hard enough to pass through the membrane. โšก 3-phase power connects here VERTICAL RO MEMBRANE โ— Pressure sensors โ†’ membrane health The heart of the machine โ€” forces water through a membrane that blocks dissolved salts โ€” upright to save space. splits into two outlets CLEAN WATER OUT โ— TDS + pH + flow sensors The drinking water you actually want โ€” checked non-stop for TDS and pH. WASTE WATER OUT Left-over concentrated water, plus flush water from auto-backwash cleaning. THE CONTROL SYSTEM โ€” WHAT RUNS IT ALL ESP32 โ€” REAL-TIME BRAIN Reads every sensor and switches the pump & valves โ€” keeps running even if the touchscreen restarts. talks to the Pi every second RASPBERRY PI โ€” SCREEN'S BRAIN Runs the touchscreen app: live readings, TDS target, alarms, history. THE CONTROL PANEL One touchscreen for everything, plus two hardwired Start/Stop buttons. Stop always works, even if the screen fails. Full wiring, part numbers & sensor detail: tables below.

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.

INSIDE THE 1000 LPH MACHINE RAW WATER IN The only pipe coming into the machine. PRE-FILTER โ— FI-1 โ€” flow sensor Removes sediment & silt before it reaches the membrane โ€” auto-backwash. ANTISCALANT + BREAK TANK โ— LS-1 antiscalant ยท LS-2 break tank Doses a protective chemical and keeps a small reserve so the pump never runs dry. HIGH-PRESSURE PUMP โ— Pump ON/OFF sensor 3-phase motor โ€” powers the entire filtration process. โšก 3-phase power connects here 3ร— VERTICAL RO MEMBRANES โ— PT-1 + PT-2 โ†’ membrane health FRP, food-grade housings. Standing upright is what keeps the whole unit compact โ€” the signature Qik design. splits into two outlets CLEAN WATER OUT โ— TDS + pH + FI-2 flow The purified water customers use โ€” checked continuously before it leaves. WASTE WATER OUT Concentrated reject water, plus backwash flush โ€” same drain line. MOUNTED ON THE SAME SKID CONTROL PANEL One HMI touchscreen, plus two hardwired Start/Stop buttons โ€” nothing else. BASE FRAME One stable, compact foundation for everything. Housing count is illustrative โ€” 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.