NTC Thermistor 10K Temperature Sensor Probe Waterproof 3950
- Was RM10.00
-
RM5.00
- Product Code: NTC 10k probe
- Availability: In Stock
A NTC thermosensor which is easy to communicate with temperature devices like our self-made thermometer. It is stainless steel and waterproof probe makes it suitable for any wet or harsh environment.
Features:
Specifications:
Enter the following sketch in Arduino IDE then upload it. If you open your Arduino serial monitor you will be able to see the progress.
// which analog pin to connect #define THERMISTORPIN A0 // how many samples to take and average, more takes longer // but is more 'smooth' #define NUMSAMPLES 5 // the value of the 'other' resistor #define SERIESRESISTOR 10000 int samples[NUMSAMPLES]; void setup(void) { Serial.begin(9600); // connect AREF to 3.3V and use that as VCC, less noisy! analogReference(EXTERNAL); } void loop(void) { uint8_t i; float average; // take N samples in a row, with a slight delay for (i=0; i< NUMSAMPLES; i++) { samples[i] = analogRead(THERMISTORPIN); delay(10); } // average all the samples out average = 0; for (i=0; i< NUMSAMPLES; i++) { average += samples[i]; } average /= NUMSAMPLES; Serial.print("Average analog reading "); Serial.println(average); // convert the value to resistance average = 1023 / average - 1; average = SERIESRESISTOR / average; Serial.print("Thermistor resistance "); Serial.println(average); delay(1000); }
Tags: NTC Thermistor