Termistor 100K April 21, 2014 03:10PM |
Registered: 9 years ago Posts: 17 |
/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. This example code is in the public domain. */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: int sensor13 = 0; int sensor14 = 0; int sensor15 = 0; void loop() { int sensorValue13 = analogRead(A13); delay(10); // delay in between reads for stability int sensorValue14 = analogRead(A14); delay(10); // delay in between reads for stability int sensorValue15 = analogRead(A15); delay(10); // delay in between reads for stability sensor13 = (((sensor13*31)/32)+sensorValue13/32); sensor14 = (((sensor14*31)/32)+sensorValue14/32); sensor15 = (((sensor15*31)/32)+sensorValue15/32); Serial.print("A"); Serial.print(sensorValue13); Serial.print(" B"); Serial.print(sensorValue14); Serial.print(" C"); Serial.print(sensorValue15); Serial.print("A"); Serial.print(sensor13); Serial.print(" B"); Serial.print(sensor14); Serial.print(" C"); Serial.println(sensor15); delay(10); // delay in between reads for stability }tocando el termistor con los dedos sale un valor de 256-257 bastante estable, sin ellos algo mas frio se situa sobre los 280, no se a cuanto estamos en la habitacion, a temperatura ambiente la resistencia mide sobre 102K, con el dedo encima 72.6
Re: Termistor 100K April 26, 2014 02:41AM |
Registered: 10 years ago Posts: 8 |
Re: Termistor 100K May 01, 2014 05:39AM |
Registered: 9 years ago Posts: 17 |
Re: Termistor 100K May 05, 2014 11:25PM |
Registered: 10 years ago Posts: 8 |
Re: Termistor 100K May 06, 2014 06:00PM |
Registered: 9 years ago Posts: 17 |
Re: Termistor 100K May 07, 2014 05:58PM |
Registered: 9 years ago Posts: 17 |
/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. This example code is in the public domain. */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: analogReference(DEFAULT); Serial.begin(9600); } // the loop routine runs over and over again forever: long sensor13 = 512; long sensor14 = 512; long sensor15 = 512; unsigned int ADCValue; double Voltage; double Vcc; long readVcc() { long result; // Read 1.1V reference against AVcc 269-268 ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); delay(2); // Wait for Vref to settle ADCSRA |= _BV(ADSC); // Convert while (bit_is_set(ADCSRA,ADSC)); result = ADCL; result |= ADCH<<8; result = 1125300L / result; // Back-calculate AVcc in mV return result; } void loop() { Serial.println( readVcc(), DEC ); Vcc = readVcc()/1000.0; ADCValue = analogRead(0); Voltage = (ADCValue / 1023.0) * Vcc; delay(1000); int sensorValue13 = analogRead(13); delay(10); // delay in between reads for stability sensorValue13 = analogRead(13); int sensorValue14 = analogRead(14); delay(10); // delay in between reads for stability sensorValue14 = analogRead(14); int sensorValue15 = analogRead(15); delay(10); // delay in between reads for stability sensorValue15 = analogRead(15); delay(10); // delay in between reads for stability sensor13 = ((sensor13*31)/32)+sensorValue13; sensor14 = ((sensor14*31)/32)+sensorValue14; sensor15 = ((sensor15*31)/32)+sensorValue15; Serial.print(" V"); Serial.print(Voltage); Serial.print(" A"); Serial.print(sensorValue13); Serial.print(" B"); Serial.print(sensorValue14); Serial.print(" C"); Serial.print(sensorValue15); Serial.print(" A"); Serial.print(sensor13/32); Serial.print(" B"); Serial.print(sensor14/32); Serial.print(" C"); Serial.println(sensor15/32); delay(10); // delay in between reads for stability }
V-0.00 A642 B555 C490A636 B559 C481 1125300 V0.48 A637 B557 C484A636 B559 C481 -1 V0.48 A629 B561 C475A635 B559 C480 -1 V493.90 A624 B565 C469A635 B559 C480 1102 V0.48 A623 B568 C466A635 B560 C480 1100 V-0.00 A622 B571 C466A634 B560 C479 1101 V0.48 A625 B572 C468A634 B560 C479 1102 V0.47 A630 B568 C472A634 B560 C478El valor de 634 esta sobre 95-100 ºC (aqui hay un termistor)
Re: Termistor 100K May 17, 2014 02:12PM |
Registered: 9 years ago Posts: 17 |