Prepared by: Ibrahim Yasin Ibrahim Abdulhaq

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

Model-based PID tuning methods Two degree of freedom controllers
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Objectives Control Terminology Types of controllers –Differences Controls in the real world –Problems –Response time vs. stability.
Control of Salinity EAS 199B Modifications of ENGR 121 living with the lab.
CHAPTER V CONTROL SYSTEMS
3442 Industrial Instruments 2 Chapter 9 Controller Principles
IRS2980 Buck LED Driver Peter Green Under embargo until 10/25/11.
1. Output signal alternates between on and off within specified period Controls power received by a device The voltage seen by the load is directly proportional.
By: Mark Bright and Mike Donaldson.  Project Summary  System Block Diagram  Project Goals  4 Week Progress ◦ Engine side ◦ Thermo side.
Motor Control of an Oscillating Pendulum Nick Myers and Chirag Patel March 9, 2004 Advised by: Dr. James Irwin and Mr. Jose Sanchez Bradley University.
By: Mark Bright and Mike Donaldson.  Project Goal  Applications of our system  System Block Diagram  Thermal Plant Overiew  Current Progress ◦ Engine.
Control Theory (2) Jeremy Wyatt School of Computer Science University of Birmingham.
The Mechatronics Design Lab Course at the University of Calgary Presented June 2, 2003.
SENIOR DESIGN 10/16.
Spectrum Analyzer Ray Mathes, Nirav Patel,
Digital to Analog Converters
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Pulse Width Modulation (PWM) LED Dimmer Circuit
Unit 12: Temperature and Thermal Energy Thermodynamics is the study of heat transformations into other forms of energy. ◦ Used to develop higher performance.
Topic 1 different attributes that characterize sensors ETEC 6405.
Proportional/Integral/Derivative Control
Lecture 5: PID Control.
Power Electronics and Drives (Version ) Dr. Zainal Salam, UTM-JB 1 Chapter 3 DC to DC CONVERTER (CHOPPER) General Buck converter Boost converter.
1 Lab 5: Controls and feedback. 2 Lab 5: Control and Feedback This embedded system uses the Photo sensor to detect the light intensity of the environment.
oPEN Simulation Environment PENSE PENSE PENSE is a simulation framework written in C++ using fully object oriented design patterns and it's designed.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 4 Standard Single Purpose Processors: Peripherals.
1 Chapter 11 Compensator Design When the full state is not available for feedback, we utilize an observer. The observer design process is described and.
ERT 210/4 Process Control Hairul Nazirah bt Abdul Halim Office: CHAPTER 8 Feedback.
IN 1900 ICT Project Final Presentation. Group name : Code Squad.
SUBMITTED BY LENIN C INTRODUCTION Railways - cheapest mode of transportation. Aims to avoid accidents. Using simple electronic components- automate.
ECE 4330 – Final Project By: John Litzenberger.  A IC temperature sensor (DS1620)  Reads through ADC (pin.0 Port A)  Feedback control for extreme conditions.
Advanced control strategies. CONTROL SYSTEMS The process parameters which are measured using probes described in the previous sections may be controlled.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
2.3 Heat capacity and specific heat capacity
ACT20X Ex isolator/ amplifier. Page 2 ACT20X (Ex isolators family) Overview - Connects to process equipment in Class/Div, or Zone 0 - Zone 2 areas - ACT20X.
DIGITAL SHOWER CONTROLLER BY NATHAN GARNER KASUN KUMARAGE.
DC motor principles Speed control Direction Stepper motor principles
CLOSED LOOP SPEED CONTROL OF DC MOTOR WITH PWM TECHNIQUE
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
EKT 451 CHAPTER 6 Sensor & Transducers.
FUNCTION GENERATOR.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
CNC FEED DRIVES Akhil Krishnan G M.Tech 1. CONTENTS 1.Introduction 2.Requirements of CNC feed drives 3.Servo motor 3.1 Servo drive control 3.2 Components.
Announcements Next class is the course evaluation
CNC FEED DRIVES.
Fan Assembly Driven by Magnetic Fields
Audio Power Amplifier Detailed Design
CHAPTER 6 MESB System Modeling and Analysis Hydraulic (Fluid) Systems
Heat to air update August 9th, 2017.
CHAPTER V CONTROL SYSTEMS
UNIT-IV Application of Special I.C’s.
Hemodialysis Lecture 3.
Copyright SwissFlow B.V.
DC-DC PWM Converters Lecture Note 5.
DC MOTOR SPEED CONTROL 1. Introduction
SPOC Automation and BECI- who are we?
Outlines : Introduction . Construction . Control .
Electric Motors.
Converter principles and modelling
Balanduino Supervisor: Dr. Raed Al-Qadi Prepared by: Nadeen Kalboneh Nardeen Mabrouk.
Dynamic Controllers for Wind Turbines
Vibration Energy Harvesting Circuit to Power Wireless Sensor Nodes
UNIT-8 INVERTERS 11/27/2018.
MicroLogix Packaged Controllers
Priyatmadi Jurusan teknik Elektro FT UGM
AC Drives Dr. Adel A. El-Samahy Department of Electrical Engineering University of Helwan.
Introduction to Motor Drives
Presentation transcript:

