ntc 10K auslesen
ntc 10K auslesen
hat jemand ein beispiel, wie ich einen 10K ntc auslese?
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: ntc 10K auslesen
Hi,
This is an English-speaking forum, so please in the future use English.
We do have a FAN 8 click example, which we test with a NTC10K3 thermistor.
https://github.com/MikroElektronika/mik ... licks/fan8
Regards,
Ivan.
This is an English-speaking forum, so please in the future use English.
We do have a FAN 8 click example, which we test with a NTC10K3 thermistor.
https://github.com/MikroElektronika/mik ... licks/fan8
Regards,
Ivan.
-
- Posts: 8
- Joined: 16 Jan 2024 12:36
Re: ntc 10K auslesen
Hello
Here's a basic example of how you can read a 10K NTC thermistor using Arduino. Make sure to adjust the parameters based on your specific thermistor's datasheet.
const int analogPin = A0;
const int referenceResistor = 10000;
const float referenceVoltage = 5.0;
const float thermistorNominal = 10000.0;
const float temperatureNominal = 25.0;
const float betaValue = 3950.0;
void setup() {
Serial.begin(9600);
}
void loop() {
int rawValue = analogRead(analogPin);
float resistance = referenceResistor / ((1023.0 / rawValue) - 1.0);
float steinhart = resistance / thermistorNominal;
steinhart = log(steinhart);
steinhart /= betaValue;
steinhart += 1.0 / (temperatureNominal + 273.15);
steinhart = 1.0 / steinhart;
steinhart -= 273.15;
Serial.print("Temperature: ");
Serial.println(steinhart);
delay(1000);
}
This uses the Steinhart-Hart equation for temperature calculation. Adjust the constants according to your thermistor's specifications. Hope this helps
Thank you
refer - index.php/here
Here's a basic example of how you can read a 10K NTC thermistor using Arduino. Make sure to adjust the parameters based on your specific thermistor's datasheet.
const int analogPin = A0;
const int referenceResistor = 10000;
const float referenceVoltage = 5.0;
const float thermistorNominal = 10000.0;
const float temperatureNominal = 25.0;
const float betaValue = 3950.0;
void setup() {
Serial.begin(9600);
}
void loop() {
int rawValue = analogRead(analogPin);
float resistance = referenceResistor / ((1023.0 / rawValue) - 1.0);
float steinhart = resistance / thermistorNominal;
steinhart = log(steinhart);
steinhart /= betaValue;
steinhart += 1.0 / (temperatureNominal + 273.15);
steinhart = 1.0 / steinhart;
steinhart -= 273.15;
Serial.print("Temperature: ");
Serial.println(steinhart);
delay(1000);
}
This uses the Steinhart-Hart equation for temperature calculation. Adjust the constants according to your thermistor's specifications. Hope this helps
Thank you
refer - index.php/here
Re: ntc 10K auslesen
Hello,
I think you can use an Arduino with a voltage divider circuit. Connect the 10K NTC thermistor to an analog pin and read the voltage. Calculate the resistance using a known resistor value and Ohm's law.
I think you can use an Arduino with a voltage divider circuit. Connect the 10K NTC thermistor to an analog pin and read the voltage. Calculate the resistance using a known resistor value and Ohm's law.