Upcoming SlideShare
×

# fyp....fyp.....fyp.....

823 views
703 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
823
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
4
0
Likes
0
Embeds 0
No embeds

No notes for slide

### fyp....fyp.....fyp.....

1. 1. PROJECT DEVELOPEMENTFUZZY SYSTEM• Creating membership function using MATLAB application. • 4 input membership function. • 1 output membership function. • Defuzzification using MAMDANI style.
2. 2. Cont. ……• Create rule evaluation.• Choose more usable rule for our traffic light system. • Do try and error to find rule that give more logic condition. • Cut any rule that give same result. Testing fuzzy system using MATLAB to check condition of our system before implement in PLC.
3. 3. MEMBERSHIP FUNCTION (MATLAB)Input Membership Function
4. 4. Input MFMembership variable : very low, low, medium, high, very high.Very low [0 0 2.5]Low [0 2.5 5]Medium [2.5 5 7.5]High [5 7.5 10]Very high [7.5 10 10]
5. 5. Output Membership Function
6. 6. Output MFMembership variable : very low, low, medium, high, very high.Very low [0 0 10]Low [0 10 20]Medium [10 20 30]High [20 30 40]Very high [30 40 40]
7. 7. Evaluation of Rule
8. 8. Evaluation of RULEUse MAMDANI style. Use min-max. Difuzzification using centroid of gravity. On our project we have use 45 rules to make our system function properly.
9. 9. Creating Fuzzy using Cx-ProcessToolCreate fuzzy block diagram. Because our output for fuzzy is four, so we need to construct four fuzzy block diagram. Create user link table to read/write (communicate) between LCB (Cx- Process) and CPU PLC (Cx-Programmer).
10. 10. Cont.Need to create input MF, up to 8 input. (but in our project we just use 4 input; X1, X2, X3, X4.)Input membership variable: NL: 0:2500 NS: 0:2500:5000 ZR: 2500:5000:7500 PS: 5000:7500:10000 PL: 7500:10000
11. 11. Cont.Need to create output MF, up to 2 output; Y1 and Y2.But, in our project just use 1 output; Y1.Use horizontal singleton.Output membership variable: NL: 5000 NS: 10000 ZR: 15000 PS: 20000 PL: 25000
12. 12. Cont.RULESRules express experience and know-how in IF- THEN statements. For example, IF (youre close to the car in front of you) & (youre going very fast) THEN (you have to step on the brake very hard).Up to 64 rules.In our project using 45 rules.Up to 8 conditions can be set for inputs X1 to X8, and up to two conclusions can be set for outputs Y1 and Y2.
13. 13. Cont. Conditions The labels that will be used for inputs X1 to X8 are listed in order separated by colons. For example, if label NS is used for input X1 and labels ZR, PL, PL, NS, ZR, PL, and PL are likewise used for inputs X2, X3, X4, X5, X6, X7, and X8, then NS:ZR:PL:PL:NS:ZR:PL:PL is specified.
14. 14. Cont. Conclusions The labels that will be used for outputs Y1 and Y2 are listed in order separated by colons. For example, if ZR is used for output Y1 and PL is used for output Y2, then ZR:PL is specified A slash is placed between the conditions and conclusions. For example, the above rule would be specified as follows: NS:ZR:PL:PL:NS:ZR:PL:PL/ZR:PL
15. 15. Cont. Set a hyphen for inputs or outputs for which labels are not set. For example, to set NL for input X1, PL for input X2, and ZR for output Y1, then the rule "IF (Input X1 is NL and Input X2 is PL), THEN (Output Y1 is ZR)" would be specified as follows for ITEM 101: NL:PL:-:-:-:-:-:-/ZR:-
16. 16. Fuzzy Block Diagram
17. 17. Creating ladder diagram (cx-programmer) used to create ladder diagram for input and output of traffic light system. Use a discrete sensor (photoelectric switch) to detect presence vehicle for each junction. Use counter in ladder to count vehicle which detect by photoelectric switch. Data from counter is transform to LCB (Fuzzy system) to process by fuzzy system. Data from LCB then send to PLC to generate output for traffic light. Data from LCB is Hex, so it must create a ladder diagram to make is useful for generate timer for traffic light system.
18. 18. Testing & Result  Using MATLAB  Guide to test using Matlab:  Put number of vehicles for each junction at bottom pages and look for output at top right pages.Put number ofvehicles here
19. 19. Cont. Look for output here
20. 20. Result from Matlab
21. 21. Testing in real system (PLCwith Fuzzy system)Guide to testing;The car come from each junction with random number.The car must past the first sensor and stop before the second sensor.When traffic light going to green, car at the junction with green lamp will move until past the second sensor.
22. 22. Cont.
23. 23. Cont.
24. 24. Cont.
25. 25. Cont.