Week -2
AIM:-1. To Make a Simulink model of Doorbell using a solenoid block. 2. By Using a Thermistor sense the Temperature of a Heater & Turn On or Turn Off the Fan
#Part 1- Simulink model of Doorbell using a solenoid block
Objective:- To Make a Simulink model of Doorbell using a solenoid block, Create a situation where the switch is closed for 2 seconds and then released. Observe the physical movement of the plunger
Introduction:-Doorbell-The Electric Doorbell is a device having Mechanical & Electrical Component produces sound on pressing the button. When the switch is pressed, the circuit is completed, which allows current from the battery to flow through the circuit, while passing the Solenoid it generates electromagnet in the desired space, which allows the plunger to move, due to which it hits the bell and produces sound

Solenoid- Solenoid is a type of Electromagnet, the purpose of which is to generate a controlled Magnetic field through a coil wound into a tightly packed helix. The coil can be arranged to produce a uniform magnetic field in a volume of space when an electric current is passed through it.
Procedure:-- Here in the simulation, we require to produce the sound in the doorbell when the switch is on. - We need to use a solenoid in the setup to produce an electromagnet that moves the plunger and hits the bell to produce sound for 2sec and stop.

- As per the requirement we need to move the plunger for 2second and stops which is possible by using the Pulse Generator, we need to configure the parameter in the pulse generator as per our need, like; Amplitude, Period, Pulse Width & Phase Delay. to get the desired pulses as output - Simulink to Physical Signal converter is used. - Battery is connected to provide the current to the circuit with a switch so that it will on/off on a particular signal. - Solenoid is connected to the system to move the plunger, solenoid converts electric energy to mechanical energy by generating electromagnetism around the plunger, which ultimately moves the plunger in the desired direction. - Solver is provided to understand the type of system(Continuous & Discrete) and solves as per that. - To understand the motion in a mechanical translational network, we use an Ideal Transitional motion sensor, to understand the motion of the plunger, by configuring the sensor from initial position 0 to 4 cm. - To get the output, we use Scope, bypassing the signal through PS-Simulink Converter - All Circuits need to be grounded to maintain the potential difference,
which is done by using Electrical reference & Mechanical Translational Reference.
INPUTS:-
PULSE GENERATOR-


SOLENOID:-

OUTPUT:-
POSITION vs TIME

-In order to get the Desired output for the Doorbell to ring for 2sec, we need to configure the Mechanical parameter of the solenoid, Like; Spring Constant, Damping Coefficient, Stroke value.
VELOCITY VS TIME

From Graph, we can conclude that the plunger is moving from its initial position 5mm with a time delay of 2sec, and then it rings the bell by hitting the bell on reaching the 0mm position for 2sec between 2-4second, and then it goes to do this again and again for l0sec (and ring the bell for multiple times), TO CLEAR IT MORE WE CAN CHANGE DAMPING TO '6'.
#Part 2- Using Thermistor sense the temperature of a heater & Made Model To "Turn On or Turn Off the Fan"
Objective:- To Make a Simulink model To "Turn On or Turn Off the Fan" By Using Thermistor
Conditions- 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
Introduction:-Thermistor- The term thermistor comes from "thermal" and "resistor". A thermistor is a type of resistor whose resistance is reliant on temperature; it's a resistance thermometer. They're made from metallic oxide which is molded into a bead, disk, or cylindrical shape and then enclosed with epoxy or glass.
Thermistors don't work well with extreme temperatures, but they are perfectly suited for measuring the temperature at a certain point; they're precise when they're used within a limited temperature range i.e. within 50 °C of the target temperature; this range is dependent on the base resistance.
Procedure:-Simulink Model-
TAKING OUT THE VALUE FOR THRESHOLD FOR THE SWITCH BY TAKING TEMP AS 25 CELCIUS

MAIN MODEL:-

- As per the given condition for temperature and time (20 °C from 0 to 10 seconds, 27 °C from 10 to 30 seconds, 23 °C from 30 to 50 seconds), These values are provided as input to the Signal Builder and configure it as per our condition.

- Passing the signals of Signal Builder(input) through Simulink-PS Converter to Thermister, we need to add Controlled Temperature source in between, as Thermister won't understand the input as it is.
- The output of Controlled Temperature Source is used as input to Thermister and to maintain potential difference Thermal Reference is added to it.
- Controlled Temperature Source block represents an ideal source of thermal energy that is powerful enough to maintain a specified temperature difference across the source regardless of the heat flow consumed by the system.
- Battery is connected to run the circuit, a solver is also used to understand the type of system.
- A Voltage Sensor is used across the connected Resistor, to measure the voltage as a threshold value for the condition of our circuit.
- To fulfill our Fan conditions(ON if the temperature above 25 °C, OFF otherwise) we add a Switch and provide the threshold value, this will work as if-else loop, to give the condition as right or wrong we add constant blocks,
- If our condition is greater than the threshold value it will turn off the fan else turn off the fan.
- Scope and Display blocks are used to get the result as output.
OUTPUT:-

From the Graph, we can conclude that when the temperature is 20° celsius(293k), the fan was off for 1 Osecond, when the temperature reached 25° celsius(298k) the fan gets turn on for the next 20second, and when the temperature again reaches to 23° celsius(293k) fan gets turn off.
Conclusion:-- In the first part, we use a solenoid to convert the electric energy into mechanical energy and made a Simulink model to simulate the Doorbell, here we can conclude that the plunger is moving from its initial position of 5mm with a time delay of 2sec, this time delay happens while the plunger is suddenly disconnecting from the bell and moving away.
- In the second model, we use Thermister to sense the temperature and according to our condition, we put the threshold value to the switch block to turn on and turn off the fan at a particular temperature.