ntc 10K auslesen

General discussion on mikroC PRO for ARM.
Post Reply
Author
Message
uwe.z
Posts: 41
Joined: 25 Jun 2017 18:06

ntc 10K auslesen

#1 Post by uwe.z » 23 Jan 2024 18:06

hat jemand ein beispiel, wie ich einen 10K ntc auslese?

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: ntc 10K auslesen

#2 Post by IvanJeremic » 24 Jan 2024 13:55

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.

stevediaz933@gmail.com
Posts: 8
Joined: 16 Jan 2024 12:36

Re: ntc 10K auslesen

#3 Post by stevediaz933@gmail.com » 29 Jan 2024 10:53

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

jacksmith
Posts: 1
Joined: 27 Feb 2024 12:12

Re: ntc 10K auslesen

#4 Post by jacksmith » 27 Feb 2024 12:13

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.

Post Reply

Return to “mikroC PRO for ARM General”