Ola,
Vou começar a publicar experimentos que eu faço com o Arduino UNO/Nano e Sensores, etc. Hoje fiz um termometro utilizando o LM35.
O LM35 é um sensor de temperatura de precisão, o mesmo varia 10mV por grau Celsius. Os pinos do mesmo podem ser visualizados na imagem.

O pino VCC você conecta no 5V do Arduino, o GND no GND do Arduino e o pino do meio você conecta em um pino Analogico, no meu caso utilizei o A0.
O mesmo não necessita de nenhum resistor entre o Arduino e o Sensor então basta fazer uma conexão direta. O ADC do Arduino UNO possui uma precisão de 10 bits, ou seja nesse caso 5V / 1024 que é aproximadamente 0.0049 será a precisão do mesmo. Para lermos a temperatura em Celsius fazemos o seguinte:
Temperatura = (pino * 0.0049)*100
Mas por que 100? Pino * 0.0049 vai nos dar a tensão na porta analogica em Volts. Se multiplicarmos por 1000 teremos millivolts, como o sensor varia 10mV/C dividimos os milivolts por 10. O que nos daria a temperatura, multiplicar por 1000 e dividir por 10 é o mesmo que multiplicar por 100. Entendeu? [Adicionado 12/12]
Para termos em farenheit temos que fazer a conversão que é:
TemperaturaF = (temperatura * 1.8) + 32.
O código utilizado no Arduino:
[code lang=”c”]
int analogPin = 0;
int readValue = 0;
float temperature = 0;
float temperatureF = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
readValue = analogRead(analogPin);
//Serial.println(readValue);
temperature = (readValue * 0.0049);
temperature = temperature * 100;
temperatureF = (temperature * 1.8) + 32;
Serial.print(“Temperature: “);
Serial.print(temperature);
Serial.print(“C “);
Serial.print(temperatureF);
Serial.println(“F”);
delay(1000);
}
[/code]
Espero que seja util.
Matheus
Referencias:
LM35 Datasheet
Arduino analog Read
legaal goksite met creditcard
My web site Caribbean Stud Poker Zonder Cruks
slingo bingo casino
my site … beste Goksites Roulette
beste roulette bitcoin casino aanbeveling nederland 2026
video poker promotie
My blog: 3d gokkasten casino nederland
legit online casinos usa, free $25 online bingo australia and betting usa new jersey online casinos bonus
codes, or best rated united kingdom online casino
Feel free to visit my blog post a place with Gambling table
live wheel of fortune met beste zomer Bonus casino (https://www.bruani.com/) casino
Beste casino met cruks dat skrill accepteert
goksite laag huisvoordeel alle legale casinos nederland (Lynda)
beste casino geen limiet geld opnemen ideal
weekend bonus crypto online american roulette casino
goksite beste casino mobiel betalen [Noreen] met paysafecard
Искал рабочее зеркало 1xbet и нашёл несколько вариантов. Сайт часто блокируют, но всегда есть зеркала на сегодня. Особенно удобно использовать зеркало 1xbet онлайн, чтобы не искать каждый раз. По теме 1xbet официальный сайт рабочее зеркало советую проверять несколько источников. 1хбет зеркало помогают не терять доступ к своим ставкам. Если 1xbet вход зеркало не работает, просто ищите новое зеркало — их обычно много. 1хбет зеркало на сегодня — это отличный способ оставаться в игре даже при блокировках. Главное — не терять доступ к своим аккаунтам и ставкам.
casino Bonus juni buiten cruks
bonuscode paypal online casino
My web page :: bingo snelle uitbetaling nederland
paypal gambling sites canada, what online casinos are legal in australia
and hausaos dojo slot online real money no deposit bonus, or gretna casino chips
canada
usaash bingo usa, new zealandn express zahlung online casino and mobile poker
sites usa, or united kingdom no deposit casino bonuses
my webpage; blackjack Table for sale
gokken hoorn
My blog post: casino bij sint niklaas (Antonio)
5 gratis spins nederland
my blog post: casino arnhem
punto banco storten paypal
My homepage … beste pattern bingo, Holley,
888 poker login united states, gambling laws canada and casino in united states,
or real money slots how to win blackjack fallout new vegas (Hyman) united states
bouka spins no deposit bonus code, united kingdom idol
time slot and age to go to casino in new zealand, or milwausaee casino poker
Feel free to visit my blog :: how can i increase my chances of winning roulette
(Cyril)
how to hack slot machines uk, slot machines united states for sale and best slot
sites usa 2021, or united states slots machines
Here is my web page :: casino card game not common – Kai,
Casino holdem Zonder cruks den bosch
15 euro gratis gokken
My web-site :: bingo uitbetaling ideal
beste multi hand blackjack nederland
Feel free to visit my webpage amusementshal Gorinchem
gokhal turnhout
Feel free to surf to my web site Casino Drunen
australia online Golden dragon casino macau skyfall bonus, canadian pokie machines for sale
and roulette australia rules, or native united statesn tribal casinos
gratis spins zonder storting online casino nederland
Here is my site :: Blackjack Enschede
betrouwbaar online casino egmond aan zee klarna
american roulette online
my page bonus zonder Storting nederland casino
live casino hoge inzet nederland
Here is my homepage :: Betrouwbaar goksite mobiel
nieuw casino belgie apple pay – https://kmbankruptcylawyerny.com/, oss
legaal casino met meeste betaalmethoden (https://Www.maqrollmonterrey.com/) belgie hoge inzet
asian slots met bonus
Feel free to visit my site :: 20 gratis Spins
beste age of the gods roulette
My site :: amusementshal sneek (Clair)