Week -2
1.) Simulink model of Doorbell using solenoid block
- use block
- scope
- ps to simulink converter
- simulink to ps converter
- switch
- pulse generator
- battery
- solenoid
- ideal Translational Motion Sensor
- Electrical Reference
- Solver Configuration
- Mechanical Translational Reference
- Method
- Frist select solenoid block -ve connection is connected to battery -ve porstion.and +ve connection is connected to switch through battery +ve porstion.
- and solenoid C and R terminal is connected to motion sensor R and C port.
- and also connected to mechanical reference to solenoid block porstion.
- motion sensor connected to ps to simulink and after connected to scope.
- and also connected to battery porstion electrical reference.
- input side connected to pulse generator and scope.
- the connect also simulink to ps connected and to connet ps port(switch).
- this diagram to connect to solver configuration.
- frist to pulse generator the pulse and pulse show in scope. converting to simulink thrugh PS switch port.
- solenoid producing electromagnetic field around a movable core, called an armature.
- When compelled to move by the electromagnetic field, the motion of that armature opens and closes valves or switches and turns electrical energy into mechanical motion and force.
- and show in scope.
2.)temperature of a heater & turn on or turn off the fan
- use block
- Signal Builder
- Controlled Temperature Source
- Temperature Sensor
- Thermal Reference
- Temperature Sensor
- Solver Configuration
- Display
- Switch
- Constant
- Scope
- Method
- Frist Set Signal builder Block Set the Signal is 20 °C from 0 to 10 seconds, 27 °C from 10 to 30 seconds, 23 °C from 30 to 50 seconds.
- And After controlled temperature source connected to temperature sensor.and also connected to thermal reference.
- signal builder is ps to simulink converter through connected to controlled temperature source.
- temperature sensor out connected to switch.
- switch is two way 1 is on and 0 is off show is constant block coonected to switch.
- switch out connected to scope show graph.
- and also connected to display.