KY-013
KY-013 is Temperature-Sensor module manufactured by Joy-IT.
- Part of the KY-013-Joy comparator family.
- Part of the KY-013-Joy comparator family.
description
1 3 Pinout 3 4 Code example Arduino 3 5 Code example Raspberry Pi 4
Picture
Technical data / Short description
Temperature measuring range: -55°C / +125°C
This module provides a NTC thermistor
- it will have a lower resistant on higher temperatures.
Export: 16.06.2017
Copyright by Joy-IT
- Published under CC BY-NC-SA 3.0
Page 54 of 214
KY-013 Temperature-Sensor module
You can draw near to the resistant change via maths and convert it into a linear course. With that you can determine the temperature coefficient (addicted from resistant change to temperature change). With that you can determine the actual temperature if you know the current resistance.
This resistor can be determinded via voltage devider, where a known voltage splits up between a known resistor and an unknown (variable) resistor.
With that Voltage you can determine the resistance of the resistor
- you can see the full calculation in the example below.
Export: 16.06.2017
Copyright by Joy-IT
- Published under CC BY-NC-SA 3.0
Page 55 of 214
KY-013 Temperature-Sensor module
Pinout
Code example Arduino
The program measures the actual voltage from the NTC, calculate the temperature and translates the result to °C for the serial output.
#include <math.h> int sensor Pin = A5; // Declaration of the input pin
// These function translates the recorded analog measurement double Thermistor(int Raw ADC)
{ double Temp;
Temp = log(10000.0
-...
Representative KY-013 image (package may vary by manufacturer)