Week -2
AIM-
- To make a Simulink model of doorbell using solenoid block
- Use thermistor to sense the temperature of heater and turn on or off the fan as per the conditions.
BLOCK DIAGRAM OF DOORBELL

Explanation of the model
Blocks used
- Pulse generator
- Battery
- Simulink-ps converter & ps-simulink converter
- Ps switch
- Solver configuration
- Solenoid
- Ideal translational motion sensor
- Mech and electrical referenc
- Scope
- Signal builder is used to feed input values to the model and scope is connected to check the signal generated.
- Battery is used to give current source to circuit
- Solver configuration is must in simscape model
- Ps switch is used as it is a simscape model, as per the conditions given the ps switch will close the circuit for 2 seconds and open again.
- Solenoid converts electrical signals to mechanical signals
- Translational motion sensor is used to sense the plunger motion and give output graph
- Mechanical and electrical reference is used to give particular fixed or reference position
OUTPUT

The plot shows us the input data is correct at every 2 seconds the switch is closed
2ND AIM
Block diagram of thermistor which is used to sense temperature of heater and on the fan at given conditions

Blocks used
- Signal builder
- Controlled temperature source
- Thermistor
- Resistor
- Voltage sensor
- Dc voltage source
- Switch, constant, display and scope
- We used signal builder to create temperature ranges i.e from 0 to 10 seconds the temperature is 293k, from 10 to 30 seconds the temperature is 300k and from 30 to 50 sec temperature is 298k
- The controlled temperature source is used to take input values and feed it into thermistor
- Resistor and voltage sensor is used to pass the temperature output values to the switch and voltage sensor around resistor sense it
- DC voltage source supplies 12v supply to the circuit
- As the switch gets the threshold value greater than equal to constant then it on the fan at 298k 2 constant inputs are used for the switch, if threshold value greater then it will give value 1 or else 0
- Scope is used to get desired graph
OUTPUT

Here we see the fan gets on at 25 degree celcius and for all other temperature the fan is switched off. Fan is on between 10 to 30 seconds at 25 degree celcius.