Challenge

Week - 4

The Model of Washing machine using stateflow in simulink :-

component used in model:-

              1) Chart

              2) constant input block

              3) Display 

              4) Lamp

model Explatination:- 

            1) In these model we build a control logic for washing machine. These logic is build as per the condition given in above statement. It build using stateflow chart in simulink. In these chart control logic, the input that is power and water supply are given so for input two variable is used {0} and {1}which means when {0} the input suppy is off and for {1} input supply is on. If power and water condition is satisfied then only control goes to soak. from the logic further wash , rinse, dry these process occuring when entry and exit condition provided, so that only after finishing a particular process correspond to status output 1. The respective delay are given according to condition for each cases.

            The chart control logic are as given:-

      

2) All input and output condition are connect with the lamp whether the process is activte or finish. 

Output result:- When we provide the condition as per that condition output is obtain shown below:-

                                       Power is ON and water supply is OFF  

         As we see in above condtion, the input power supply is given but water supply is put off so the blue colour lamp is ON and the other orange colour lamp is deactivte because of no water supply input.          {BLUE==ON}  {ORANGE==OFF}

                                power suppy and water supply ON, only soaking is done

                                    Power and water supply ON,only soaking and washing is done

                As we increasing the simulation time from 200 to 300 then washing is done.

                           power and water supply ON , only soaking ,washing, rinsing is done

                        Similarly as we increase the time given in condition process is done.

                    power and water supply ON , all process complete

     Simulink chart for "Gear shift " logic are as follows:-

                 From condition given in above statement the model is build by using a stateflow are as follows  :-    

Model explanation:- 

                In these model the component are used as follows:-

                              1) chart

                              2) slider gain

                              3) constant block

                              4) Display

The logic of gear shift is build by using stateflow in simulink. In these logic the gear is shift depend upon speed which given in condition.                         

                      Speed (Kmph)                  Gear
                    0 to 15                     1
                    16 t0 25                     2
                    26 to 40                     3
                    41 to 60                     4
                    Above 61                     5

             By giving the entry and exit condition and also the speed range the chart is build. The slider gain is used to varying a speed as a input  for chart process.In the chart ,the condition are assigned s per the problem statement and run simulation with infinite time conditon.the display shows the gear number with respect to chart condition.by varying the slider gain value the display showing gear number. 

                                            

model build for gearshift are as follows:-

The lamp is connect with the gear. at a perticular shft the lamp are glow.

Output result:- The speed value is 14 Kmph is given then the gear one is activate .for gear 1 the green colour display by lamp

   At speed is given as 23 Kmpr then gear to is display. asper the given condition in problem it display.

    At speed of 38 Kmph then gear 3 is display beacuse 38 is in the condition of 26 to 40 Kmph. the orange color lamp are display.  

At speed of 71 Kmph which in the condition of above 61 Kmph then the gear 5 is display.

 

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.