Week -2
Q.1
Objective: To make a Simulink model of a doorbell using solenoid block.
The pulse generator is used to create square wave pulses at regular interval.
The switch block is controlled by external physical signal.
The solenoidal block is connected with switch and battery and we will get a complete electrical circuit..
The ideal translational sensor is connected with solenoid block to observe the movement of the plunger.


for K=20

for k=200

Result:
Time period given is 2 seconds to the pulse generator to open and close the switch. When the switch is closed the solenoid blocks receives electrical power from the battery and the plunger move from port R to C to hit the bell and produce sound.
Q.2.
Objective: to use a thermistor to sense the temperature using solenoid block.
Temperature source : 292K from 0 to 10 seconds, 300K from 10 to 30 seconds, 296 from 30 to 50 seconds.


Speed:


Result:
for 0 to 10s fan is off condition because temperature is 294K which is below the threshold 298K. after 10s temperature goes to 300k then the switch will be on condition as the temperature exceeds 298K. after 30s fan will turn off as the temperature comes down to 296 K.