Abstract: In this study, a Hardware-In-The-Loop (HIL) framework was adopted to support the development of an Electronic Control Unit (ECU) for a mini water treatment plant in Lok Dangkaan, Sabah, ...