Week -2
Aim: To make simulink model of doorbell using solenoid
Simulink Model:

Smulink Model explanation :
The pulse generator is used to create square waves at regular interval depending upon the amplitude , pulse width and period.

- The switch block used is controlled by external physical signal.If the external signal is greater than the thresold parameter then the switch is closed otherwise switch is open.
- The positive terminal of battery is connected to negetive of the soleniod and the positive of soleniod is connected to refrence and through switch the cicuit is complete.
- Solver configuration is attached to electrical circuit.
- Simulink- ps converter is used for ocnverting simulink signal to physical one.
- Ideal translational motion sensor is attached to mechanical part of soleniod .
- PS-Simulink converter has been used to get the output from Ideal translational motion sensor.


The ideal translational sensor is connected with solenoid block R to observe the movement of the plunger.
Thermistor challege
Given Inputs:
Temperature source: 20 °C from 0 to 10 seconds, 27 °C from 10 to 30 seconds, 23 °C from 30 to 50 seconds
Fan conditions: ON if the temperature above 25 °C, OFF otherwise
Simulink Model:

Simulink Model Explanation:
Signal Builder block is uded to input the values as per given conditions:
At point 1,Time=0 seconds,Temperature=293 K At point 2,Time=10 seconds,Temperature=293 K At point 3,Time=10 seconds,Temperature=300 K At point 4,Time=30 seconds,Temperature=300 K At point 5,Time=30 seconds,Temperature=296 K At point 6,Time=50 seconds,Temperature=296 K
Controlled Temperature source represents an ideal source of thermal energy,that can maintain a controlled temperature difference regardless of the heat flow rate. The temperature difference is set by the physical signal port S. A positive temperature difference causes the temperature at port B to be greater than the temperature at port A.
Thermistor is a type resistor whose resistance is based upon temperature.
A linear resistor is used is used inorder to control the amount of current from thebattery.
The voltage sensor is used to convert the voltage measured between two points into a physical signal. Voltage source which represenrs dc or ac electrical reference block is given.
Results:
The input signal:

The time where the fan whill be on is represented by output 1
