Analog Temperature Sensor (KY-013) [S020]
https://www.youtube.com/watch?v=uTssvJqHvms
*GitHub : https://github.com/rdiot/rdiot-s020.git
* Specs
Using of plug-in full-color LED
Three primary colors (RGB) connected with the current- limiting resistance to prevent burning
Adjusting three primary colors by PWM to get different colors in mixture
Can be connected with a variety of single-chip
Working voltage: 5V
LED driver mode: Cathode driver
* Content
- Connect
S - A0
middle - 5V
- - GND
- Key Code
GetTemperature(analogRead(pin);
double GetTemperature(int v)
{
double Temp;
Temp = log(10000.0 / (1024.0 / v - 1));
Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp))* Temp);
Temp = Temp - 273.15; // Convert Kelvin to Celcius
return Temp;
}
'2) Sensor > Temperature' 카테고리의 다른 글
Temperature and humidity DHT11 sensor module (KY-015) [S008] (0) | 2016.09.03 |
---|---|
Multifunctional Digital Temperature Sensor Module LM393 (KY-028) [S021] (0) | 2016.09.02 |
Terminal sensor adapter (DFR0055) [S093] (0) | 2016.09.02 |
DS18b20 Waterproof Temperature Sensor (DS18B20) [S023] (0) | 2016.09.02 |
DS18B20 (KY-001) [S019] (0) | 2016.09.02 |