Week - 4
https://drive.google.com/file/d/1JEOlgSWk2BGnIDObLWiBi_lhfdpSwLw7/view?usp=sharing
https://drive.google.com/file/d/1mw1cTW6_FQtlHALqnUUC5x8HC7bCacdA/view?usp=sharing
AIM:
Make a Simulink chart for the ‘Gear shift’ logic.
OBJECTIVE:
Give speed input while the simulation is running & display the gear number.
|
Gear |
1 |
2 |
3 |
4 |
5 |
|
Speed (Km/h) |
0 to 15 |
16 to 25 |
26 to 40 |
41 to 60 |
Above 60 |
THEORY:
Gear shifter is used in vehicle so that we can get different torque from the engine.
Hence, at low gear, torque is maximum and speed is less, while at high gear torque is minimum and speed is maximum.

WORKING
Chart: With the help of this block we can apply logic for the gear shifting according to the question.


From the above image we can say that,
‘speed’ and ‘E, i.e engine crank’ is an INPUT VALUE.
‘Powerswitch’ and ‘gear’ is an OUTPUT VALUE.
Knob: This block is used to regulate the speed of the engine. Whose value is from 0 to 100.

Rocker switch: With the help of this block we can do ON and OFF of the engine.

Display: This block is used to display the output value. Here we are using this block to know whether the engine is ON or OFF. And which gear we are using at the given speed. And know the value of the speed.

Lamp: This block is used to display the light. Here we are using this block to know which gear is using with the help of light.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%II%%%%%%%%%%%%%%%%%%%%%%%%%%
AIM:
With the help of stateflow, implement control logic of a ‘Washing Machine’
OBJECTIVE:
- If power supply is available, the system get activated.
- If water supply is not available, stop the process & indicate through light.
- Soaking time should be 200 sec. followed by washing time of 100 sec.
- Then rinsing happens for next 20sec. & dryer runs for 50sec.
THEORY:

WORKING:
Chart: With the help of this block we can apply logic for the washing machine according to the question.


From the above image we can say that,
‘Powerswitch’ and ‘Water’ is an INPUT VALUE.
‘Washing_completed’, ‘D dryer’, ‘R rinsing’, ‘wa washing’, ‘s soaking’ is an OUTPUT VALUE.
Rocker switch: This block is used for ON and OFF. Here we are using this switch for power supply and water supply.

Display: This block is used for display the result.

Lamp: This block is help us to get the result in visual form i.e colour. Here we are using this block to show whether water supply is ON or not, and washing machine is completed or not


