KY-013 - Temperature Sensor Module

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 11

  • @hansjuergenhaefner9622
    @hansjuergenhaefner9622 5 лет назад +6

    The circuit diagram is wrong, the Resitor R1 is between S and V , only then does it make a meaningful voltage divider.

    • @etch4
      @etch4 4 года назад

      I have an other one for you KY-005, same specie.
      ruclips.net/video/hYw4CTPsUNg/видео.html
      KY-013 R1 is for heating ITcom Academy,

  • @deadend3758
    @deadend3758 5 лет назад

    do you have a sketch from this device?

    • @deadend3758
      @deadend3758 4 года назад

      oh my god thanks!

    • @etch4
      @etch4 4 года назад +1

      I'm Sorry one correction. TF = (TC

    • @etch4
      @etch4 4 года назад

      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);
      }

    • @etch4
      @etch4 4 года назад

      Bit more clearer

  • @WolfgangWittler1984
    @WolfgangWittler1984 3 года назад +1

    Completely wrong: Schematics are wrong; the resistor is not used as overcurrent protection, but as voltage divider; the RPi has no analog inputs 😖

  • @riverwang5482
    @riverwang5482 4 года назад +1

    The circuit is clearly wrong. If it is that setting, reading will always be 0V.

  • @aadisingh5086
    @aadisingh5086 3 года назад

    Wrong information