tag:blogger.com,1999:blog-8255063446123296863.post3352045614420332501..comments2023-11-05T04:06:22.008-08:00Comments on Doing The Projects in Making Things Talk: Temperature Measurements Simple But HardUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8255063446123296863.post-70839378358206931132010-10-05T11:41:49.433-07:002010-10-05T11:41:49.433-07:00Thank you so much for posting this great article, ...Thank you so much for posting this great article, I am so interested on what I read, good and useful content about "Temperature Measurements Simple But Hard", I would like to invite you to take a look to <a href="http://www.safemeds.com/viagra/order.html/" rel="nofollow">order viagra</a>, you will find some good stuff there.Unknownhttps://www.blogger.com/profile/09961965302993264775noreply@blogger.comtag:blogger.com,1999:blog-8255063446123296863.post-38011693221056943162008-11-18T20:41:00.000-08:002008-11-18T20:41:00.000-08:00Try averaging the sample and slowing down the loop...Try averaging the sample and slowing down the loop a little to smooth out the temp readings and ease up on the CPU usage.<BR/><BR/>Here's an updated Sketch averaging over 10 samples and using a 1sec loop delay:<BR/><BR/>/*<BR/>Program Language: Arduino<BR/>Author: Lee Cavanagh<BR/>Revision:.1<BR/>Date: 12/15/07<BR/>Program reads a AD595AQ Monolithic Thermocouple Amplifiers<BR/>with Cold Junction Compensation through a analog input and covert the 10mV/Deg C<BR/>to a analog input within the range of 0-1023.<BR/>That value will be sent through the serial USB by the Arduino to be read by the PC<BR/>*/<BR/>#define SAMPLE_SIZE 10<BR/><BR/>int temperature[SAMPLE_SIZE]; //value for the temperature voltage from the AD595<BR/>//converted to analog input value, will have to convert it at the PC to a real value<BR/>int tempSensor = 1; //analog input pin for temperature voltage input<BR/>void setup() {<BR/>//opens serial port to pc, rate to 9600<BR/>Serial.begin(115200);<BR/>}<BR/><BR/>void loop() {<BR/> //reads the analog sensor<BR/> for( int i = 0; i < SAMPLE_SIZE; i++)<BR/> temperature[i] = analogRead(tempSensor);<BR/> for( int j = 1; j < SAMPLE_SIZE; j++)<BR/> temperature[0] += temperature[j];<BR/> //Prints the results from the analogRead<BR/> Serial.println(temperature[0]/SAMPLE_SIZE,DEC);<BR/> delay(1000); // 1 sec loop cycle<BR/>}doogliehttps://www.blogger.com/profile/10603345107912509055noreply@blogger.comtag:blogger.com,1999:blog-8255063446123296863.post-11790747035937851342007-12-17T07:38:00.000-08:002007-12-17T07:38:00.000-08:00The Sparkfun site for the AD-595 mentions using a ...The Sparkfun site for the AD-595 mentions using a decoupling capacitor. I can't find mention of that in the datasheet, but I assume that putting a decoupling cap in the supply voltage could perhaps improve the stability of the output voltage, without effecting the response time.Petehttps://www.blogger.com/profile/10509454976471770071noreply@blogger.com