Sensor de temperatura digital con tersmitor ntc 10k con pantalla LCD
Sensor de temperatura digital con tersmitor ntc 10k con pantalla LCD
Sensor de temperatura digital con tersmitor ntc 10k con pantalla LCD
El termistor NTC disminuye su resistencia al aumentar la temperatura. Este sensor esta en encapsulado a prueba de agua y de corrosión ideal para medir temperatura en liquidos, por ejemplo en peceras.
Los pasos para poder medir las temperatura con un termistor son
1) Conectar el termistor en un arreglo de divisor de voltaje
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
#include "thermistor.h"
#include "HardwareSerial.h"
// Analog pin used to read the NTC
#define NTC_PIN A1
// Thermistor object
THERMISTOR thermistor(NTC_PIN, // Analog pin
10000, // Nominal resistance at 25 ºC
3950, // thermistor's beta coefficient
10000); // Value of the series resistor
// Global temperature reading
uint16_t temp;
/**
* setup
*
* Arduino setup function
*/
void setup()
{
Serial.begin(9600);
lcd.begin(16,2);
}
/**
* loop
*
* Arduino main loop
*/
void loop()
{
temp = thermistor.read(); // Read temperature
Serial.print("Temp in 1/10 ºC : ");
Serial.println(temp);
lcd.setCursor(0,0);
lcd.print("Temp");
lcd.setCursor(5,0);
lcd.write(temp);
delay(5000);
}
