Week -2
1. When the switch is closed in the model the electromagnet recieves electrical power from battery and pulls the metal arm to hit the bell producing an output.
Blocks used in this model are:
*Solenoid block which is connected to the switch and battery and grounded to an electrical reference. Port C is given to mechanical reference and R given to a translational motion sensor.
*Switch is connected to the battery in series and PS is connected inorder to recieve the pulses for operation. This external physical signal is produced by a pulse generator. The condition of on and off of switch depends on this external physical signal.
*Pulse generator thus gives the required square pulses. The parameters of pulse generator are choosen as; amplitude=1, period=4s, pulse width=50 and phase delay=2s.
*Battery source
*Ideal translational motion sensor is used to track the movement of plunger
*Solver configuration block
*Scope
*Simulink to PS converter and PS to simulink converter blocks to do conversions between physical signals and simulink signals. Physical movement of plunger is noted .
2. Thermistor model:
Given 0 to 10s=20 degC==293K
10 to 30s=27degC==300K
30 to 50s=23degC==296K
Here a thermistor is used to measure the temperature of heater to meet the conditions stated in the question. Resitance of thermistor varies according to temperature. As temperature varies across thermistor there will be a voltage drop.
A controlled temperature source is used to maitain a controlled temperature difference for thermistor, where its ports A, S, B are connected to thermal reference, a repeating sequence stair (pulse) and thermistor respectively.
Switch is connected according to the given fan condition such that if temperature is above 25degC then ON condition which is given as input 1 and it is compared with the current temperature value from the voltage sensor where it is converted to physical signal. But if the threshold value (switch)is greater than the temperature value sensed then output will be 0 or off condition. A lamp is connected which indicates green color when temperature is higher than 25degC and indicates red otherwise.
A linear resistor is used to control the amount of current flow from battery and a voltage sensor is connected to measure the voltage drop due to change in temperature. Resistance value is taken as same as that of resistance value of thermistor.
Battery Voltage source is provided.
Solver configurations are provided.
PS to simulink converter and Simulink to PS converter.
Display and scope.
Inside the repeatative sequence stair the sample time is given as 10s and whole simulation time is 50s.
google drive link
https://drive.google.com/file/d/1gTZovPcq5MiYSdInf1zlg54YmjAwk3YR/view?usp=sharing
https://drive.google.com/file/d/1gTZovPcq5MiYSdInf1zlg54YmjAwk3YR/view?usp=sharing