All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Aim:- Create the following simulink models and obeserve the result. Make a Simulink model of Doorbell using solenoid block with the following details: In the above arrangement, when the switch is closed the electromagnet receives electrical power from the battery and pulls the metal…
SIDDHESH PARAB
updated on 11 Oct 2021
Aim:- Create the following simulink models and obeserve the result.
In the above arrangement, when the switch is closed the electromagnet receives electrical power from the battery and pulls the metal arm to hit the bell producing sound. Create a situation where the switch is closed for 2 seconds and then released. Observe the physical movement of the plunger.
2. Use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per below 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
Answer :-
1] Make a Simulink model of Doorbell using solenoid block with the following details:
In the above arrangement, when the switch is closed the electromagnet receives electrical power from the battery and pulls the metal arm to hit the bell producing sound. Create a situation where the switch is closed for 2 seconds and then released. Observe the physical movement of the plunger.
Theory :-
Solenoid :-
1) Solenoid Block -
The Solenoid Block represents the electrical characteristics & generated force for solenoid.
Solenoid Block
0
.
When The Motion direction under excitation Parameter Is Set To... | Block Icon |
---|---|
Port R moves away from port C |
|
Port R moves towards port C |
|
2) Battery :-
V = Vnom*SOC/(1-beta*(1-SOC))
where SOC is the state of charge and Vnom is the nominal voltage. Coefficient beta is calculated to satisfy a user-defined data point [AH1,V1].
3) Switch :-
4) Pulse Generator :-
Output pulses:
if (t >= PhaseDelay) && Pulse is on
Y(t) = Amplitude
else
Y(t) = 0
end
5) Ideal Translational Sensor :-
6) Scope :-
7) Mechanical Translational Reference :-
8) Electrical Reference :-
9) Simulink-PS converter :- Converts the Simulink input signal to a Physical Signal.
10) PS-Simulink Converter :- Converts the input Physical Signal to a Simulink output signal.
Simulink Model :- Doorbell circuit using Solenoid block
Model Drive Link :-
https://drive.google.com/file/d/1dLUeHIeuGJhpcyTItBzSj42r8ukQ3rNz/view?usp=sharing
Input Graph :-
Output Graph :-
Explanation :-
PART 2 :-
Use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per below 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
SOLUTION :-
Theory :-
Thermistor :-
A thermistor was first discovered by Michael Faraday in 1833 on a silver sulfide which showed a behavior of decrease in resistance when temperature increased.
A thermistor is a semiconductor that has a resistance capacity more than a conducting material and less than insulating material. Its electrical resistance varies with the change in the temperature or thermally sensitive resistor. There are mainly two types of thermistors, namely the Negative Temperature Coefficient (NTC) and the Positive Temperature Coefficient (PTC).
Thermistor’s relation with temperature also depends on the material in which it is made. A negative temperature coefficient (NTC) thermistor will decrease its resistance value when temperature increases whereas a Positive temperature coefficient (PTC) will increase its resistance when temperature increases.
Circuit Diagram :-
Different Types of Blocks used in Simulink model are as under;
1) Thermistor Block :-
R=R0exp(B(1/T−1/T0))
where:
R0 is the nominal resistance at the reference temperature T0.
B is the characteristic temperature constant.
The following equation describes the thermal behavior of the block:
Q=Kd*tc*dT/dt
where:
Q is the net heat flow into port A.
Kd is the Dissipation factor parameter value.
tc is the Thermal time constant parameter value.
dT/dt is the rate of change of the temperature.
2) Signal Builder :-
3) Switch :-
Pass through input 1 when input 2 satisfies the selected criterion; otherwise, pass through input 3. The inputs are numbered top to bottom (or left to right).
The first and third input ports are data ports, and the second input port is the control port. The criteria for control port 2 are u2 >= Threshold, u2 > Threshold or u2 ~= 0.
4) Battery :-
This block models a battery. If you select Infinite for the Battery charge capacity parameter, the block models the battery as a series internal resistance and a constant voltage source. If you select Finite for the Battery charge capacity parameter, the block models the battery as a series internal resistance plus a charge-dependent voltage source defined by:
V = Vnom*SOC/(1-beta*(1-SOC))
where SOC is the state of charge and Vnom is the nominal voltage. Coefficient beta is calculated to satisfy a user-defined data point [AH1,V1].
5) Voltage Sensor :-
Connections + and - are conserving electrical ports through which the sensor is connected to the circuit. Connection V is a physical signal port that outputs voltage value.
6) Resistor :-
The voltage-current (V-I) relationship for a linear resistor is V=I*R, where R is the constant resistance in ohms.
The positive and negative terminals of the resistor are denoted by the + and - signs respectively. By convention, the voltage across the resistor is given by V(+)-V(-), and the sign of the current is positive when flowing through the device from the positive to the negative terminal. This convention ensures that the power absorbed by a resistor is always positive.
7) Controlled Temperature Source :-
The Controlled Temperature Source block represents an ideal source of thermal energy that is powerful enough to maintain specified temperature difference across the source regardless of the heat flow consumed by the system.
Connections A and B are thermal conserving ports corresponding to the source inlet and outlet, respectively. Port S is a physical signal port, through which the control signal that drives the source is applied. The temperature differential across the source is directly proportional to the signal at the control port S.
The block positive direction is from port A to port B. This means that the temperature differential is determined as TB – TA, where TB and TA are the temperatures at source ports.
8) Thermal Reference :-
9) Electrical Reference :-
10) Constant Block :-
11) Scope :- Display signals generated during simulation.
12) Solver Configuration :- Defines solver settings to use for simulation.
13) Simulink-PS converter :- Converts the Simulink input signal to a Physical Signal.
14) PS-Simulink Converter :- Converts the input Physical Signal to a Simulink output signal.
SIMULINK MODEL :-
Google Drive Link :-
https://drive.google.com/file/d/1kE4Ja2D_t0dUX4Vk6G8jbjqUXEzcH5lJ/view?usp=sharing
Explanation :-
2. Since, controlled temperature source and thermistor block only takes values in Kelvin, hence we have converted those temperature values into kelvin and accordingly, we have made the Signal builder block as under;
3. Further, we have connected Signal builder block to Simulink-PS converter block since controlled temperature source takes only physical control signal as input. Further, we have connected output terminal B of controlled temperature source to thermal port A of Thermistor block.
4. Thereafter, we have taken the Thermistor block to sense the temperature of circuit. Further, we have connected positive terminal of thermistor to positive terminal of battery. Here, we have used battery block as a DC voltage source. Thereafter, we have connected voltage sensor parallel to thermistor block to measure the voltage across the circuit and converts those measured voltage value into a physical signal proportional to the voltage. We have also used resistor block to provide resistance to electric flow of current.
5. Due to this, Physical signal port V of voltage sensor generated threshold voltage for given temperature conditions. However, it is physical signal. Hence, we have used PS-simulink converter to convert those physical signal into Simulink signal.
6. As per the fan conditions given in question states that fan should be on if temperature goes above 25 deg. celicus i.e. (298.13 K). Hence, we have introduced one constant block resembling temperature of 25 deg. celcuis and then calculated the threshold voltage as (11.92) required to trigger the switch so that mentioned fan condition can be satisfied.
7. We have used scope block and connected to the output port V of voltage sensor & PS-simulink converter to see the voltage graph of given temperature conditions and is as under;
8. From the above graph, it was very evident that for time (0-10 sec), voltage is around 11.935 V at temperature 293.13 K. Further, it was observed that for time(10-30 sec), voltage is around 11.91 V at temperature 300.13 K and for time(30-50 sec), voltage is around 11.9225 v at temperature 296.13 K.
9. Hence, we can say that as soon as temperature increases in the circuit, voltage values decreases.
10. Further, we have connected voltage signal to port 2 of switch block. Here, we have have given threshold voltage value as 11.92 because as per fan condition, fan should be on when temperature goes above 25 deg. celcius.
11. Switch block has a condition such that when control signal port U2 is greater than or equal to threshold value, it passess through port 1 otherwise it passes through port 3.
12. Hence, we can say that when temperature value is greater than 25 deg. celcius, voltage value will be less than threshold voltage value hence for that particular instance of the signal, the signal passess through port 3. Hence, for port 3, we have connected constant block of value as '1' as true condition and fan will switch on.
13. Further, when temperature value is less than 25 deg. celcius, voltage value will be more that threshold voltage value, hence for that particular instance of signal, the signal passess trough port 1. Hence, for port 1, we have connected constant block of value as '0' as false condition and fan will be switched off.
14. Scope block has been connected to output port of switch so that output graph can be observed.
Output Graph :-
Conclusion :-
1. For Doorbell challenge, we have given input as time period for 2 seconds in the pulse generator to open & close the switch. When the switch is closed the solenoid block receives electrical power from the battery and plunger moves from port R to port C to hit the bell & produce sound. Physical movement of the plunger is observed by using translational motion sensor & physical output is converted into Simulink output model is displayed in the scope. By reducing the spring constant value and increasing the damping value, vibrations will be reduced.
2. For Thermistor challenge, we observed that as soon as temperature increases in the circuit, voltage value got decreased. Hence, we have used this logic to operate fan condition as when temperature is above 25 deg. celcius, voltage value is less than threhold voltage, then it triggered the switch to operate true condition as '1' and fan gets on otherwise it is off.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Project 2-Highway Assistant-Lane Changing Assistant
Aim :- Model Based Development of Highway Assistant – Lane Changing Assistant Objective :- To develop one specific requirement of Highway Assistant – Lane Changing Assistant algorithm. Please note that the whole Highway Assistant – Lane Changing Assistant is a very huge algorithm & only one small…
14 Feb 2022 04:19 PM IST
Project 1- Traffic Jam Assistant Feature
Aim :- Traffic Jam Assistant Feature Objective :- This model must be developed in MATLAB Simulink as per MBD guidelines according to the requirements given. Tag the requirements to the Simulink model, Requirements 1 & Requirement 2 are tagged into their corresponding subsystems. Creation of Simulink Data Dictionary…
05 Feb 2022 06:55 PM IST
Design of an Electric Vehicle
AIM:- Create a MATLAB model of an electric car that uses a battery and a DC motor. Choose suitable blocks from the Powertrain block set. Prepare a report about your model including the following: ABSTRACT:- In this project, we going to build the MATLAB model of ELECTRIC CAR by using a DC motor and a suitable battery for…
01 Feb 2022 06:47 AM IST
Project 2 Adaptive Cruise Control
Aim :- Develop a MATLAB Simulink Model for Adaptive Cruise Control feature used in Automotive Vehicle Objective:- To develop a Adaptive Cruise Control feature as per the Requirement Document using MATLAB Simulink. While Developing the Adaptive Cruise Control Simulink Model, we have follow all the MBD related processes…
22 Jan 2022 08:13 AM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.