Challenge

Week -2

AIM:

  • To make a Simulink model of Doorbell using solenoid block.
  • To use a thermistor to sense the temperature of a heater & turn on or turn off the fan.
OBJECTIVE:
  • To create a situation where the switch is closed for 2 seconds and then released. Observe the physical movement of the plunger.
  • To sense the temperature of a heater by using some conditions. Temperature source: 20 °C from O 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.

Blocks used to create the Doorbell Simulink Model:

  1. Pulse Generator - Generate pulse to make the switch to on state. Parameters configured are pulse type is time-based, selected as use simulation time, amplitude = 1, Period = 4, Pulse width (% of period) = 50, with a phase delay = 0.
  2. Simulink-PS Converter - Converts Simulink System Signal to Physical System Signal.
  3. SPST Switch - Single Pole Single Throw switch to control the power supply from the source.
  4. Battery - To provide electrical supply to the solenoid.
  5. Solenoid - This moves the hammer towards the bell to make the sound.
  6. Electrical reference -This makes all electrical blocks grounded.
  7. Ideal Translational Motion Sensor - To sense the motion of the hammer with its velocity and position.
  8. Scope - To plot (Velocity - Time, Position - Time, Pulse - Time) graphs.
  9. PS-Simulink Converter - Converts the Physical system signal to Simulink System Signal.
  10. Mechanical Translational Reference - Is used to make all mechanical blocks grounded.
  11. Solver Configuration - Defines solver settings to use for simulation.

Block Diagram of the Doorbell Simulink Model:

Results of the Doorbell Simulink Model:

  • Pulse Values vs. Time:

  • Velocity Values vs. Time:

  • Position Values vs. Time:

Blocks used to Thermistor based heater fan control Simulink Model:

  1. Signal Builder - Used to provide selected inputs signal.
  2. Controlled Temperature Source - represents an ideal energy source in a thermal network that can maintain a controlled temperature difference regardless of heat flow rate. The physical signal port sets the temperature difference S. A positive temperature difference causes the temperature at port B to be greater than the temperature at port A.
  3. Thermistor - This block represents an NTC thermistor using the B-parameter equation. The resistance at temperature T is given by R(T) = RO*exp(B*(1/T-1/TO)) where RO is the Nominal resistance at the reference temperature TO, and B is the Characteristic temperature constant. The temperature T of the Thermistor is governed by the equation m*c*dT/dt = Q where Q is the net heat flow into port A, m is the mass, and c is the lumped specific heat capacity. The thermal mass m*c is calculated from the Thermal time constant t_c and the Dissipation factor K_d using the equation m*c= K_d*t_C.
  4. Voltage Sensor - It is a device that converts voltage measured between any electrical connections into a physical signal proportional to the voltage.
  5. Resistor - It is connected to measure the voltage with a minimal connected load. Resistance has a constant value.
  6. Controlled Voltage Source - It's an ideal voltage source that is powerful enough to maintain the specified voltage at its output regardless of the current passing through it.
  7. Switch - it will give continuity at once it reaches its threshold value.
  8. Ideal Rotational Motion Sensor - it is a device that converts an across variable measured between two mechanical rotational nodes into a control signal proportional to angular velocity or angle. The sensor is ideal since it does not account for inertia, friction, delays, energy consumption, etc.
  9. Electrical Reference - To ground the electrical model.
  10. Battery - To provide electrical supply to the Thermistor.
  11. Thermal Reference - This represents a reference point in a thermal network where the temperature equals absolute zero.
  12. Mechanical rotational reference - represents a mechanical rotational reference point, that is, a frame or ground.
  13. DC Motor - This block represents a DC motor's electrical and torque characteristics. The block assumes that no electromagnetic energy is lost, and hence the back-emf and torque constants have the same numerical value when in SI units. Motor parameters can either be specified directly or derived from the no-load speed and stall torque. If no information is available on armature inductance, this parameter can be set to some small non-zero value. When a positive current flows from the electrical + to - ports, a positive torque acts from the mechanical C to R ports. Motor torque direction can be changed by altering the back-emf or torque constant sign.
  14. Solver configuration - Defines solver settings to use for simulation.
  15. Simulink-PS converter - converts the Simulink input signal to a Physical Signal.
  16. PS-Simulink Converter - Converts the Physical input Signal to a Simulink output signal.
  17. Display - to display the voltage value.
  18. Scope - To plot the temperature, voltage, velocity, and angular displacement values.
  19. Constant - Provides a constant value input.

Block Diagram of Thermistor based heater fan control Simulink Model:

Results of Thermistor based heater fan control Simulink Model:

  • Signal Builder:

  • Temperature vs. Time:

  • Voltage Values vs. Time:

  • Angular Velocity Values vs. Time:

  • Angular Displacement Values vs. Time:

Links for the Modules:

https://drive.google.com/file/d/1aMUdiAoBw2E3vMuSTYYvOXanMfyRNn6H/view?usp=sharing

https://drive.google.com/file/d/1ZDvmyglzFJFU-Zfg0uJYwUw3Rb7xF-rV/view?usp=sharing

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.