Professional Documents
Culture Documents
TEMPERATURE CONTROLLER
Group 12
Name Student ID
Vu Minh Hieu 20181885
Nguyen Ngoc Huy 20181893
Nguyen Duc Duy 20181880
Pham Trung Kien 20181897
Hanoi,2021
I. REQUIREMWNTS AND SPECIFICATIONS:
1.1Overview of the Design:
In this project, we want to design a Temperature controller control any
device according to its requirement for some industrial application which
including the following criteria:
✓ Fundamental knowledge and the structure performed by block diagram.
✓ Electrical components and microprocessor selection.
✓ Designing power supply, user interface and communication.
1.2Spercification:
Specification Table:
Criteria Value
Size 84*72*30(mm)
2.2Components selection:
2.1.1 Input devices:
a. Temperature sensor:
- Requirements:
▪ the divice requires to detect temperature with small deviation.
▪ The range of the temperature is -30 to 2000C
▪ The error is small.
▪ The temperrature controller can operate with many types of
temperature sensor.
➢ Choose the sensor:
✓ RTD: Pt100, Pt1000
✓ Thermocouple: K, J, R, S
2.1.2 Output devices:
a. Relay:
- Requirements: Relay has high switching speed, energy saving, no noise
during operation, no ignition.
Solid state relay is suitable for this project because:
• Fast switching speed.
• Require low power consumption to energy.
• No noise and no ignition during operation, can create soft
switching.
- To control the temperature, the heating capacity of the heating rod is
controlled by using the SSR (Solid State Relay) connected to the
Microcontroller.
- Choose: FUTEK SSR – 40DA suitable for the voltage range and
required, easy to use and cheap.
Technical parameters:
o Input voltage: 3-32 VDC
o Input current: 75mA (12V)
o Output voltage: 24 – 380VAC
o Max output current: 40A
2.1.4 Microcontroller:
As following the schematic , our group choose a microcontroller which should be
compatible with criteria as mentioned below:
e. Button:
In order to serve the most convenient experiences for users, which easier
to do set functions we decided to select the push button instead of hold
button. We use R13-507 which has multiple choice of color to distinguish.
Requirements:
- Temperature ranges from 0 to 400° 𝐶
- Measuring K-type thermocouple based on using AD8495 thermocouple
amplifier
- Output 5mV/ᵒC to the ADC from 40uV/ᵒC
o ESD protection
D1 and D2 are reverse biased under normal operating conditions.
However, if a pulse occurs that raises the input voltage above the rail
voltage the top diode, D1, will conduct. Similarly, if the voltage falls
below the ground voltage, the other diode, D2, will conduct.
=> Using Low-leakage double diode BAV199
o Input filter
1 1
𝑓𝑐𝑚 = = = 15.9𝑘𝐻𝑧
2. 𝜋. 𝑅4. 𝐶𝐶𝑀𝐴 2. 𝜋. (10𝐾Ω). (1𝑛𝐹)
1 1
𝑓𝑑𝑖𝑓𝑓 = =
2. 𝜋. 𝑅4. (𝐶𝑑𝑖𝑓𝑓 + 0.5𝐶𝐶𝑀𝐴 ) 2. 𝜋. (10𝐾Ω). (10𝑛𝐹 + 0.5𝑛𝐹)
= 1.52𝑘𝐻𝑧
o AD8495 with gain of 122
Amplifiers A1, A2, and A3—and the resistors shown—form an
instrumentation amplifier that amplifies the K-type thermocouple's output with
a gain appropriate to produce an output voltage of 5 mV/°C. Inside the box
labeled "Ref junction compensation" is an ambient temperature sensor.
• RTD input
Requirements:
- Supply voltage 5VDC
- RTD temperature range: -50ᵒC to 130ᵒC
- RTD resistance range 80.3Ω to 150Ω
- Output: 0V to 2.048V
Calculation
At -50℃ the RTD resistance is 80.3Ω and the voltage across it is: 100uA *
80.3 Ω = 8.03 mV
At 125ᵒC the RTD resistance is 148Ω and the voltage across it is: 100uA *
150 Ω = 15 mV
2.048𝑉−0𝑉
According to datasheet => gain = = 294
15𝑚𝑉−8.03𝑚𝑉
o Input filter
1 1
𝑓𝑐𝑚 = = = 15.9𝑘𝐻𝑧
2. 𝜋. 𝑅3. 𝐶𝐶𝑀𝐴 2. 𝜋. (10𝐾Ω). (1𝑛𝐹)
1 1
𝑓𝑑𝑖𝑓𝑓 = = = 1.52𝑘𝐻𝑧
2. 𝜋. 𝑅3. (𝐶𝑑𝑖𝑓𝑓 + 0.5𝐶𝐶𝑀𝐴 ) 2. 𝜋. (10𝐾Ω). (10𝑛𝐹 + 0.5𝑛𝐹)
• ADC
Using ADS1248:
- Delta-sigma 24-bit ADC
- Analog and Digital supplies: 2.7 V to 5.25 V
- PGA gain up to 128
- Analog input voltage: -1.6 to 0.3 V
o Pin schematic
• Input Isolator
o ISO7341 Automotive, low-power, quad-channel
The entire circuit constitutes a single-ended,
low-voltage system in which a digital isolator connects the SPI
interface of a controller with the SPI interface
of a data converter
o Schematic
• Cold-junction-compensation
o LMT70 Precision Analog Temperature Sensor
3.Output block
3.1.Analog output
a.The design requirements:
•ESD protection
TVS:protect the application against transient overvoltage
b.Solutions:
-DAC8760
+User-selectable: Voltage or Current Output
+12V supply voltage
+Vout:0-10V
+Iout:0-20mA
+16 bit resolution
-ISO7641: in order to maintain isolation from the host controller, the digital signals
used to control the DAC must be isolated through a digital isolator.
+ Operates From 2.7-V, 3.3-V, and 5-V Supply and Logic Levels
+ The ISO7641 is a 25 MBPS digital isolator that features >4 kV galvanic isolation.
c.Calculation:
From the datasheet Vce at saturation mode is 0.2V when 𝐼𝐹𝑇 =20mA and collector
current 𝐼𝐶 = 1𝑚𝐴.
Choose R1:
3.3−1.4−0.4 3.3−1.2−0.4
-> R1=R3= < R6<
0.02 0.02
-ULN2803:
+The relationship between Vce(sat) and collector current:
. +From the figure 8, with 500-mA-Rated Collector Current,the maximum Vce(saturation) is
1.5V,then the input voltage of the coil is Vcoil=12-1.5=10.5V > 9V (Pick-up voltage VDC max).
2.Communication:
-To isolated for circuit, we use RS485 communication as MAX3485ESA
3.2 Software Design:
I. User interface
Press button Mode and hold 2 seconds to move to Unit Control.
1. IDLE Mode:
Starting at IDLE, press SET for 2 seconds to move to Config Mode (including
Control Mode, OF/OFF Mode, Alarm Mode, PID Parameter, Change Value).
2. Config Mode:
There are 5 smaller function blocks in Config mode: Setpoint, Control Mode,
ON/OFF Mode, Alarm Mode, PID Parameter, Change Value.
We press SET button and can change between each block in sequence: Setpoint-
>Control Mode->ON/OFF Mode->Alarm Mode->PID Parameter-> Change
Value.
(When from IDLE to Config mode, we will be at the setpoint mode first)