Prepared by: Ibrahim Yasin Ibrahim Abdulhaq SMART EQUALIZER Water temperature regulation system Prepared by: Ibrahim Yasin Ibrahim Abdulhaq Supervisors: Dr. Raed Al-Qadi Dr. Laui Malhes Dr. Haya Samaneh 23/12/2014

Introduction Aim: Utilize the available sources of hot and cold water to get a new source with a specific temperature. Project Summary: A smart faucet that provides water with a pre-specified temperature. Mixes specific ratios of the available water sources. Targets: Scientific labs. Industrial fields. Daily usage of water at home.

∆ 𝑯 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 = −∆ 𝑯 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 Thermal Equilibrium Heat energy flows from the substance with higher temperature to the substance with a lower one. Thermal Equilibrium is the state when the two mixed substances temperatures are equalized. ∆ 𝑯 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 = −∆ 𝑯 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 𝑀 𝑐𝑜𝑙𝑑 𝑤𝑎𝑡𝑒𝑟 × 𝐶 𝑤𝑎𝑡𝑒𝑟 ×∆ 𝑇 𝑐𝑜𝑙𝑑 𝑤𝑎𝑡𝑒𝑟 =− ( 𝑀 ℎ𝑜𝑡 𝑤𝑎𝑡𝑒𝑟 × 𝐶 𝑤𝑎𝑡𝑒𝑟 ×∆ 𝑇 ℎ𝑜𝑡 𝑤𝑎𝑡𝑒𝑟 ) 𝑻 𝒇𝟏 = 𝑻 𝒇𝟐

Thermal Equilibrium Cont. Relationship between mixing ratio and the final temperature of the mixture 𝑸 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 𝑸 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 = 𝑻 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 − 𝑻 𝒇𝒊𝒏𝒂𝒍 𝑻 𝒇𝒊𝒏𝒂𝒍 − 𝑻 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 Q is the volumetric flow rate

Flow Rate Controlling 𝑸=𝒗×𝑨 The volumetric flow rate of water flows in a pipe depends on: The flow velocity. The cross-sectional area of the pipe. 𝑸=𝒗×𝑨

Controlling the cross-sectional Area A small ¼” valve tied to a stepper motor: Open , Close MAX , MIN

Stepper driving circuit 0.25 A Interfacing circuit: the L297 Stepper Motor Controller IC. the L298 H-Bridge IC.

Stepper Software Interface Functions: void initialize_stepper_driver() void close_stepper(int1 STEPPER_ID) void open_stepper(int1 STEPPER_ID) void rotate_stepper(int1 Stepper_ID,int1 Direction ,int steps) int1 isMax(int1 Stepper_ID) int1 isMin(int1 Stepper_ID)

Controlling the flow velocity Use DC pumps. consumes up to 3.5A DC current TIP122, an NPN Darlington driver Transistor, up to 5 A. 1 KHz square wave with PWM techniques to change the speed of the DC motor.

DC pump Software Interface

Measuring the temperature one wire Digital Temperature Sensor - DS18B20 from Dallas. One Pin for Communication. Unique 64-Bit Address. 3.0V to 5.5V Power Supply Working Range -55°C to +125°C 9 to 12 Bits Resolution (-)±0.5°C Accuracy from -10°C to +85°C (-)Converts Temperature to 12-Bit Digital Word in 750ms from -10°C to +85°C

DS18B20 interfacing Circuit

Waterproof Temperature Sensor

Flow Meter The YF-S401 flow meter has three terminals: VCC GND OUTPUT: pulse signal each time the rotor rolls.

Ad-hoc controller The main components

Ad-hoc controller Three Main Stages : The initialization stage Outputting the suitable ratio stage The correction stage

Ad-hoc - The initialization Process Calculate all hot and cold ratios that the system can provide. Read flow meters ( hot and cold water flow) Calculate ratio If Cold ratio  hot flow / cold flow If Hot ratio  cold flow / hot flow Rotate the valve, then repeat step 1

Outputting the suitable ratio Calculate the mixing ratio: 𝑸 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 𝑸 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 = 𝑻 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 − 𝑻 𝒇𝒊𝒏𝒂𝒍 𝑻 𝒇𝒊𝒏𝒂𝒍 − 𝑻 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 Search for the nearest ratio in the pre-initialized arrays (HOT_RATIOS or COLD_RATIOS). Get Index of the nearest ratio. Rotate the stepper Index steps in the opening direction.

The correction process Reads the T_output and calculates (∆T_OD). ∆T_OD = T_Output – Tdesired Uses the  ∆T_OD and the following array to determine the number of the steps the stepper motor that should rotate: int deltas_array[7]={1,1,2,2,3,3,4}; And it indexes it using the  ∆T_OD value: deltas_index=(int)∆T_OD Example, if ∆T_OD  = 5.5 C  then deltas_array[5] = 3.

