Thermistor calibration living with the lab © 2013 David Hall.

Slides:



Advertisements
Similar presentations
Why won’t my Arduino work???? living with the lab © 2012 David Hall.
Advertisements

temperature system wiring
Control of Salinity EAS 199B Modifications of ENGR 121 living with the lab.
Control of salinity living with the lab © 2012 David Hall.
College of Engineering & Science living with the lab Ohm’s Law © 2012 David Hall 1.5V.
Using the servo library living with the lab Libraries are computer programs written to add functionality to Arduino programs. A library to control hobby.
Conductivity sensor implementation living with the lab © 2011 LWTL faculty team.
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.
User-defined functions in Arduino sketches living with the lab © 2012 David Hall.
Calibration of conductivity sensors living with the lab.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Linear regression quality of the fit and automating the analysis in Excel living with the lab © 2011 David Hall and the LWTL faculty team The Living with.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
Calibration of Conductivity Sensors EAS 199B. living with the lab cal ∙ i ∙ brate [kal-uh-breyt] -verb (used with object), -brat ∙ ed, -brat ∙ ing. 1.
Cascaded switching of a solenoid valve living with the lab transistor relay solenoid valve © 2012 David Hall.
Assembly of conductivity flow loop living with the lab (in preparation for calibrating conductivity sensor)
Switches & whiskers on the Arduino living with the lab lever arm switches mounted to Arduino © 2012 David Hall.
Introduction to linear regression living with the lab © 2011 David Hall and the LWTL faculty team The Living with the Lab label, the Louisiana Tech Logo,
Control of salinity living with the lab © 2012 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.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
Introduction to Microsoft Excel living with the lab © 2012 David Hall.
Voltage Drops Around Closed Loops 470  220  5V   220  living with the lab © 2012 David Hall.
Navigating the engineering disciplines robot challenge 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.
Pump Fabrication Day Group A will draw their pump
Controlling Servos with the Arduino
Series and Parallel Resistors
Introduction to the Arduino
Troubleshooting Your Multimeter
Using servos.
calibration of conductivity sensors
Servo Library and Functions
Line Following Tips photoresistor circuits
Robot Assembly.
Controlling a Motor with Cascading Switches
Introduction to Transistors
Introduction to the Fishtank
RGB LEDs.
Conservation of Mass Problem
Maxbotix Ultrasonic Distance Sensor
Conductivity Sensor.
Schedule 8:00-11:00 Workshop: Arduino Fundamentals
Introduction to Transistors
Servo Library and Functions
Troubleshooting Your Multimeter
a few of my favorite sensors
using for loops to control LEDs
using the Arduino to make LEDs flash
Using Photoresistors with an Arduino
Line Following Tips photoresistor circuit
Data Types.
analog and digital measurements
Using “if” statements.
Controlling the Heater
Digital Input from Switches
Implementing Switches Using Interrupts
Arduino: For Loops.
Non-Concurrent Force Systems
IR Object Detection IR detector IR LED IR light reflected off object
Interfacing a Rotary Encoder with an Arduino
Conservation of Mass Problem
Counting Servo Gear Teeth (FS90R Servos)
Static Equilibrium Problem
Reservoir Loop.
Presentation transcript:

thermistor calibration living with the lab © 2013 David Hall

living with the lab 2 The content of this presentation is for informational purposes only and is intended only for students attending Louisiana Tech University. The author of this information does 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 injury or damage. Louisiana Tech University and the State of Louisiana, their officers, employees, agents or 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. If you do not agree, then do not view this content. The copyright label, the Louisiana Tech logo, and the “living with the lab” identifier should not be removed from this presentation. You may modify this work for your own purposes as long as attribution is clearly provided. DISCLAIMER & USAGE

living with the lab 3 setup includes a laptop, fishtank system, thermistor circuit, thermometer, and cup the cup is filled with cool water, tap water, and warm water to produce three calibration points experimental setup digital thermometer thermometer and thermistor are submerged in cup

living with the lab 4 circuit 10kΩ 5V analog pin 4 (measures voltage across 20Ω resistor) response of Cantherm MF52 series thermistor digikey part #: ND (resistance = 10kΩ at 25˚C) variation of 0 to 1023 analog value with temperature as temperature increases, the electrical resistance of the thermistor decreases this causes a decrease in voltage across the thermistor this causes an increase in voltage across the 10kΩ resistor this causes the 0 to 1023 output of the analog pin to increase with increasing temperature

living with the lab 5 calibration sketch void setup() { Serial.begin(9600); // use a baud rate of 9600 bps pinMode(1,OUTPUT); // set pin1 as an output (pin1=TX) Serial.write(12); // clear screen & move to top left position Serial.write(129); // move cursor to row 0, position 1 Serial.write("Temperature Sensor"); // print a text string starting at (0,1) Serial.write(152); // move cursor to row 1, position 4 Serial.write("Calibration"); // print a text string starting at (1,4) Serial.write(189); // move cursor to row 3, position 1 Serial.write("analog input="); // print text string at (3,1) Serial.write(22); // turn cursor off to keep screen clean } void loop() { int analogT; // declare analogT as an integer analogT=analogRead(4); // read the voltage at analog pin 4 Serial.write(202); // move cursor to row 3, position 14 Serial.print(analogT); // print the analog input reading (0 to 1023) Serial.write(" "); // overwrite previously printed numbers }

living with the lab 6 CAUTION: Be careful with hot water! fill the cup about 2/3 full of water at three different temperatures calibration method cool water (water fountain is a good source) tap waterwarm water (mix hot water with tap water, around 50°C is good)

living with the lab 7 insert thermistor and thermometer into water while running the calibration program wait until “analog input” values from thermistor circuit reach a steady value record this temperature and the “analog input” printed to your LCD obtain the cool water calibration reading

living with the lab 8 repeat for room temperature and warm water readings hot water pot press unlock and then press the dispense button when finished, return your cup and thermometer

living with the lab 9 use Excel to determine your calibration equation example values are shown in the table below use the temperatures and “analog input” values that you collected earlier temperatureanalog input oCoC(0 to 1023) calibration equation use five digits for these fitting constants

living with the lab allow system to reach steady state for room temperature sample collect 20 “analog input” readings taking a reading every 5 seconds enter these readings into Excel and compute the standard deviation, σ. when you write your temperature control sketch, you will set your UCL as the setpoint plus 3σ and your LCL as the setpoint minus 3σ for the example below, 3  is equal to 5; if your 3σ is less than one, then set 3σ=1 time analog input heat=off heat=on setpoint = 505 LCL=setpoint-3  = 500 UCL=setpoint+3  = 510 determine the random error in analog input 10

living with the lab 11 using the calibration equation calibration equation if the setpoint is 27 o C and 3  =5, then the temperature control values are... The arrows indicate the order that the control parameters are computed. using algebra, manually invert the calibration equation so you can compute temperatures based on the analog input values returned by the Arduino quantityT (°C)analogT UCL setpoint LCL control strategy if analogT > UCL (or 524) then heater must be off If analogT < LCL (or 514), then heater must be on inverted equation

living with the lab 12 CAUTION! Your heater can easily get hot enough to burn you and cause a fire. NEVER leave your system plugged into a wall outlet when you are not actively testing its performance. You should always be present when the system is plugged into a wall outlet. Only test your fishtank in an area with a fire extinguisher and an active smoke alarm nearby.