Week -2
1)
Aim : Make a Simulink model of Doorbell using solenoid block.

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.
Simulink Block diagram:

Procedure:
- The block diagram for the simulink block diagram is created in simulink.
- Pulse generator is used to create the pulse. we have given the pulse of 2 sec is created with interval of 2 sec.
- Input signals where converted to physical signals using simulink-ps coverter.
- Battery is used for the voltage source.
- The electrical reference block is used for thr ground.
- Solver configuration block is used specify the parameter to start the stimulation.
- Soleniod block is used to re3plicate the door bell resistor and solenoid.
- Ideal translational motion seensor is used to onverts an across variable measured between two mechanical translational nodes into a control signal proportional to velocity or position.
- Ps-simulink convertor is used to convert physical signals into simulink output signals.
- The results is seen using the scope block.
Results :

In the results we can see the pulse we have given in the pulse generator where the switch is closed for 2 seconds and then released and also we can observe the change in displacement of the ideal motion sensor.
2)
Aim : To Use a thermistor to sense the temperature of a heater & turn on or turn off the fan.
Simulink Block diagram:

Procedure :
- Singnal builder block is used to give the siganls asper the requirement.

- simulink to ps coverter is used to convert input signals to physical signals.
- Temperature is given using the controlled temperature block.
- Thermistor block is used to measure the temperature.
- Battery block is used as the power source .
- The electrical reference block is used for thr ground.
- Solver configuration block is used specify the parameter to start the stimulation.
- Voltage block is used to convert voltage measured between two points of an electrical circuit into a physical signal proportional to the voltage.
- Then ps-simulink coverter is used to convert physical signal into simulink output signal.
- switch is used to process the signals.
- scope and display to view the results.
Results :

As we can see the fan is on for 10-30 sec as the temperature is above 25 degree celcius as per the requirement.
https://drive.google.com/file/d/1lnR1r5SvwB2yIVpjOGQpblTAZyTPOoUo/view?usp=sharing
https://drive.google.com/file/d/1x47Kgvubqvm11XQMZyh0mLkqNVyhdXSh/view?usp=sharing