PID Controller Overview 𝑢 𝑡 = 𝐾 𝑝 𝑒 𝑡 + 𝐾 𝑖 0 𝑡 𝑒(𝑡)𝑑𝑡 + 𝐾 𝑑 𝑑 𝑑𝑡 𝑒 𝑡 𝑢 𝑡 = 𝐾 𝑝 𝑒 𝑡 + 𝐾 𝑖 0 𝑡 𝑒(𝑡)𝑑𝑡 + 𝐾 𝑑 𝑑 𝑑𝑡 𝑒 𝑡 P is the proportional gain : the sudden changes I is the integral gain : the history of the errors D is the derivative gain : predict the next error

PID Controller Cont. main components

PID Controller Cont. Semantics of our PID controller: U(t) is the percentage of the steps that the stepper motor should rotate. Let U(t) = 0.25 and MAX_STEPS=100 , rotate (0.25*100 = 25 steps) output error evaluation function 𝑒𝑟𝑟𝑜𝑟= | 𝑻 𝒐𝒖𝒕𝒑𝒖𝒕 − 𝑻 𝒅𝒆𝒔𝒊𝒓𝒆𝒅 | 𝑻 𝒉𝒐𝒕_𝒘𝒂𝒕𝒆𝒓 − 𝑻 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 [rang 0-0.5]

PID Controller Cont. P Controller: problem: oscillating. 𝑢 𝑡 = 𝐾 𝑝 𝑒 𝑡 , 𝐾 𝑝 =2 𝑠𝑖𝑛𝑐𝑒 𝑒 𝑡 𝑟𝑎𝑛𝑔𝑒 𝑖𝑠 0 −0.5 problem: oscillating. Solution: use Derivative gain to tune the oscillating

PID Controller Cont. PD Controller: 𝑢 𝑡 = 𝐾 𝑝 𝑒 𝑡 + 𝐾 𝑑 𝑑 𝑑𝑡 𝑒 𝑡 𝑢 𝑡 = 𝐾 𝑝 𝑒 𝑡 + 𝐾 𝑑 𝑑 𝑑𝑡 𝑒 𝑡 K D d dt e t = K D new_error−last_error ∆t where ∆t = 4 Starts with 𝐾 𝑝 = 1 and 𝐾 𝑑 = 4 Ends with 𝐾 𝑝 = 1.1 and 𝐾 𝑑 = 6

DC pumps Controller The main components:

DC pumps Controller Cont. Two equations to calculate the Duty Cycle of each pump : 𝐷𝑢𝑡𝑦 𝑐𝑜𝑙𝑑 𝑤𝑎𝑡𝑒𝑟 𝑝𝑢𝑚𝑝 𝐷𝑢𝑡𝑦 ℎ𝑜𝑡 𝑤𝑎𝑡𝑒𝑟 𝑝𝑢𝑚𝑝 = 𝑸 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 𝑸 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 Duty Cold water pump + Duty Hot water pump = MAX_DUTY. To maintain approximately constant flow.

DC pumps Controller Cont. Example: If 𝑸 𝒄𝒐𝒍𝒅 𝒘𝒂𝒕𝒆𝒓 𝑸 𝒉𝒐𝒕 𝒘𝒂𝒕𝒆𝒓 = 0.4 then: 𝐷𝑢𝑡𝑦 ℎ𝑜𝑡 𝑤𝑎𝑡𝑒𝑟 𝑝𝑢𝑚𝑝 = MAX_DUTY / (1+ratio) = 731 . 𝐷𝑢𝑡𝑦 𝑐𝑜𝑙𝑑 𝑤𝑎𝑡𝑒𝑟 𝑝𝑢𝑚𝑝 = 293 . Note: Duty Cold water pump + Duty Hot water pump = 1024 .

DC pumps Controller Cont. The correction process: accumulates the error in a correction factor. output the new ratio (old ratio + correction factor). This Controller FAILS – more details in the next slides

Results – Ad-hoc Controller Advantages: Disadvantages: very fast. The initial error rate is small, which limits the correction factor boundaries. System initialization. System need to be reinitialized when water pressure changes. Sudden Large changes in the water source temperatures will cause high error rate and the system will take long time to readapt.

Results – PID Controller Advantages Disadvantages: No system initialization state. very adaptable that means sudden changes in water pressure or water temperatures can be tolerated quickly. a little slower than the first controller it needs up to 40 seconds to reach the desired temp.

PID Responses

A Disadvantage of using DC pumps: Results DC-Pump poor results from this controller. reasons : hen the pump is off, the water flow is not zero. two different dc pumps which have different speed response at the same duty cycle. A Disadvantage of using DC pumps: Needs high current supply

Results We were able to achieve a 2% error rate of the range between the two sources temperature ( 60 - 20 )  ±0.8 degree We could not minimize the error rate because of: The manually isolated thermometer. The stepper motors have small range of steps between fully open and fully closed. Can’t obtain Max hot temperature edge.

Thank you Any Question ?