Week -2
Aim ;
a. Make a Simulink model of Doorbell using solenoid block.
b. Use a thermistor to sense the temperature of a heater tun ON or turn OFF the fan.
Objective ;
To make a Simulink model of Doorbell using a solenoid block in a situation where the switch is closed for 2 seconds and the closed.
To use a thermistor to sense the temperature of a heater & turn ON if the temperature is above 25 C and OFF otherwise.
Door Bell Theory :-

The above - shown image depicts the working circuit of the Electronic doorbell. When the switch is turned on the circuit becomes active and the solenoid activities the plunger which in turn hits the bell. The solenoid is a simple electronic device that electrical energy into mechanical work. When an electrical current is introduced, a magnetic field forms around the coil which draws the plunger. In the coil is made of many times of tightly wound copper wire. When an electrical current flows through this wire, a strong magnetic field/flux is created.
Basic components used to generate a simple doorbell circuit are:
1. Battery
2. Switch
3. Solenoid
4. A bell with plunger.
Simulink Model :-

So to feed the input pulse generator block is created. The input for the pulse generator is given below.

I have given the amplitude as 4. To achieve 2 seconds of phase delay and 2 seconds to ring i have given the time period as 4 seconds with a pulse width of 50%.

This is the input signal which is fed into the electrical circuit. The input has to be converted from the Simulink input signal to the Physical signal. This is connected to the switch. One end of the swirch is connected to the positive terminal of the battery and the other end is negative terminal of the solenoid. The negative terminal of the battery is then connected to the positive termknal of the solenoid. Electrical resistance is connected to the circuit and a solver configuration is also added.
The case 'C' of the solenoid is connected to the mechancial reference and the plunger 'R' is connected to the translational conserving ports. The position 'P' of the translational motion sensor is connected to the output scope and display. Before this, the physical signal is converted into the Simulink signal.
Output :-

The amplitude/vibration shown at the bottom indicates the bell is ringing at the interval of 2 seconds with phase delay of 2 seconds. The amplitude/vibration at the phase delay line is a concern in the output.
Thermistor Theory :-
A thermistor is a resistance thermometer or a resistor whose resistance is dependent on temperature. The term is a combination of "Thermal" and "Resistor". There are two types of thermistors. Negative temperature coefficient(NTC) and Positive temperature coefficient (PTC). With thermistor, when the temperature increases, resistance decrease. Conversely, when the temperature decrease, resistance increases. This type of thermistor differently. When temperature increases, the resistance increases, and when temperature decreases, resistance decreases. This type of thermistor is generally used as a fuse.
Basic components used to generate a simple cooling fan circuit are:
1.Battery
2.Thermistor
3.Fan
4.Transistor
5.Resistor
Simulink model :-

Here the input is fed through the block 'signal builder'. The input data is given based on the initial conditions provided in the challenge.
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.
As per the above-mentioned conditions, the input of the Signal builder is incorporated as shown below,

Before this signal is been fed into the controlled temperature source the settings of the "Simulink Physiccal signal convertor" have to be modified. In the input handling, the filter input & derivative has to be selected instead of signals this is because here we use two heat source namely controlled temperature the ideal energy source in a thermal network that can maintain a controlled temperature difference regardeless of the heat flow rate.
The positive side of the thermistor is connected to the positive terminal of the battery and the negative side of the terminal is connected to the current sensor which helps to detect the current flow in the circuit this is followed by electrical resitance.
The value from the current sensor is converted into the Simulink signal using the convertor. The value obtained is displayed in the display block. This just to given the threshold value inside the switch, which has 2 outputs based on 2 conditions if the value is above the threshold value of the output will be 1 and f the value is below the threshold value of the output awill be 0. The final output is recorded in the scope.
Output :-


If we observe the graph, we notice that from time 0 to 10 seconds when temperature is 293K, and time 10 to 30 seconds when temperature is 300K, and time 30 t0 50 seconds when temperature is 296K, voltage is nearly 0.01106. So based on the given conditions the fan should work only in the time period of 10 to 30 seconds which is exactly depicted in the graph shown above.
Conclusion :-
The given Simulink model of Doorbell and Thermistor theory are explaind clearly and run the simulink model with output graphs are executed neetly and successfully.