Challenge

Week - 4

1] Aim: To implement the control logic of a “washing machine” using Stateflow as per the given sequence.

Blocks used: Chart, Constant, Display and Lamp.

Explaination: State flow is set up using "chart" block from simulink library. The flow is set up such that if power or water is unavailabe then the process is paused and red LED turns on. If both are present then the flow moves to next block which is soak for time delay of 200 seconds followed by washing for 100 seconds after which rinsing takes place for 20 seconds and finally drying for 50 seconds. Each block contains their own LED that turns green for when the process is complete and the pause block turns red if there is an interuption else it turns green. Toggle switches are used to simulate the various conditions such as water supply and power supply on or off. The simulink file "week_4_washing_machine.slx" contains the file for simulation of washing machine.

Result: Control logic of Washing machine using state flow is verified.

2]Aim: To implement a "gear shift logic" in simulink.

Blocks used: Chart, Constant (with valus as a variable), Display, Lamp, Slider.

Explaniation: The slider is used to vary the speed and it is displayed on a display called speed. This is also given to a chart block that uses flows to indicate each gear. like for 1st gear if the speed is from 0 to 15 then gear 1 is engaged, if the speed is 16 to 25 then gear 2 is engaged, if the speed is 26 to 40 then gear 3 is engaged, if the speed is 41 to 60 then gear 4 is engaged and if the speed is 61+ then gear 5 is engaged. The file is present im "week_4_Gear_ratio.slx".

Result: Gear shift logic using state flow in simulink is verified.

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.