Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
The circuit diagram is wrong, the Resitor R1 is between S and V , only then does it make a meaningful voltage divider.
I have an other one for you KY-005, same specie.ruclips.net/video/hYw4CTPsUNg/видео.htmlKY-013 R1 is for heating ITcom Academy,
do you have a sketch from this device?
oh my god thanks!
I'm Sorry one correction. TF = (TC
int ThermistorPin = A0;int Volt_NTC;float Vsupply = 1023.0;float R2 = 7500; // R2 in Ohm change this !!float logNTC, NTC, T, TC, TF;//steinhart-hart coefficients float c1 = 1.129148E-3;float c2 = 234.125E-6;float c3 = 87.6741E-9;void setup() { Serial.begin(38400);}void loop() { Volt_NTC = analogRead(ThermistorPin); NTC = R2 * (Vsupply / (float)Volt_NTC - 1.0); // NTC in Ohm logNTC = log(NTC); T = 1.0 / (c1 + c2*logNTC + c3*pow(logNTC, 3)); // Kelvin TC = T - 273.15; // K-> C TF = (9.0 / 5.0) * TC + 32.0; // C-> F Serial.print("Temperature: "); Serial.print(TC); Serial.println(" C"); Serial.println(); Serial.print("Temperature: "); Serial.print(TF); Serial.println(" F"); delay(500);}
Bit more clearer
Completely wrong: Schematics are wrong; the resistor is not used as overcurrent protection, but as voltage divider; the RPi has no analog inputs 😖
The circuit is clearly wrong. If it is that setting, reading will always be 0V.
Wrong information
The circuit diagram is wrong, the Resitor R1 is between S and V , only then does it make a meaningful voltage divider.
I have an other one for you KY-005, same specie.
ruclips.net/video/hYw4CTPsUNg/видео.html
KY-013 R1 is for heating ITcom Academy,
do you have a sketch from this device?
oh my god thanks!
I'm Sorry one correction. TF = (TC
int ThermistorPin = A0;
int Volt_NTC;
float Vsupply = 1023.0;
float R2 = 7500; // R2 in Ohm change this !!
float logNTC, NTC, T, TC, TF;
//steinhart-hart coefficients
float c1 = 1.129148E-3;
float c2 = 234.125E-6;
float c3 = 87.6741E-9;
void setup() {
Serial.begin(38400);
}
void loop() {
Volt_NTC = analogRead(ThermistorPin);
NTC = R2 * (Vsupply / (float)Volt_NTC - 1.0); // NTC in Ohm
logNTC = log(NTC);
T = 1.0 / (c1 + c2*logNTC + c3*pow(logNTC, 3)); // Kelvin
TC = T - 273.15; // K-> C
TF = (9.0 / 5.0) * TC + 32.0; // C-> F
Serial.print("Temperature: ");
Serial.print(TC);
Serial.println(" C");
Serial.println();
Serial.print("Temperature: ");
Serial.print(TF);
Serial.println(" F");
delay(500);
}
Bit more clearer
Completely wrong: Schematics are wrong; the resistor is not used as overcurrent protection, but as voltage divider; the RPi has no analog inputs 😖
The circuit is clearly wrong. If it is that setting, reading will always be 0V.
Wrong information