0% found this document useful (0 votes)
6 views30 pages

EEE305 ASSINMENT1 19321037 Mumtahina Tasnim Purno.

The document outlines a project focused on designing and implementing a closed-loop feedback temperature control system using LM35 and DS18B20 sensors. It details the components, circuit design, calibration, and the digital logic used to control a relay based on temperature readings. The project aims to enhance understanding of control systems and motivate further exploration in the field.

Uploaded by

Obeid Noor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views30 pages

EEE305 ASSINMENT1 19321037 Mumtahina Tasnim Purno.

The document outlines a project focused on designing and implementing a closed-loop feedback temperature control system using LM35 and DS18B20 sensors. It details the components, circuit design, calibration, and the digital logic used to control a relay based on temperature readings. The project aims to enhance understanding of control systems and motivate further exploration in the field.

Uploaded by

Obeid Noor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

c

The Temperature Box: An Introductory Control System Project


Group: C
Mumtahina tasnim purno
ID- 19321037
Objective
● Problem based learning approach
● To design and implementation of a close loop feedback temperature control system
● Analogue and digital circuit implementation
● Compare and differentiate by LM35 and DS18B20
● Efficiency comparison
COMPONENTS OF THIS PROJECT
● Sensors LM35 and DS18B20.
● Scale and shift circuit
● Relay
● LED
● Dc sources
● Arduino uno
● Resistor
● Potentiometer
BLOCK DIAGRAM
ANALOGUE CONTROLLER (LM35)
LM 35 Characteristics
∙ It is a temperature sensor that establish a relationship
between Celsius and Voltage
∙ It can operate in between (-50° to 150° Celsius )
∙ Positive biasing ( 4-30 Vdc ) , Negative biasing ( GND )

Project Overview
∙ We change Celsius values to Fahrenheit values for this
temperature box experiment
∙ We consider 78.8°F as low temperature and 98.6°F for
high temperature. We note down output voltage for each
1.8 degree Fahrenheit change
∙ We calibrate the LM35 sensor twice and take the average
voltage value for more precise result
Sensor calibration
Data = voltage change with respect to Graph = Voltage vs
temperature Temperature(F)
Temparature (C) Temparatue(F) Voltage(V)
26 78.8 .269
27 80.6 .2785
28 82.4 .2878
29 84.2 .2945
30 86 .301
31 87.8 .306
32 89.6 .3105
33 91.4 .315
34 93.2 .321
35 95 .3268
36 96.8 .331
37 98.6 .3365
LM35 analogue circuit
DS18B20
Scale and Shift Circuit
● Shifting portion inverts the input voltage from a positive value to a negative value

● Scaling portion increases the gain

● The input is coming from the calibrated temperature sensor

● Two Op-amps are used to achieve this purpose


Scale and Shift Circuit
Scale and Shift
Scale and Shift Circuit
Temperature (in Celsius) Temperature (in Fahrenheit) Voltage at the Output (V)
26 78.8 2.01
27 80.6 2.56
28 82.4 2.85
29 84.2 3.00
30 86 3.46
31 87.8 3.09
32 89.6 4.06
33 91.4 4.26
34 93.2 4.37
35 95 4.54
36 96.8 4.61
Comparison Circuit
COMPARISON CIRCUIT
●Scaled and shifted sensor voltage is compared to
the predetermined high and low temperatures.

●A decision is made (using digital logic) whether to


open or close the relay and, hence, turn the device
off or on.

● VH denote the voltage corresponding to the


highest desired temperature and VL denote voltage
corresponding to the lowest desired temperature.

●The decision is based on three rules

1. The relay is on if VT < VL < VH.

2. The relay is off if VT > VH > VL.

3. The relay state is unchanged if VL < VT <


VH
Voltage comparison

● If non inverting terminal voltage > inverting


terminal voltage [ v2>v1]
Output will be +vcc
● non inverting terminal voltage < inverting
terminal voltage [v1>v2]
Output will be –vcc
Vt is compared with VH and VL
VH=3.3V and VL=1.95V
Vt is varying with temperature
DIGITAL AND LOGIC IMPLEMENTATION
DIGITAL LOGIC
RELAY
Mechanism of Relay
When the base of the BJT will get current, emitter and collector terminal will
be shorted.

In initial condition relay is in normally close mode. That mean relay will allow
the current to flow and turn the light on.

When the VT > VH relay will switch to normally open mode which will
disconnect the circuit and cause the light to turn off. And when VT < VL relay
will again switch back to normally close mode and the light will turn back on.
Complete circuit with LM35 temperature sensor
When temperature is 28°C i.e. VT<VL<VH and Lamp turns On
When temperature is 32°C i.e. VL<VT<VH and Lamp should remain like its previous state but it becomes
off.
When temperature is 36°C i.e. VL<VH<VT and Lamp become off
Complete circuit using DS18B20 temperature
sensor
Temperature increased but no voltage is generating from
DS18B20
ARDUINO CODE FOR LM35
int sensor = A0, relay = 7, if (temp >=35){
adc_in=0; digitalWrite(relay, LOW);
float temp=0; Serial.println("Relay off");
void setup () { }
Serial.begin(9600); if (temp <=30){
pinMode(relay, OUTPUT); digitalWrite(relay, HIGH);
} Serial.println("Relay on");
void loop() { }
adc_in=analogRead(sensor); delay(1000);
temp=
((adc_in*5000.0)/1023.0)/10.0;
Serial.println(temp);
}
ARDUINO CODE FOR DS18B20
void loop(void)
#include <OneWire.h>

{
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 5
sensors.requestTemperatures();
temp=sensors.getTempCByIndex(0);
OneWire oneWire(ONE_WIRE_BUS);
Serial.println(" C ");
Serial.println(temp);
DallasTemperature sensors(&oneWire); if (temp >=35){
int relay=7; digitalWrite(relay, LOW);
float temp=0; Serial.println("Relay off");
}
void setup(void) if (temp <=30){
{
digitalWrite(relay, HIGH);
Serial.begin(9600);
Serial.println("Relay on");
pinMode(relay,OUTPUT);
}
sensors.begin();
delay(1000);
}
}
Conclusion
● Helps to know about close loop control configuration and feedback
system which can enhance understanding of control course material.

● Motivates to know more about control system and to continue in a


control system curriculum.
THANK YOU

You might also like