Water level control by fuzzy logic control system

Water level control by fuzzy logic control system

Mr.Nawapol Phayakkaphon and Mr.Thanisorn Kengthammakit, students from King Mongkut's University of Technology North Bangkok, were interested in using IoT with MATLAB/Simulink and Waijung 2 for ESP32 in testing the liquid level control inside the water tank using fuzzy logic control. Because in the food industry and beverage production, there is a change in liquids such as beverages, seasonings in food ingredients, or various chemicals In which the liquid change requires controlling the volume ratio of the liquid to meet the formula or standards.

Use MATLAB/Simulink with Waijung 2 for ESP32 makes it possible to control the water level inside the water tank without writing much code. Set the desired water level (Set Point) and show feedback, including errors through MATLAB and can deploy the designed Simulink model to ESP32 Microcontroller in order to build the real device to work as needed.

นายนวพล พยัคฆพล และนายธนิสร เก่งธรรมกิจ นักศึกษาจากมหาวิทยาลัยเทคโนโลยีพระจอมเกล้าพระนครเหนือ ได้สนใจการใช้ IoT ร่วมกับ MATLAB/Simulink และ Waijung 2 for ESP32 ในการทดสอบควบคุมระดับน้ำภายในแท็งก์น้ำ โดยใช้การควบคุมแบบฟัซซี่ลอจิก เนื่องจากในอุตสาหกรรมและการผลิตอาหารเครื่องดื่มมีการเปลี่ยนถ่ายของเหลว เช่น เครื่องดื่ม เครื่องปรุงในส่วนผสมของอาหาร หรือสารเคมีต่างๆ ซึ่งการเปลี่ยนถ่ายของเหลวนั้นต้องมีการควบคุมสัดส่วนปริมาตรของของเหลวเพื่อให้ได้ตามสูตรหรือตามมาตรฐาน


ซึ่งจากการใช้ MATLAB/Simulink ร่วมกับ Waijung 2 for ESP32 ทำให้สามารถควบคุมระดับน้ำภายในแท็งก์น้ำ ตั้งค่าระดับน้ำที่ต้องการ (Set Point) และแสดง Feedback การทำงาน รวมถึง Error ผ่าน MATLAB ได้ และสามารถ Deploy Simulink ที่ออกแบบไว้ลง Microcontroller เพื่อสั่งให้อุปกรณ์จริงทำงานได้ตามต้องการ