Gear Shift Indicator
Aim:Make a Simulink chart for the “Gear shift” logic as per given conditions.
Given Conditions:
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
Simulink Model:
The main component used are :
- Chart
- Terminator
- Custom Gauge
- Slider Switch
- Slider gain
- Constant block
Chart Used:
Explanation of the model:
The model consist of set of logical conditions, therefore a better way to implement conditions is by using the chart command.In the chart we enter the inputs on the basis of the given conditions and get the required output.A set of blocks are used to implement each condition.After the chart was made, there will be two input ports for the chart block, one is the value of X that is the speed in which our vehicle is moving.The other port is logical condition of the engine switchig on or off.A constant having a name is given to the st port, which actually means if the engine is off , there is no processing but when the engine is on the control passes to the next block that is GEAR0.The custom gauge is used to indicate the speed that we input.The slider switch is used to on or off the engine.
Results:
Enhine is in OFF condition:
Engine is in ON Condition, the speed is 10 kmph,Gear number=1
Engine is in ON Condition, the speed is 25 kmph,Gear number=2
Engine is in ON Condition, the speed is 35 kmph,Gear number=3
Engine is in ON Condition, the speed is 50 kmph,Gear number=4
Engine is in ON Condition, the speed is 65 kmph,Gear number=5