Does anyone know how to implement a fuzzy logic algorithm ? From the humidity and temperature measurement , i want the fuzzy logic to determinate the amount of water needed to irrigate
If you are already familiar with MATLAB/Simulink Fuzzy Logic Toolbox and C programming language, you can use Simulink Coder to generate C code for a Fuzzy Logic Controller block according to your application needs.
If you are working on Siemens S7 PLC, you can use Simulink PLC Coder to generate Structured Text for a Fuzzy Logic Controller block. Structured Text is text-based programming language for PLC defined by PLCOpen in IEC 61131-3.
You can use the rule base if available in literature for implementing the fuzzy control for irrigation controller. Your inputs i.e. temperature and humidity have some relation with the amount of water needed. So just find the relation and form a rule table for it. Then use the fuzzy logic designer tool in MATLAB for implementing the rule base for controlling the water amount according to the humidity and temperature conditions.
I absolutely agree with the previous two answers. In addition, I thought the following links will be helpful for you. The authors describe a couple of applications. Although none of these applications show a full overlap with your intended application, there might be some similarities:
Thank you all for your support..Infact fuzzy logic with python is more convenient for my project. But thank you anyway , your references will surely help me