Challenge

Week -2

..

...

Week 2

Aim:

To make a simulink model of a doorbell using solenoid block.

To use a thermistor to sense the temperature of a heater & turn on or turn off the fan.

Objective:

Make a Simulink model of Doorbell using a 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.

Assume remaining parameters.

Use a thermistor to sense the temperature of a heater & turn on or turn off the fan as per the 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:

1. Here first we are going to study the Simulink model of the doorbell using a solenoid block. We need to access the Simulink with the block parameters to run the simulation. First, we need to get to understand the theory behind the Doorbell mechanism.

Theory of Doorbell:

Introduction

The electric doorbell is a simple circuit that triggers a sound on the completion of the circuit by pressing the button. It is this simplicity that makes the doorbell such a marvel. The simple devices in the doorbell but the scientific principle of electromagnetism into action in a useful way. In order to understand the operations of an electric bell, you first need to understand what is an electromagnet. Well, to put it in simple words, an electromagnet is basically a type of magnet in which the magnetic field is produced with the help of an electric current. When electrical current flows through an electromagnet it works as a standard magnet (generating magnetic fields). When the power generation to an electromagnet stops, the production of the magnetic field also stops.

So, in an electric bell, an electromagnet forms an important part along with Armature, Spring, Armature rod, Hammer and a Gong.

The image below shows the internal mechanism of an electric bell.

An electric source, for example, a battery can be used to power the electromagnet used in an electric bell. The electric circuit is completed by installing a push switch which you can press to generate sound in an electric bell. The switch also acts as the circuit breaker.

So once the setup is completed, when the switch is pressed, the circuit loop is complete which causes the current to flow through the circuit. The arm which strikes the gong is connected to a spring at one end and an iron ball at the other end. This is called a hammer or a striker. The arm is attached to an iron strip which is attracted to the electromagnet when the circuit is complete and the current flows.

Why does this happen? It’s mainly because the magnetic field created by the electromagnet attracts the iron strip towards it when the circuit is complete. This is the moment when you hear the ringing sound since the hammer keeps hitting the gong. Meanwhile, at its rest position, the hammer is held away from the gong on account of the spring attached to its arm. This is an anchored arm.

Process of the working of an electric bell

Now that you have an understanding of the important parts in an electric bell, the step-by-step process of the working of the electric bell is described below:

  • The switch is pressed and current flows through the circuit.
  • The electromagnet is powered and generates a magnetic field that attracts the iron strip towards it.
  • The striker strikes the gong (bell).
  • When the striking arm strikes the gong, the contact is broken and the current stops flowing through the circuit.
  • This causes the electromagnet to lose its magnetic field.
  • The connected spring arm returns the striker to its original rest position.
  • The contact is restored and current flows through the circuit (provided the main switch is still pressed).
  • The process is repeated from the beginning.

Now we set up the Simulink and simscape block setup for the solenoid doorbell. We need to understand what are the blocks involved and why they are involved. What are their characteristics and what role they play in the doorbell simulation?

PS-Simulink and Simulink-PS converter, Scopes, Displays, Pulse generator, electrical and mechanical references, solenoid, Battery, switch, ideal Transalation motion sensor, solver configuration. These are the following simscape and Simulink blocks that are going to use in this simulation.

PS-Simulink and Simulink-PS converter: These are basically the converter from Physical systems to Simulink signals and vice versa.

Scopes: Gives the plot of the output

Pulse generator: is an analog input that has amplitude and frequency with which the input is transmitted.

Electrical and Mechanical references: is a reference block with which the system has a ground source as a base.

Solenoid: is an electromagnetic device that is represented as a block here.

Battery: is a device that has a negative and positive terminal for the electric circuit to be completed for an electric flow.

The Switch is a device the completes the electric circuit for current flow and can be controlled manually or automatically depends on the type of switch required.

Ideal Translated motion sensor: It's a type of sensor which provides the position or velocity input for the system to generate output.

Solver Configuration: It's a type of block that acts as a complete equation for where f(x) = 0 where we find the value of x and generate the output which represents the block diagram as an equation.

Before we begin the simulation we need to setup an input parameter here in pulse generator where we delay seconds should be 2 secs with amplitude 1 and Pulse time should be 4 secs to make it in half with 50% pulse width.

And here is the Full simulation with all the simscape and Simulink block system.

Output:

The input signal of the Pulse generator:

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

we going to use the same procedure as above to simulate a thermistor to sense the temperature of a heater.

Thermistor: thermal resistor is defined as a type of resistor whose electrical resistance varies with changes in temperature. Although all resistor's resistance will fluctuate slightly with temperature, a thermistor is particularly sensitive to temperature changes.

Thermistors act as a passive component in a circuit. They are an accurate, cheap, and robust way to measure temperature. While thermistors do not work well in extremely hot or cold temperatures, they are the sensor of choice for many different applications. Following is the Simulink block assembly for Thermistor based heater. And with condition follows here as :

1. 0-10 sec temperature 293

2. 10-30 secs temperature 300

3. 30-50 secs temperature 296

and you can see these details in plot basis in signal builder block where the input is inserted with these signals.

NOTE: Before we run we need to provide an integrated input in the Simulink-PS converter block to be able to read the for systems.

Simulink and simscape block design:

after running for 50 secs we need to provide the display as an input to the switch for ON and OFF conditions.

And therefore we get the output as follows:

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.