Week -2
- Make a Simulink model of Doorbell using solenoid block with the following details:
solution:



block used:
1.pulse generator:

2. Battery
3. Switch
4. solver configuration
5. Electric reference
6. Mechanical traslational reference
7. ideal traslational motion sensor
8. Soleniod
9. Display
10. scope
11. PS simulink converter
Theory
Pulse generator:A MATLAB file used for generating pulses of various kinds including are gaussian, square, triangle, monocycle, biexponential, mexican hat, sinc, double sinc, sinc squared, sweep, and windowed sweep. Inputs control the length, sampling frequency, and decay, along with optional arguments for modulation and frequency control on some pulse shapes. The program has been used for an assortment of applications including, DSP, seismology, acoustics, and communication modeling.
solver configration: solver configuration is aform of equation
Ideal traslational 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.
Mechanical traslational reference:
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.
solenoid:

![]() |
= | solenoid magnetic flux density |
![]() |
= | magnetic constant |
![]() |
= | number of turns |
![]() |
= | current |
![]() |
= | length of the solenoid |
A solenoid is a device comprised of a coil of wire, the housing and a moveable plunger (armature). ... When an electrical current flows through this wire, a strong magnetic field/flux is created. The housing, usually made of iron or steel, surrounds the coil concentrating the magnetic field generated by the coil.
PS-simulink converter:
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.
2. 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:







