Tank & Water Level Automation ออกแบบอย่างไร? เติมน้ำ คุมปั๊ม และกันถังต่ำแบบไม่พึ่ง Sensor ตัวเดียว.
ออกแบบระบบถังน้ำ Smart Farm ตั้งแต่ High/Low/Continuous Level, refill logic, pump permission, stale sensor, overflow, dry-run boundary, manual mode และ alarm

การรู้ระดับน้ำกับการ ควบคุมถังน้ำ เป็นคนละปัญหา บท Water Level Sensor เลือกอย่างไร อธิบาย Float, Pressure, Ultrasonic และ Vision แล้ว หน้านี้เน้น architecture สำหรับ refill/use automation
เริ่มจาก State ที่ต้องรู้
บางระบบไม่จำเป็นต้องรู้ 62.4% ตลอดเวลา แค่รู้:
- LOW
- NORMAL
- HIGH
- OVERFLOW/FAULT
ก็เพียงพอและ robust กว่า
ระบบอื่นต้องการ continuous level เพื่อวางแผนปริมาณน้ำหรือ trend
แยก Measurement กับ Protection
Continuous sensor ใช้ monitoring/control ได้ แต่ระบบสำคัญอาจยังมี independent high/low switch หรือ equipment-native protection ตามการออกแบบจริง
Continuous Level → Monitoring / Control policy
Independent limit → Protection / interlock when required
อย่าให้ Dashboard sensor ตัวเดียวรับทุกบทบาท
Refill Logic ควรมี Hysteresis
ตัวอย่างเชิงแนวคิด:
Start refill below LOW target
Stop refill above HIGH target
ช่วยลดการ start/stop ถี่เกินไป แต่ threshold ต้องสัมพันธ์กับ tank volume, pump rate และ process demand
Pump Permission
ก่อนสั่ง pump ออกจาก tank ควรมี permission chain เช่น:
- tank state usable
- pump ready
- target path/valve ready
- no lockout
- max runtime available
ค่า level stale ต้องไม่ถูกตีความว่า “ยังมีน้ำเท่าเดิม” อัตโนมัติ
Overflow ต้องตรวจแบบ explicit
สาเหตุ overflow อาจเป็น:
- inlet valve stuck
- refill pump ไม่หยุด
- level sensor ค้าง
- command path ขัดข้อง
ถ้า overflow consequence สูง ควรมี independent stop/protection ตามระบบจริง ไม่พึ่ง Cloud rule อย่างเดียว
Rate-of-change ช่วย detect ความผิดปกติ
Continuous level ทำให้ดู trend ได้:
expected drop while irrigation
expected rise while refill
unexpected drop while idle → possible leak
no rise during refill → source/pump/measurement issue
ต้องระวัง tank geometry เพราะความสูงไม่เท่ากับ volume แบบ linear เสมอไป
Dual-sensor sanity check
ตัวอย่าง:
- ultrasonic บอก 80%
- high float ยัง OFF
อาจยังสมเหตุผล
แต่ถ้า ultrasonic บอก 100% นานมากและ high float ไม่เคย ON ควร flag disagreement แทนการเชื่อค่าใดค่าหนึ่งทันที
Manual Mode
operator ควรสามารถ:
- disable auto refill
- start/stop refill ตาม authority
- lockout pump ระหว่าง maintenance
- เห็น state ของ sensor และเหตุผลที่ automation ถูก inhibit
Manual ไม่ควร bypass independent protection ที่จำเป็น
Alarm ที่มีประโยชน์
- level low นานผิดปกติ
- refill runtime เกินคาด
- level ไม่เพิ่มหลัง refill start
- level ลดตอน system idle
- sensor disagreement
- stale level data
- overflow/high-high state
เชื่อมกับ Irrigation
Tank ไม่ควรเป็น Dashboard แยกที่ไม่มีผลต่อระบบอื่น
Tank availability
↓
Irrigation permission
↓
Pump + Zone valve
↓
Flow feedback
ดู Smart Irrigation และ Pump & Valve Automation
Failure behavior
ถ้า network/cloud ล่ม local low-level protection และ bounded control ที่จำเป็นควรยังทำงานตาม architecture ที่กำหนดไว้ ดู Offline, Manual & Fail-safe
ระบบ Tank Automation ที่ดีจึงไม่ใช่แค่กราฟระดับน้ำ แต่ต้องรู้ว่า เมื่อไรเติมได้ เมื่อไรใช้น้ำได้ เมื่อไรต้องหยุด และเมื่อ Sensor ขัดแย้งกันจะเชื่ออะไร

