Week -2
1. In this model we used "SOLENOID","SWITCH","BATTERY","TRANSLATIONAL SENSOR"
Here i connected the solenoid to the translational sensor in order to observe the movement of the system, and i connected a pulse generator with parameters required to hold the switch for 2sec. The main thing to note is we should connect the reference block according to the simulink block we used and also solver block in when we coupled simulink and simscape blocks.
The output i got :

2. In this model i used a "THERMISTOR","CONTROLLED TEMP.SOURCE","VOLTAGE SENSOR","RESISTOR","SWITCH","DC MOTOR","CONTROLLED CURRENT SOURCE","IDEAL ROTATIONAL SENSOR","REPEAT SIGNAL STAIR" and some reference blocks related to the system.
Here i connected the temp.source to thermistor as an input and to measure the temp. variations i connected series resistance in order to measure voltage drop which is fed as an input to the dc motor through switch. If the voltage drop is beyond threshold then switch closes and fan is turned on, the input was assigned in such a way that from 0-10sec the fan is in off condition(20 celsius) and from 10-30sec the fan is in on condition(25 celsius) and again off condition(23 celsius).
The output at thermistor side:

and The angular displacement at dc motor side:
