Challenge

SIMULINK Week -2 making a simulink model of a doorbell & Thermistor sensor to Turn On or OFF Fan

AIM:

  1. Make a Simulink model of a Doorbell using a solenoid block with the following details

2. Use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per the below conditions

Make a Simulink model of a Doorbell using a solenoid block with the following details

In this model, we are going to simulate a doorbell using a solenoid block by using a different type of Simulink and sim space block diagram.

In the above figure, this Block diagram is constructed by using solenoids to act as an electromagnet field in which current passes through the wires as a magnetic field is generated around it, which will attract magnetic materials.

DOORBELL USING SOLENOID:

The Solenoid is an electromagnetic source. An ideal translational motion sensor is used to sense the motion of the solenoid as a mechanical convert. The pulse generator is used to generate values in a graphical form in which the PS switch is used to sub-connect with the pulse generator. parameters such as Amplitude, Periods(in secs), Pulse Width, Delay of the frequency are given.

There are 2 categories in the construct of the Doorbell simulation.

i) Electromagnetic force generator

ii) Mechanical Process for a doorbell

i) Electromagnetic force generator

PULSE GENERATOR:

It is used to generate both input and output in the waveform, in that various inputs are given to it to perform such operation as per requirements.

Battery:

It is the main power source to perform the operation which is connected to Switch as a positive terminal.

Simulink PS- Converter:

This block is used to connect the Simulink block to the Simspace block as an inter-connecter, in which the pulse generator is connected at one end and another is connected to the switch.

Solver Configuration:

The Solver Configuration block specifies the solver parameters that your model needs before you can begin the simulation. Each topologically distinct Simscape block diagram requires exactly one Solver Configuration block to be connected to it.

Electrical Reference:

The Electrical Reference block represents an electrical ground. Electrical conserving ports of all the blocks that are directly connected to the ground must be connected to an Electrical Reference block. A model with electrical elements must contain at least one Electrical Reference block.

"The output of this whole circuit is been connected to Scope which acts as an output of the pulse generator"

ii) Mechanical Process for a doorbell:

Solenoid:

The solenoid is modeled as an inductance whose value L depends on the plunger position x. The back emf for a time-varying inductance is given by: As L depends on x, this becomes: can be derived from manufacturer force-stroke data using the relationship: can then be integrated to get L as a function of x.

This is also used to connect to different processes to compute.

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.

PS Simulink Convertor:

The PS-Simulink Converter block converts a physical signal into a Simulink output signal. Use this block to connect outputs of a Simscape physical network to Simulink scopes or other Simulink blocks.
Mechanical Reference:
As we used Electrical reference to compute the blocks of electrical whereas 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.

"The output of this whole circuit is been connected to Scope which acts as an output"

OUTPUT:

Output is been attached below by performing the block diagram.

Input of Parameters:

1st Graph represents the pulse generator block

2nd Graph represents the plunger varies for 20sec with an interval of 2sec in between.

2. Use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per the below conditions:
The following block diagram is used to compute to sense the heat of the room by using a thermistor turning on when the temp is above 25C or else when the temp is below 25C to turn off Fan.
Inputs of temp are given by using Signal builder as per challenges the output of Signal builder is given to the input of controlled temp source.
The output of CTS is given to the thermistor, then negative out of thermistor is given to voltage sensor for sense-up voltage.
The negative terminal of sensor is connected parallel to a resistor, whereas output of the voltage sensor is connected to the switch ad also Voltage display is added to the display value of the voltage parallelly value is also added to scope.
All the blocks is been attached to Battery, where which is an electrical circuit so that ground reference is given.
The output of the electrical circuit is given to -tive terminal of controlled voltage course.
+ive terminal of this Controlled voltage is given to DC motor. Voltage is given to the negative DC motor.
An ideal rotational motion sensor is used to sense the values of DC motor and it is connected where the output of it is connected to Scope for a graphical representation.
BlOCK DIAGRAM:
Signal Builder:
The Signal Builder allows you to create interchangeable groups of piecewise linear signal sources and use them in a model. See Working with Signal Groups in Using Simulink for more information.
Controlled Temperature sensor:
The Controlled Temperature Source block represents an ideal source of thermal energy that is powerful enough to maintain specified temperature differences across the source regardless of the heat flow consumed by the system.
Thermistor:
The main use of a thermistor is to measure the temperature of a device. In a temperature-controlled system, the thermistor is a small but important piece of a larger system.
Voltage Sensor:
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.
Battery:
This block is a very basic input to run up the whole system. It will supply the eni=ough power to the system.
Resistor:

The Resistor block models a linear resistor described with the following equation:

V=I·R

where:

  • V is voltage.

  • I is current.

  • R is resistance.

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.

Switch:

To turn on or off the terminal we need a switch, in Simulink, there are many types of switches, for this function I have chosen two ways switch for this operation.

Controlled Voltage Source:

The Controlled Voltage Source block converts a Simulink input signal into an equivalent voltage source. The generated voltage is driven by the input signal of the block. You can initialize the Controlled Voltage Source block with a specific AC or DC voltage.

Ideal rotational motion sensor:

The Ideal Rotational Motion Sensor block represents an ideal mechanical rotational motion sensor, that is, a device that converts a variable measured between two mechanical rotational nodes into a control signal proportional to angular velocity or angle.

DC motor:

Basically motor is used to convert electrical output that will convert it into mechanical terms to perform that rotor runs.

Input of Signal Builder:

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 is above 25 °C, OFF otherwise

OUTPUT OF VOLTAGE & DC MOTOR(rpm):

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.