All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM To create a Simulink model of a doorbell using solenoid block with listed parameters and to use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per the given conditions. INTRODUCTION 1. SIMULINK: Simulink is a MATLAB-based graphical programming…
Laasya Priya Nidamarty
updated on 03 Mar 2021
To create a Simulink model of a doorbell using solenoid block with listed parameters and to use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per the given conditions.
Simulink is a MATLAB-based graphical programming environment for modeling, simulating, and analyzing multidomain dynamical systems. Its primary interface is a graphical block diagramming tool and a customizable set of block libraries. It offers tight integration with the rest of the MATLAB environment and can either drive MATLAB or be scripted from it. Simulink is widely used in automatic control and digital signal processing for multidomain simulation and model-based design. [1]
An electric bell is a mechanical or electronic bell that functions by means of an electromagnet. When an electric current is applied, it produces a repetitive buzzing, clanging, or ringing sound. Electromechanical bells have been widely used at railroad crossings, in telephones, fire and burglar alarms, as school bells, doorbells, and alarms in industrial plants, since the late 1800s, but they are now being widely replaced with electronic sounders. An electric bell consists of one or more electromagnets, made of a coil of insulated wire around an iron bar, which attract an iron strip armature with a clapper. When an electric-current flows through the coils, the electromagnet creates a magnetic field which pulls the armature towards it, causing the hammer to strike the bell. [2]
In most wired systems, a button on the outside next to the door, located around the height of the doorknob, activates a signaling device (usually a chime, bell, or buzzer) inside the building. Pressing the doorbell button, a single-pole, single-throw (SPST) pushbutton switch momentarily closes the doorbell circuit. One terminal of this button is wired to a terminal on a transformer. A doorbell transformer steps down the 120 or 240-volt AC electrical power to a lower voltage, typically 10 to 24 volts. The transformer's other terminal connects to one of three terminals on the signaling device. Another terminal is connected to a wire that travels to the other terminal on the button. Some signaling devices have a third terminal, which produces a different sound. If there is another doorbell button (typically near a back door), it is connected between the transformer and the third terminal. The transformer primary winding, being energized continuously, does consume a small amount (about 1 to 2 W) of standby power constantly; systems with lighted pushbutton switches may consume a similar amount of power per switch. The tradeoff is that the wiring to the button carries only safe, low voltage isolated from earth ground. A common signaling device is a chime unit consisting of two flat metal bar resonators, which are struck by plungers operated by two solenoids. The flat bars are tuned to two pleasing notes. When the doorbell button is pressed, the first solenoid's plunger strikes one bar, and when the button is released, a spring on the plunger pushes the plunger up, causing it to strike the other bar, creating a two-tone sound ("ding-dong"). If a second doorbell button is used, it is wired to the other solenoid, which strikes only one of the bars, to create a single-tone ("ding") sound. [3]
A thermistor is a type of resistor whose resistance is strongly dependent on temperature, more so than in standard resistors. The word is a combination of thermal and resistor. Thermistors are widely used as inrush current limiters, temperature sensors (negative temperature coefficient or NTC type typically), self-resetting overcurrent protectors, and self-regulating heating elements (positive temperature coefficient or PTC type typically).
Thermistors are of two opposite fundamental types:
Thermistors are generally produced using powdered metal oxides. With vastly improved formulas and techniques over the past 20 years , NTC thermistors can now achieve accuracies over wide temperature ranges such as ±0.1 °C or ±0.2 °C from 0 °C to 70 °C with excellent long-term stability. NTC thermistor elements come in many styles such as axial-leaded glass-encapsulated (DO-35, DO-34 and DO-41 diodes), glass-coated chips, epoxy-coated with bare or insulated lead wire and surface-mount, as well as rods and discs. The typical operating temperature range of a thermistor is −55 °C to +150 °C, though some glass-body thermistors have a maximal operating temperature of +300 °C. Thermistors differ from resistance temperature detectors (RTDs) in that the material used in a thermistor is generally a ceramic or polymer, while RTDs use pure metals. The temperature response is also different; RTDs are useful over larger temperature ranges, while thermistors typically achieve a greater precision within a limited temperature range, typically −90 °C to 130 °C. [4]
It is required to create a Simulink model of a doorbell using solenoid block with listed parameters:
EXPLANATION AND OBSERVATION:
BATTERY: This is a behavioral battery model which represents a simple battery model. Basic model that does not output battery charge level or simulate thermal effects. This modeling variant is the default. [5]
Representation:
SWITCH: Switch controlled by external physical signal. The Switch block models a switch controlled by an external physical signal. If the external physical signal PS is greater than the value specified in the Threshold parameter, then the switch is closed, otherwise the switch is open. Electrical switches add discontinuities to the model, and therefore it remains the choice of the solver ti influence the model behavior. [6]
Representation:
SOLENOID: Electrical characteristics and generated force of solenoid. The Solenoid block represents the electrical characteristics and generated force for the solenoid in the following figure:
The return spring is optional. To remove the effects of this spring from the model, set the Spring constant parameter to 0. [7]
Representation:
PULSE GENERATOR: Generate square wave pulses at regular intervals. The Pulse Generator block generates square wave pulses at regular intervals. The block waveform parameters, Amplitude, Pulse Width, Period, and Phase delay determine the shape of the output waveform. The following diagram shows how each parameter affects the waveform:
The Pulse Generator block can emit scalar, vector, or matrix signals of any real data type. To emit a scalar signal, use scalars to specify the waveform parameters. To emit a vector or matrix signal, use vectors or matrices, respectively, to specify the waveform parameters. Each element of the waveform parameters affects the corresponding element of the output signal. For example, the first element of a vector amplitude parameter determines the amplitude of the first element of a vector output pulse. All the waveform parameters must have the same dimensions after scalar expansion. The data type of the output is the same as the data type of the Amplitude parameter. The block output can be generated in time-based or sample-based modes, determined by the Pulse type parameter.
Time-Based Mode:
In time-based mode, Simulink® computes the block output only at times when the output actually changes. This approach results in fewer computations for the block output over the simulation time period. Activate this mode by setting the Pulse type parameter to Time based. The block does not support a time-based configuration that results in a constant output signal. Simulink returns an error if the parameters Pulse Width and Period satisfy either of these conditions:
Depending on the pulse waveform characteristics, the intervals between changes in the block output can vary. For this reason, a time-based Pulse Generator block has a variable sample time. The sample time color of such blocks is brown (see View Sample Time Information for more information).Simulink cannot use a fixed-step solver to compute the output of a time-based pulse generator. If you specify a fixed-step solver for models that contain time-based pulse generators, Simulink computes a fixed sample time for the time-based pulse generators. Then the time-based pulse generators simulate as sample based. [8]
Representation:
Based on the information of the description of the Pulse generator, the following inputs are given:
SIMULINK TO PS CONVERTER: It converts the Simulink input signal to a physical signal. The Simulink-PS Converter block converts the input Simulink® signal into a physical signal. Use this block to connect Simulink sources or other Simulink blocks to the inputs of a Physical Network diagram. To convey signal conversion while taking up minimal canvas space, the block icon changes dynamically based on whether it is connected to other blocks. [9]
Representation:
IDEAL TRANSLATIONAL MOTION SENSOR: The Ideal Translational Motion Sensor block represents a device that converts an across variable measured between two mechanical translational nodes into a control signal proportional to velocity or position. You can specify the initial position (offset) as a block parameter. The sensor is ideal since it does not account for inertia, friction, delays, energy consumption, and so on. Connections R and C are mechanical translational conserving ports that connect the block to the nodes whose motion is being monitored. Connections V and P are physical signal output ports for velocity and position, respectively. The block positive direction is from port R to port C. This means that the velocity is measured as v = vR – vC, where vR, vC are the absolute velocities at ports R and C, respectively. [10]
Representation:
PS TO SIMULINK CONVERTER: The PS-Simulink Converter block converts a physical signal into a Simulink® output signal. Use this block to connect outputs of a Physical Network diagram to Simulink scopes or other Simulink blocks. To convey signal conversion while taking up minimal canvas space, the block icon changes dynamically based on whether it is connected to other blocks. [11]
Representation:
MECHANICAL TRANSLATIONAL REFERENCE: Reference connection for mechanical translational ports. The Mechanical Translational Reference block represents a reference point, or frame, for all mechanical translational ports. All translational ports that are rigidly clamped to the frame (ground) must be connected to a Mechanical Translational Reference block. [12]
Representation:
ELECTRICAL REFERENCE: The Electrical Reference block represents an electrical ground. Electrical conserving ports of all the blocks that are directly connected to ground must be connected to an Electrical Reference block. A model with electrical elements must contain at least one Electrical Reference block. [13]
Representation:
SOLVER CONFIGURATION: Physical Networks environment and solver configuration. Each physical network represented by a connected Simscapeâ„¢ block diagram requires solver settings information for simulation. The Solver Configuration block specifies the solver parameters that your model needs before you can begin simulation. Each topologically distinct Simscape block diagram requires exactly one Solver Configuration block to be connected to it. [14]
Representation:
By using a thermistor, it is required to sense the temperature of the heater and turn on and turn off the fan as per the following conditions:
EXPLANATION AND OBSERVATION:
SIGNAL BUILDER: This is used to create and generate interchangeable groups of signals whose waveforms are piecewise linear. The Signal Builder block allows one to create interchangeable groups of piecewise linear signal sources and use them in a model. One can quickly switch the signal groups into and out of a model to facilitate testing. In the Signal Builder window, create signals and define the output waveforms. To open the window, double-click the block. [15]
Representation:
CONTROLLED TEMPERATURE SOURCE: This is used as a Variable source of thermal energy, characterized by temperature. 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. One can use the entire variety of Simulink® signal sources to generate the desired heat flow variation profile. 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. [16]
Representation:
THERMAL REFERENCE: This is used as reference connection for thermal ports. The Thermal Reference block represents a thermal reference point, that is, a point with an absolute zero temperature, with respect to which all the temperatures in the system are determined. The block has one thermal conserving port. [17]
Representation:
THERMISTOR: It is used to give negative temperature coefficient thermistor using B-parameter equation. The Thermistor block represents an NTC thermistor using the B-parameter equation. The resistance at temperature T is:
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:
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. [18]
Representation:
RESISTOR: It is used as a linear resistor in electrical systems. The Resistor block models a linear resistor, described with the following equation:
Connections + and – are conserving electrical ports corresponding to the positive and negative terminals of the resistor, 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. [19]
Representation:
VOLTAGE SENSOR: Voltage sensor in electrical systems. The Voltage Sensor block represents an ideal voltage sensor, that is, a device that converts voltage measured between two points of an electrical circuit into a physical signal proportional to the voltage. Connections + and – are electrical conserving ports through which the sensor is connected to the circuit. Connection V is a physical signal port that outputs the measurement result. [20]
Representation:
SWITCH: The Switch block models a switch controlled by an external physical signal. If the external physical signal PS is greater than the value specified in the Threshold parameter, then the switch is closed, otherwise the switch is open. Electrical switches add discontinuities to your model, and therefore your choice of the solver can influence the model behavior. [21]
Representation:
CONTROLLED VOLTAGE SOURCE: It is an ideal voltage source driven by input signal. The Controlled Voltage Source block represents an ideal voltage source that is powerful enough to maintain the specified voltage at its output regardless of the current flowing through the source. The output voltage is V = Vs, where Vs is the numerical value presented at the physical signal port. [22]
Representation:
DC MOTOR: This block represents a DC motor model with electrical and torque characteristics and fault modeling. The DC Motor block represents the electrical and torque characteristics of a DC motor using the following equivalent circuit model: [23]
Representation:
IDEAL ROTATIONAL MOTION SENSOR: Motion sensor in mechanical rotational systems. The Ideal Rotational Motion Sensor block represents an ideal mechanical rotational motion sensor, that is, a device that converts an across variable measured between two mechanical rotational nodes into a control signal proportional to angular velocity or angle. One can specify the initial angular position (offset) as a block parameter. The sensor is ideal since it does not account for inertia, friction, delays, energy consumption, and so on. Connections R and C are mechanical rotational conserving ports that connect the block to the nodes whose motion is being monitored. Connections W and A are physical signal output ports for velocity and angular displacement, respectively. The block positive direction is from port R to port C. This means that the velocity is measured as ω = ωR – ωC, where ωR, ωC are the absolute angular velocities at ports R and C, respectively.
The Wrap angle to [0, 2*pi] parameter lets the user control the angular displacement output range. When set to On, it keeps angular displacement within the range from 0 to 2Ï€ radians (360 degrees), regardless of the number of revolutions performed by the object and the direction of rotation. When set to Off, the output range is unrestricted. [24]
Representation:
MECHANICAL ROTATIONAL REFERENCE: The Mechanical Rotational Reference block represents a reference point, or frame, for all mechanical rotational ports. All rotational ports that are rigidly clamped to the frame (ground) must be connected to a Mechanical Rotational Reference block. [25]
Representation:
Figure 1. The input signal to the doorbell.
Figure 2. The output amplitude signal of the doorbell.
It can be observed that the bell is rung for every two seconds as required by the problem statement. This can be clearly understood by the sudden increase in the amplitude which are in the multiples of two over a span of 50 seconds. It can be observed that the magnitude of the amplitude over various time intervals is same and this is because of the lack of irreversibilities in the problem consideration.
Figure 3. The output velocity signal of the doorbell.
Figure 4. The input signal to the thermistor.
The input signal to the thermistor is given through signal builder. The signal is built by varying the temperature with time as per the problem statement. Therefore, the layout is as observed in the figure 4.
The figure 5 describes the amplitude of the end effector that uses the input from the thermistor. i.e., encompasses the movement of the fan in terms of amplitude. It can be seen that the for the first ten seconds the amplitude is constant as amounts to the value zero. This is because of the implemented logic as per the problem statement II. There is a change in the amplitude for the time period 10-30 and thereon, it remains constant from 30 – 50 seconds. The maximum amplitude lies between 2.9 x 104 and 3 x 104 . The linear nature of the graph from 10 – 30 seconds and is an indicative that the fan runs in this region.
Figure 5. The output amplitude signal of the thermistor fan system.
Similarly, the variation of the angular velocity has been plotted as a function of time and the plot is obtained in the Figure 6. The plot remains parallel to time axis with a value of angular velocity zero for the time interval of 0 – 10 seconds. The angular velocity reaches the value of around 1440 (approximately) from 10 – 30 seconds and the value drop to zero for the next time interval i.e., 30 – 50 seconds.
Figure 6. The output angular velocity signal of the thermistor fan system.
The required problems have been solved and justified with appropriate results. Working of doorbell using solenoid and the working of thermistor-fan system is well received.
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...
Week 1 Understanding Different Battery Chemistry
AIM To understand different battery chemistry. INTRODUCTION 1. ELECTRIC SCOOTER/VEHICLE: [1] Electric motorcycles and scooters are plug-in electric vehicles with two or three wheels. The electricity is stored on board in a rechargeable battery, which drives one or more electric motors.…
02 Jun 2021 02:33 PM IST
Final Project: Design of an Electric Vehicle
AIM To create a Simulink model of an EV. INTRODUCTION OF ELECTRIC VEHICLES: INTRODUCTION OF ELECTRIC VEHICLES: Electric vehicles (EVs) use an electric motor for traction, and chemical batteries, fuel cells, ultracapacitors, and/or flywheels for their corresponding energy sources. The electric vehicle has many advantages…
26 May 2021 04:11 PM IST
Project-1: Powertrain for aircraft in runways
AIM To understand powertrain for aircraft in runways. PROBLEM SPECIFICATION AND SOLVING: PROBLEM STATEMENT I: Search and list out the total weight of various types of aircrafts. EXPLANATION AND OBSERVATION: [1] There are many factors that lead to efficient and safe operation of aircraft. Among these vital factors are proper…
17 May 2021 11:24 AM IST
Week-11 Challenge: Braking
AIM To understand Braking in automobiles. INTRODUCTION 1. BRAKE: [1] Brake is a mechanical device that inhibits motion by absorbing energy from a moving system. It is used for slowing or stopping a moving vehicle, wheel, axle, or to prevent its motion, most often accomplished by means…
06 May 2021 11:48 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2024 Skill-Lync Inc. All Rights Reserved.