• Non ci sono risultati.

14- ARDUINO KY-013 TERMISTORE MODULO

N/A
N/A
Protected

Academic year: 2021

Condividi "14- ARDUINO KY-013 TERMISTORE MODULO"

Copied!
2
0
0

Testo completo

(1)

Arduino KY-013 Temperature sensor module

Analog temperature sensor

First, the module introduces The module is based on the thermistor (resistance increases with the ambient temperature changes) works, a sense of real-time To know the temperature of the surrounding environment changes, we send the data to the Arduino analog IO, then come down as long as we go through Jane Single programming will be able to convert the sensor output data Celsius temperature values and displayed, it is still easy to use, It effectively, thereby widely used in gardening, home alarm systems and other devices. Second, the use And the general temperature sensor is the same, are three-line package, when we use the power cord connected OK signal output Into the end on the three-line, because the module output is an analog signal, we want to signal output terminal connected to the Arduino analog IO On sampling, so as to correctly read the temperature value; Up to this point generally know how to use it, then we need to know about how it is the next temperature measurement?

Specifications

 The temperature sensor is a NTC thermistor

 Multi-point temperature measurement Measures temperatures: -55°C / +125°C

 Accuracy: + / - 0.5°C

Hardware devices

 Arduino controller × 1

 USB data cable × 1

 the analog temperature sensor module × 1

We must have the above things can test to see if an original is a simple thermal how to help us measure the temperature.

(2)

Schematic

 Arduino pin analoog A5 --> module S (Signal)

 Arduino pin GND - module -

 Arduino pin 5+ --> middel pin 5V

This code don't give the right values, in a room that was kind of ok it gave a tempature of 10 C. That isn't right so the calculation in the code should be checked.

#include <math.h>

int sensorPin = A5; // select the input pin for the potentiometer

double Thermistor(int RawADC) { double Temp;

Temp = log(10000.0*((1024.0/RawADC-1)));

Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );

Temp = Temp - 273.15; // Convert Kelvin to Celcius

//Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit return Temp; } void setup() { Serial.begin(9600); } void loop() { int readVal=analogRead(sensorPin); double temp = Thermistor(readVal);

Serial.println(temp); // display tempature //Serial.println(readVal); // display tempature

delay(500); }

Riferimenti

Documenti correlati

the NN model described in ( Tymoshenko et al. The sentence vectors, x s i , are con- catenated together and given in input to standard NN layers, which are constituted by a

Non-IgE-mediated CMA children at diagnosis, before dietary treatment, presented significant differences in gut microbial composition when compared to healthy controls, while the

Tate and Jenkinson (1982b) similarly reported that ATP increased by 73% but biomass C by only 23% when a UK grassland soil was incubated for 7 days at 258C.. These relatively

The didactic area of the exhibit is composed of &#34;blocks&#34; of modular walls suitable for housing graphic boards, prospective objects and virtual stationings.. These blocks

The problem of being unable to find a numerical solution of the equation to the output current in a single diode equivalent model with series and shunt resistance had been

To circumvent this problem, among the solutions proposed in the literature we find the use of by-pass diode and anti-return diode to minimize these consequences.In this paper

Vector integration analysis at the end of the study showed that BM repopulation was sustained by a largely polyclonal repertoire of HSCs, with no signs of vector-driven clonal

Just as trade with a more land-abundant economy effectively expands a society’s supply of land, so trade with a more capital-abundant i.e., normally a wealthier economy