ISD LAB Group 1
ISD LAB Group 1
Group 1
SUBHARANJAN DE 10905518009 08
Experiment- 01
(i) Theory
° (i.i) WHAT IS ARDUINO?
NTC thermistors are the most common, and that’s the type we’ll be
using in this tutorial. NTC thermistors are made from a
semiconducting material (such as a metal oxide or ceramic) that’s
been heated and compressed to form a temperature sensitive
conducting material.
This equation can be rearranged and simplified to solve for R2, the
resistance of the thermistor:
(iii.i) Connect the thermistor and resistor to your Arduino like this:
After connecting the circuit above, upload this code to your Arduino
to output the temperature readings to the serial monitor in
Fahrenheit:
int ThermistorPin = 0;
int Vo;
float R1 = 10000;
float logR2, R2, T;
float c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-
07;
void setup() {
Serial.begin(9600);
}
void loop() {
Vo = analogRead(ThermistorPin);
R2 = R1 * (1023.0 / (float)Vo - 1.0);
logR2 = log(R2);
T = (1.0 / (c1 + c2*logR2 + c3*logR2*logR2*logR2));
T = T - 273.15;
T = (T * 9.0)/ 5.0 + 32.0;
Serial.print("Temperature: ");
Serial.print(T);
Serial.println(" F");
delay(500);
}
° Serial Monitor Output
(iv.ii) To display the temperature in degrees Celsius, just comment
out line 18 by inserting two forward slashes (“//”) at the beginning
of the line.
This program will display Celsius and Fahrenheit at the same time:
int ThermistorPin = 0;
int Vo;
float R1 = 10000;
float logR2, R2, T, Tc, Tf;
float c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-07;
void setup() {
Serial.begin(9600);
}
void loop() {
Vo = analogRead(ThermistorPin);
R2 = R1 * (1023.0 / (float)Vo - 1.0);
logR2 = log(R2);
T = (1.0 / (c1 + c2*logR2 + c3*logR2*logR2*logR2));
Tc = T - 273.15;
Tf = (Tc * 9.0)/ 5.0 + 32.0;
Serial.print("Temperature: ");
Serial.print(Tf);
Serial.print(" F; ");
Serial.print(Tc);
Serial.println(" C");
delay(500);
}
° (iv.iii) CODE FOR LCD OUTPUT OF TEMPERATURE READINGS
#include <LiquidCrystal.h>
int ThermistorPin = 0;
int Vo;
float R1 = 10000;
float logR2, R2, T;
float c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-07;
void setup() {
Serial.begin(9600);
}
void loop() {
Vo = analogRead(ThermistorPin);
R2 = R1 * (1023.0 / (float)Vo - 1.0);
logR2 = log(R2);
T = (1.0 / (c1 + c2*logR2 + c3*logR2*logR2*logR2));
T = T - 273.15;
T = (T * 9.0)/ 5.0 + 32.0;
lcd.print("Temp = ");
lcd.print(T);
lcd.print(" F");
delay(500);
lcd.clear();
}
° LCD Display Output
(v) Different Applications of
Temperature Sensors
Well,if the point of view is accuracy then RTD's can be used but as
our project is based on home applications so,thermistor is a much
safer option.
(vii) Reference
(vii.i) https://www.wwdmag.com/water/7-basic-types-temperature-
measuring-sensors
(vii.ii) https://circuitdigest.com/electronic-circuits/heat-sensor
(vii.iii) https://youtu.be/-_XkGju35MI
Experiment 04
(i)Theory
The foil type strain gauges (Figure #1) are very common in which a
resistive foil is mounted on a backing material. These are available
in a variety of shapes and sizes for different applications. The
resistance of the foil changes as the material to which the gauge is
attached undergoes tension or compression due to change in its
length and diameter.
But when strain is applied to the strain gauge, the resistance of the
strain gauge sensor changes, the Wheatstone bridge becomes
unbalanced, a current flows through the voltmeter. Since the net
change in the resistance is proportional to the applied strain,
therefore, resultant current flow through the voltmeter is
proportional to the applied strain. So, the voltmeter can be
calibrated in terms of strain or force.
In the above circuit, we have used only one strain gauge. This is
known as ‘quarter bridge’ circuit. We can also use two strain gauges
or even four strain gauges in this circuit. Then this circuit is called
‘half bridge’ and ‘full bridge’ respectively. The full bridge circuit
provides greater sensitivity and least temperature variation errors.
I
O = (EO - eO)/R2 [1]
Where: E O - diode reference voltage: 1.235V ±1% (LT1034-1.2 or
LT1004-1.2)
eO - offset of amplifier A1 (~0)
R2 - current set resistor
Resistor r is laser trimmed for each unit using the following equation:
Where: Si
= sensor span value (V) at a reference excitation current (IO =0.996
mA).
r = resistance in (k)
RF=100K feedback resistor
Vamp=amplified output
(x.ii)Self-Test Module
All components have been used with utmost care and being worked
under safe voltage permissible
(xii) Reference
(xii.i) https://www.maximintegrated.com/en/design/technical-
documents/app-notes/7/7130.html
(xii.ii) https://www.yourelectricalguide.com/2019/06/strain-gauge-
working-principle-load-cell-rosettes-applications.html
Experiment No.-03
Aim- Estimate the time to empty the tank for the level control
system(Gravity flow)
Objective- To estimate the time to empty the tank for the level
control system(Gravity flow)
(i) Theory
(i.i) Control System
Definition: A combination of various elements connected as a unit
to direct or regulate itself or any other system in order to provide a
specific output is known as a Control system. We know controlling is
basically known as the act of regulating or directing.
Fluid tank: Also known as a storage tank, used to hold the desired
amount of fluid.
Measurement system: Senses the level of the fluid inside the tank.
Controller: The controller is used to maintain the desired level by
starting and stopping the pump when gets information by the
measurement system.
Gravity Flow: The water from the tank is allowed to flow by gravity.
GPM/GPH Flow based on PVC Pipe Size
(i.viii) Coefficient of Discharge
Coefficient of discharge is stated as the ratio between the actual
flow discharge and theoretical flow discharge. It is also referred to
as the ratio of mass flow rate at nozzle's discharge edge to the
standard nozzle which enlarges an exact working fluid maintained
at the similar initial conditions and pressures.
It has no dimensions and depends directly on the rate of flow and
velocity of working fluid. It is symbolized by Cd and its value is
different for each fluid depending on the kind of measurement of
flow. In nozzle flow measurement, the efficiency of Cd is higher
when compared to the flow measurement at the orifice. The
discharge coefficient is raised by increasing the overall pressure
ratio and reducing the convergence semi angle. Also, the range of
Cd is commonly superior in supercritical series.
Express the relation of discharge coefficient
Cd = 0.81
(ii) Procedure
Total Time Estimate the total actual time required to empty the tank
by selecting
•Tank Radius
•Tank Height
•Pipe diameter
The total time taken to empty the tank is then scaled to desired
time as mentioned by deciding a suitable factor toempty the Tank.
(iii) Simulation
Readings
(iii.i)
(iii.ii)
Graphs
(iii.iii)
(iii.iv)
(iv) Conclusion
After seeing the graphs and the outputs we can conclude that:
All observations and outputs have been thoroughly checked and the
experiment was done with accuracy and knowing the complications
of real world .
(v) Reference
https://flexpvc.com/Reference/WaterFlowBasedOnPipeSize.shtml
Experiment no.-04
(i)Theory
In process industry the information about the event which may lead
to a catastrophic situation need to be acknowledged with utmost
care. The alarm annunciator is such a component which will inform
operator using audio and visual indication. As we all are aware that
the process plants are divided into two major areas viz. plant area
and control room area. Generally control rooms are always away
from the plant for safety reasons. The operators who are operating
the plant are remotely operating the plant seating in the control
room. It will not be always possible for the operator to monitor the
process parameters continuously. In case, due to malfunction of
regulatory controller or any process component, the operator has
to take control of the plant and drive it smoothly to the safe region.
The main hurdle in this crucial task is to indicate the occurrence of
the event to the operator in shortest possible time. It is also true
that the attention of the operator needs to be drawn to the console
in such a situation. This task can be accomplished by two ways, by
flashing a window or switching on the hooter.
1)Select Application.
2)Select number of alarms, Alarm type, ISA Sequence and Min-Max
limit to check the alarms. Then click "Next".
3)In Next step select require symbols from Symbol Library to make
the connection wiring diagram for the alarm annunciator. And click
"Check Connection".
4)Once the connection is done, click "Next Level".
5)In this level, first make sure your system sound is not muted / very
low for alarm. Then check functionality of all windows and
acknowledge it using "Test" and "ACK" button.
6)Select the input from given slider to run the plant and click
"submit". 7)If any alarm is generated then click "ACK" button to
acknowledge it. (If ISA Sequence is 2A then click "Reset" button.).
8)To check functionality of all alarms, please select different input
values from slider and click "Take Action" to create abnormal and
normal conditions for alarm.
9)Check abnormal and normal condition for each alarm you
selected, and then click "Shutdown Plant" to stop the experiment.
Note : You have 3 attempts to shutdown the plant without checking
all alarms
(iii)Block Diagram
Fig 3
Fig 4
(v) Simulation
When the level is >80%In the second case, we are seeing that in this
situation the tank is completely filled with water. The value of one
process variable has crossed the set point (value>80% of LSH).So
the alarm will ring and the led will be flashed. Now, we have to use
the acknowledge button and have to take required action to set the
process plant in normal state. At this point the input for user
demand is 0% and the inlet for input source is 90%.Now we have to
use the acknowledge button and have to take required action to set
the process plant in its normal state
(vii) Reference
•https://plchla-coep.vlabs.ac.in/exp/annunciator-flow-
control/references.html
Experiment number- 05
(i)Theory
The principle of the project lies in the functioning of the PIR Sensor.
A PIR or Passive Infra-red Sensor, as the name indicates, doesn’t
emit infrared rays but only detects them.
All humans emit infrared radiations in the form of body heat. A PIR
Sensor will capture the difference between the room temperature
and body temperature in the form of change in infrared radiation.
(iii)Circuit Design
(iii.i)Components
•AT89C51 Microcontroller
•AT89C51 Programmer Board
•11.0592 MHz Quartz Crystal
•2 x 22pF Ceramic Capacitor
•2 x 10KΩ Resistor
•10µF Electrolytic Capacitor
•Push Button
•16 x 2 LCD Display
•3 x 1KΩ Resistor
•10KΩ POT
•Passive Infrared Sensor (PIR Sensor)
•L293D Motor Driver
•Motor
•Connecting Wires
(iii.ii)Component Description
°PIR Sensor
For proper operation, the PIR sensor must be given a warm up time
of 20 to 60 seconds. During this time, the PIR sensor calibrates itself
.If the sensor is not given enough calibrating time, the output of the
PIR sensor may be erroneous.
°L293D Motor Driver
Motor drivers act as current amplifiers since they take a low current
control signal and provide a higher current signal which drives the
motors.
Once the setup is done, the PIR sensor is now ready to detect the
human movement within its range. At this time, the microcontroller
will display the message as Scanning on the LCD display. If there is
any human movement in front of the PIR Sensor, it will detect the
movement and indicate the microcontroller by making the data out
pin Logic HIGH.
Now, the microcontroller will open the door by initialising the motor
driver. A welcome message is displayed on the LCD. The door
remains open as long as the data out from the PIR Sensor is high.
When there is no human movement, the data out of the PIR Sensor
becomes LOW. Once the data out is LOW, after a small delay, the
door is automatically closed and comes back to initial position.
(v)Code
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
#define PIR_sensor 14
#define m11 0
#define m12 1
void setup()
{
lcd.begin(16, 2);
pinMode(m11, OUTPUT);
pinMode(m12, OUTPUT);
pinMode(PIR_sensor, INPUT);
lcd.print(" Automatic ");
lcd.setCursor(0,1);
lcd.print(" Door Opener ");
delay(3000);
lcd.clear();
lcd.print("CIRCUIT DEGEST ");
delay(2000);
}
void loop()
{
if(digitalRead(PIR_sensor))
{
lcd.setCursor(0,0);
lcd.print("Movement Detected");
lcd.setCursor(0, 1);
lcd.print(" Gate Opened ");
digitalWrite(m11, HIGH); // gate opening
digitalWrite(m12, LOW);
delay(1000);
digitalWrite(m11, LOW); // gate stop for a while
digitalWrite(m12, LOW);
delay(1000);
lcd.clear();
lcd.print(" Gate Closed ");
digitalWrite(m11, LOW); // gate closing
digitalWrite(m12, HIGH);
delay(1000);
digitalWrite(m11, LOW); // gate closed
digitalWrite(m12, LOW);
delay(1000);
}
else
{
lcd.setCursor(0,0);
lcd.print(" No Movement ");
lcd.setCursor(0,1);
lcd.print(" Gate Closed ");
digitalWrite(m11, LOW);
digitalWrite(m12, LOW);
}
}
(vi) Applications
•Automatic Door Opening System can be implemented where the
door is automatically opened and closed without any manual
control.
•An automatic door system with sliding doors can be useful for aged
and disabled.
•DISADVANTAGES:
Thus, we can conclude that this is a simple and low cost architecture
of automatic door opening system but having lots of benefits such
as we can conserve energy, reduces human efforts, saves time etc.
(ix) Reference
https://circuitdigest.com/microcontroller-projects/automatic-
door-opener-project-using-arduino
Experiment number-06
Aim- Electronic circuit design with pcb layout using suitable software.
(i) Theory
A fridge door open alarm circuit is explained with its detailed
working and circuit. The objective of this circuit is to produce an
audible alarm when the fridge is left open for more than a preset
time. This versatile door alarm is made possible with the use of two
555 timer IC’s.
When the fridge door is closed, the resistance of the LDR is almost
1MὨ. The output voltage of the potential divider appears across the
capacitor and it remains in charged condition (Voltage greater than
2/3Vcc) making the output LOW. When the Fridge door is open, the
light falls over LDR which lowers down the resistance of LDR and
causes the capacitor to discharge. After this (Voltage lower than
2/3Vcc), the output starts to oscillate at a certain frequency and
output is HIGH. Again, the capacitor charges and reaches a
threshold continued by the discharge of the capacitor. This
continues till the LDR resistance goes high which happens in the
absence of light. Now, the second NE555 timer IC starts to oscillate
and the output switches between HIGH & LOW causing the
connected buzzer & LED to beep & blink in a fluctuating pattern
respectively, which is combinational because of the oscillations of
the first timer and the second timer internal oscillation. During the
HIGH condition of the first timer output, the second timer RESET will
trigger. Thus, the capacitor C2 charges (Voltage higher than 2/3Vcc)
and output go LOW. In a short time span the capacitor starts to
discharge (Voltage lower than 2/3Vcc) causes the output HIGH.
Hence, the buzzer connected to output generates a beeping sound.
(iv) Applications
Commonly used in appliances such as refrigerators, Temperature
Controlled Freezers & beverage coolers to ensure that the appliance
is not left open for too long by accident.
(v) Conclusion
So we can conclude that the application is much useful for
refrigerators and other cooling devices being used to save electricity
.All the instruments have been worked under safe voltage and
current which proper care and precautions.
(vi) Reference
https://www.google.com/amp/s/circuits-diy.com/amp/how-to-make-
fridge-door-alarm-circuit-using-555-timer-ic/