Controlling the Heater

Slides:



Advertisements
Similar presentations
temperature system wiring
Advertisements

Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Waterproofing a thermistor ENGR 121 living with the lab © 2013 David Hall.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Thermistor calibration living with the lab © 2013 David Hall.
Using fixed-cell references and built-in functions in Excel living with the lab © 2012 David Hall.
220  470  Gnd5V Currents Through Parallel Resistors 1 living with the lab © 2012 David Hall.
Introduction to Microsoft Excel living with the lab © 2012 David Hall.
Kirchoff’s Current Law (KCL) living with the lab University of Pennsylvania Library and Wikipedia Gustav Kirchoff (left) and Robert Bunsen (right) Bunsen.
Adding a Barrel Jack to a Battery Pack living with the lab © 2012 David Hall.
Using for loops to control LEDs living with the lab 1 1 arduino.cc the for statement allows us to repeat a block of commands a limited number of times.
Building Circuits.
Measuring & Drawing a Barbed Fitting
Pump Fabrication Day Group A will draw their pump
What you Need to Know to Succeed
Controlling Servos with the Arduino
Connecting Switches.
Series and Parallel Resistors
Pump Project Requirements
Pump Efficiency Fluid Energy Out + - Electrical Energy In.
Introduction to the Arduino
Why Won’t My Arduino Work?
Robot Challenge Introduction
Troubleshooting Your Multimeter
Servo Library and Functions
Line Following Tips photoresistor circuits
Pump Project Overview.
How to Use Dial Calipers
Controlling a Motor with Cascading Switches
Introduction to Transistors
Introduction to the Fishtank
Conservation of Energy
RGB LEDs.
Conservation of Mass Problem
Conductivity Sensor.
Introduction to Transistors
Servo Library and Functions
Troubleshooting Your Multimeter
a few of my favorite sensors
Relays.
using for loops to control LEDs
using the Arduino to make LEDs flash
Using Photoresistors with an Arduino
What you Need to Know to Succeed
Line Following Tips photoresistor circuit
Torque and RPM of Gears
Conservation of Mass Problem
Data Types.
analog and digital measurements
Finishing your Project
Using “if” statements.
Design Project Forecast
Digital Input from Switches
Measuring & Drawing a Barbed Fitting
Cash Flow Diagrams <in> <out> $200 $300 $150 $100
Implementing Switches Using Interrupts
Arduino: For Loops.
Non-Concurrent Force Systems
IR Object Detection IR detector IR LED IR light reflected off object
Radio Frequency Transmitter and Receiver
Interfacing a Rotary Encoder with an Arduino
Graphing in Mathcad.
Conservation of Mass Problem
Non-Concurrent Force Systems
Evaluating Design Alternatives
Counting Servo Gear Teeth (FS90R Servos)
Static Equilibrium Problem
Reservoir Loop.
Freshman Design Expo Presentations
Gearmotor Efficiency W table top gearmotor pulley string.
Presentation transcript:

Controlling the Heater time analog input 520   510 500 490 heat=off heat=on setpoint = 505 LCL= 500 UCL= 510

DISCLAIMER & USAGE The content of this presentation is for informational purposes only and is intended for students attending Louisiana Tech University only. The authors of this information do not make any claims as to the validity or accuracy of the information or methods presented. Any procedures demonstrated here are potentially dangerous and could result in damage and injury. Louisiana Tech University, its officers, employees, agents and volunteers, are not liable or responsible for any injuries, illness, damage or losses which may result from your using the materials or ideas, or from your performing the experiments or procedures depicted in this presentation. The Living with the Lab logos should remain attached to each slide, and the work should be attributed to Louisiana Tech University. If you do not agree, then please do not view this content. boosting application-focused learning through student ownership of learning platforms

Heater Control You will choose a target temperature or a setpoint for your temperature control system. What do you think should happen with your system when the temperature of the water is below the setpoint value? Heater should turn on What do you think should happen with your system when the temperature of the water is above the setpoint value? Heater should turn off How difficult will it be to keep the temperature at a single specific value? Giving yourself some tolerance above and below the setpoint will help control the temperature in a more stable manner. Tolerance above setpoint is called Upper Control Limit (UCL) Tolerance below setpoint is called Lower Control Limit (LCL)

Finding UCL and LCL Need to determine the random error of the analog input Collect data points at room temperature over a span of time Find the standard deviation, σ, of the temperature values collected Why standard deviation? What is standard deviation?

Standard deviation, σ, is a value calculated to determine the amount of variation with in a data set This curve represents data from a data set μ represents the mean value of the data Most data will be near the mean (μ) As you move away from μ, there’s a decreasing probability of a measurement at that value Moving one standard deviation (±1σ) away from μ will provide you with 68% of the data points Moving ±2σ away from μ will provide you with 95% of the data points Moving ±3σ away from μ will provide you with 99.7% of the data points

How the standard deviation relates to our exercise ? The date we are measuring is the room temperature of a closed classroom over a period of a few minutes Meaning, the data will practically not vary at all, or, σ should be very close to zero if the measurement is accurate Any change in data can be attributed to the errors in the measurement system Hence, for a system like ours, σ can be correlated to the errors ( fluctuation in data due to the measurement system ) Moving ±3σ away from μ will provide you with 99.7% of the data points AND remove 99.7% of the measurement errors

Finding UCL and LCL Need to determine the random error of the analog input Collect data points at room temperature over a span of time Find the standard deviation, σ, of the temperature values collected Why standard deviation? What is standard deviation? Standard deviation, σ, is a value calculated to determine the amount of variation with in a data set For your temperature control system, finding σ will allow you to account for the random error of the analog input from the thermistor circuit Using ±3σ will account for 99.7% of random error UCL = setpoint + 3σ LCL = setpoint - 3σ How do you find standard deviation? 𝜎= 𝑥−𝜇 2 𝑛−1 or use the STDEV.S function in Excel Note: If σ is less than 1, then set 3σ=3.

Find UCL and LCL of your thermistor Setpoint Value is 25℃ (Room Temperature) How can you write this an analog value? Determine random error and calculate your UCL and LCL Allow system to reach steady state (stop changing) at room temperature Collect 20 “analog input” readings, taking a reading every 5 seconds Enter these readings into Excel and compute the standard deviation, σ UCL = setpoint + 3σ LCL = setpoint - 3σ

Controlling the Heater time analog input 520   510 500 490 heat=off heat=on setpoint = 505 LCL = setpoint - 3 = 500 UCL = setpoint + 3 = 510 deadband Simulate this process with an LED acting as the heater Write a sketch that turns on an LED when the analog values are below the LCL and turns off the LED when the analog values are above the UCL.

no no yes yes start declare variables calculate analog value of setpoint, UCL & LCL read analog value of temperature no no value < LCL value > UCL yes yes LED on function LED off function